- string.{pack,unpack,packsize} support. MCJack123 added support to Cobalt for the various string pack/unpacking functions from Lua 5.3. These behave similarly to Python's struct module, or PHP's pack/unpack - it allows you to easily pack binary data into strings, and unpack it again. Hopefully it'll make working with complex binary file formats (such as images, compressed files, etc...) a little easier.
- Repeated string concatenation is now linear rather than quadratic. This won't have any major impact, just will mean code doing string concatenation within loops will run a little faster - in some pathological cases, textutils.serialize is 10x faster.
I've done a little write up on how this works internally, if that's your sort of thing.
[MC1.12+][Fork] CC: Tweaked
#81
Posted 24 August 2020 - 02:15 PM
#82
Posted 25 October 2020 - 09:07 PM
#83
Posted 26 October 2020 - 02:57 PM
Purple, on 25 October 2020 - 09:07 PM, said:
What version of the game are you on? Resource packs changed into data packs at some point so depending on MC version you might need a data pack instead, The folder structure is the same for CC/CC:T but you have to put it in the data pack format and location.
#84
Posted 27 October 2020 - 11:52 AM
Edited by Purple, 27 October 2020 - 11:54 AM.
#85
Posted 27 October 2020 - 01:56 PM
Purple, on 27 October 2020 - 11:52 AM, said:
- The directory needs to be "data" instead of "assets" (looks like you've picked this up already)
- Pack format version as you mention
- It needs to be installed in the world's datapack folder, rather than the resource packs one.
There's an example pack at https://github.com/S...atapack-example, which might be worth consulting.
Edited by SquidDev, 27 October 2020 - 01:57 PM.
#86
Posted 29 October 2020 - 02:40 PM
#87
Posted 29 October 2020 - 03:32 PM
Purple, on 29 October 2020 - 02:40 PM, said:
This mod might be a workaround: https://www.cursefor...global-datapack
Edited by Lupus590, 29 October 2020 - 03:32 PM.
#88
Posted 31 October 2020 - 09:49 AM
I just got a helpful hint from the hint system on how to do it.
Edited by Purple, 31 October 2020 - 10:37 AM.
#89
Posted 31 October 2020 - 11:21 AM
Edited by Purple, 31 October 2020 - 11:29 AM.
#91
Posted 16 April 2021 - 09:57 AM
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users