Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/thpatch/Act-Nut-lib


https://github.com/thpatch/Act-Nut-lib

Fix build errors with gcc 13

1a44f4185fce19e8473070df39f11df272bff461 authored about 1 year ago by brliron <[email protected]>
Add the new output name in .gitignore

fa2c52ddd06ecef19b946027707feac2f21f748f authored over 3 years ago by brliron <[email protected]>
Fix foreach parameters and display to a stream

fa5696ea60ef0c3183bebd09b99d3035b345e0aa authored over 3 years ago by brliron <[email protected]>
Some fixes for compiling on Visual Studio with thcrap

When changing the functions to virtual, we call them through the vtable
and we no longer have to...

283697547b730081052c82c0920e653001bc7992 authored over 3 years ago by brliron <[email protected]>
Improve argument parsing for SQInstruction operator=

Now ignores spaces, supports strings instead of literal index, and supports
stack indexes, hexad...

198c861457eb3673a53bc31abfa9524d85fc66b1 authored over 3 years ago by brliron <[email protected]>
Add insertion for function literals

a917816596f2955ede610f902cc584b5a0755211 authored over 3 years ago by brliron <[email protected]>
Add insertion for functions instructions

2ae895cddf4438925292cfdf0d20ff6368184598 authored over 3 years ago by brliron <[email protected]>
Add edit support

The lib always had write support (and that write support have
already been used by thcrap for a ...

8efa724a3f4db1657d598005b7ec4cbaed36d711 authored about 4 years ago by brliron <[email protected]>
Add print-act-nut-64 to gitignore

09f42be0f05d3979544addc640b7a175006eb015 authored almost 5 years ago by brliron <[email protected]>
Act: nut stream: add support for writing plaintext scripts.

I guess I never tested that part.

67e34d786f4c412a1f0b00b13477139b9039c3b1 authored almost 5 years ago by brliron <[email protected]>
Act: add support for Layer::weirdarray.

Reverse-engineered only by looking at 2 example files, but it manages to parse every PS4 file, s...

d687a38f1d7f3dffbe3faeccf52784c79f3d40d5 authored almost 5 years ago by brliron <[email protected]>
SOuterType: use SQint_t as the internal type.

This one is hard, because it doesn't depend on the SQInteger size. Its backing type... is just w...

d5b5f91f67b029c52deb07b38dac339c79984a05 authored almost 5 years ago by brliron <[email protected]>
SQString: read string size as SQuint_t (instead of uint32_t)

43c0335c51f604019e753e5489218455ca09c8b5 authored almost 5 years ago by brliron <[email protected]>
Build a 32-bits-SQIntegers and a 64-bits-SQIntegers version side by side

8d5cba8243d7d54df44e9f7202554d3318f0d6d4 authored almost 5 years ago by brliron <[email protected]>
NUT: SQInstruction: switch arg1 from SQInteger to int32_t.

It was just wrong.

badb89ef8e7f467c89422a0795c4ea34bc448b30 authored almost 5 years ago by brliron <[email protected]>
Nut: add support for 64-bits ints and for doubles.

The ULiL PS4 nut files are compiled with 64-bits ints, so this change is needed to parse them.
T...

a1993f008e35c3ce7b8d86bf343e51948851b2d8 authored almost 5 years ago by brliron <[email protected]>
Remove warning about assignment from size_t to uint8_t on Visual Studio 2017

67a094372625131f7017b5f186ddc8449d0b54c5 authored about 5 years ago by brliron <[email protected]>
Add a nice syntax to edit a whole instruction

You can for example do something like this:
instruction = "jcmp(7,30,8,2)"

4b246aca9267ae1057b0f6bb0da0c00dc6775892 authored almost 7 years ago by brliron <[email protected]>
nut: improve SQInstruction.

- Set a parameter type for most parameters of all instructions.
- Write a quick documentation fo...

f24062cdb827a2202f6fcfa420543835c683a303 authored almost 7 years ago by brliron <[email protected]>
Act: when creating an object inside an ActNut::vector, set the vector as

the parent of the new object.

3f3cef8964cf64cb7064d40ea7a84a7aaf25f732 authored about 7 years ago by brliron <[email protected]>
Remove a warning with Visual Studio

20d0100d00ae9acab39fb4dc219c7ea9b7ca6936 authored about 7 years ago by brliron <[email protected]>
Act: add support for IFSMeshLayout.

Layer: add support for more than one keyframe.

9ec4df5e14a305bf71463eddc0f346326b7caf0b authored about 7 years ago by brliron <[email protected]>
Error: add additional informations about the file pos if you link the

error object with a buffer.
Act::NutStream: add support for non-compiled streams.

27777fc65e6ee1e37d6be508978701ab7620af33 authored about 7 years ago by brliron <[email protected]>
Initialize member pointers to nullptr.

If the initialization fails and we have to destroy an half-initialized
object, it will no longer ...

e6815f4de09d6dfebdf68061bc6901af14590a4b authored about 7 years ago by brliron <[email protected]>
SQInstruction: allow access/edit to op and arguments with operator[]

9869734025ecf100911579e9a50be100f634c4b4 authored over 7 years ago by brliron <[email protected]>
FileBuffer: open files in binary mode.

c9439744fe9a2673efc4cb8c3e3a880d63ade96c authored over 7 years ago by brliron <[email protected]>
Makefile: add support for static linking.

68174a10433d54b890e6744bf6eca7fe119db7c2 authored over 7 years ago by brliron <[email protected]>
Ignore some warnings with Visual Studio, because when they happen, we

have a if ensuring we won't go in the related code path.

40713b4a8479b7d084c5e8c2d5bdcad63108f2cd authored over 7 years ago by brliron <[email protected]>
Add an operator= to Act::Array, and fix a mismatched delete.

7bc39a26bf74e4e57117adab4d821510b2490e30 authored over 7 years ago by brliron <[email protected]>
Add an operator= to ActNut::Number<T>

9c74e64e8de4c9d1b82599f3197f3ff3517450d8 authored over 7 years ago by brliron <[email protected]>
Act::Entry: Call init_hashes automatically instead of relying on the caller to call it.

0445a131cbd16961a66e7044f436a9a966398f77 authored over 7 years ago by brliron <[email protected]>
Makefile: use correct extensions on Windows

f9abc3ab4dd97d2a68b620e64f5e40b7dab4fb34 authored over 7 years ago by brliron <[email protected]>
Add an additional way of printing errors with a callback function.

47f05515c19f7bfceec26af7798b37be61dd6c44 authored over 7 years ago by brliron <[email protected]>
- Make some functions virtual, because if they aren't virtual, they need to be called by name, and so I need to export their names.

- Rework the MemoryBuffer interface, and give it an option to NOT free or copy the input buffer.
...

378b17940b890076d5e4cb45f97a04cf7d94a486 authored over 7 years ago by brliron <[email protected]>
Fix some problems with includes

eb6e13498bfbaad53f443135d13a0274441f3031 authored over 7 years ago by brliron <[email protected]>
Update gcc build

b351e4dc17d700b785df2b36f9e2a1962a9024b0 authored over 7 years ago by brliron <[email protected]>
Export some functions

d7b641451aa406506a6fff7a695542d085457da9 authored over 7 years ago by brliron <[email protected]>
Add Visual Studio project files.

f55af939a88930758fe60b68406c387969c5ce5e authored over 7 years ago by brliron <[email protected]>
Displays quotes around strings, and a "null" string for SQNull.

f7838c83fe1d0803350b532adbb3d92b8b13ac07 authored over 7 years ago by Bruno Liron <[email protected]>
Add an operator= to ActNut::Object, and implement it for strings.

All primitives should implement it.

e88f4ca69b0e9afbc1b0b564f86f02456d10bbb6 authored over 7 years ago by Bruno Liron <[email protected]>
Add writing support

73a789b99900cc0089da8584647df1de6e006f38 authored over 7 years ago by Bruno Liron <[email protected]>
Replace the Nut::readStream function with the Nut::Stream class.

f21a39c13e994f88ec0a920f9bfefa6259a51cb5 authored over 7 years ago by Bruno Liron <[email protected]>
Add a FileBuffer, to read/write from/to a file (instead of from/to a memory buffer).

e2517a28968b00d2ee6662e287f434dddb194420 authored over 7 years ago by Bruno Liron <[email protected]>
MemoryBuffer: add write support

62431ac4ed2821e6b5be4915fa2f2995ef86a035 authored over 7 years ago by Bruno Liron <[email protected]>
Add the IBuffer interface for buffers, and move Buffer to ABuffer and MemoryBuffer.

51b362f9aab1bb66eabe735c185b6616e4960f03 authored over 7 years ago by Bruno Liron <[email protected]>
Add command-line options

50815497086a25dd4ae743e789af43e119c75b66 authored over 7 years ago by Bruno Liron <[email protected]>
Add support for printing the full name (with its path) of an element.

6f1091f68e0ab667ce27c561ba1c41471f38f0b1 authored over 7 years ago by Bruno Liron <[email protected]>
Add a getChild function to get a deep child of an object with a single call, without having to call operator[] lots of times.

Example of parameter: "sprites/0/nutstream/stream/Local variables informations/1"

38dcd4e7d56ebb9180985b63341b0502ca6bf75e authored over 7 years ago by Bruno Liron <[email protected]>
Add the operator[] to the nut classes.

fb5dd64f881c4760c5db017acd14a32323f6f203 authored over 7 years ago by Bruno Liron <[email protected]>
Act: add an operator[] to everything, to access members.

a4279dcf0d5338647937cfdfb72fd08b65779d63 authored over 7 years ago by Bruno Liron <[email protected]>
Replace std::ostringstream with std::to_string in some places.

f17cebda991f8a978d8a9510962bf3a5b887cf92 authored over 7 years ago by Bruno Liron <[email protected]>
ActNut::vector: the name of the created object now is its index in the vector.

b0f308fe814ec1ea94f5b85431491869752c492a authored over 7 years ago by Bruno Liron <[email protected]>
- Object will no longer implicitely have an empty name - if a component wants to create an object with an empty name, it need to say it explicitely.

- Add a "add" function to ActNut::vector - takes a reader function and a buffer as parameter, and...

b52cf47eef2055e740bd94185c8f93f28c3d0499 authored over 7 years ago by Bruno Liron <[email protected]>
Compile as a library

e1c1afefa8ea6490a3fa18ed80431812842a4c78 authored over 7 years ago by Bruno Liron <[email protected]>
Add a readme

1b1b12aef0691e5ff58d22d0849af95ae8d2e8f1 authored over 7 years ago by Bruno Liron <[email protected]>
Enhance display for nut

1074209d2ff08e3a500b03ac70f51b679302899e authored over 7 years ago by brliron <[email protected]>
- Merge Act::Number and Nut::Number, put them in ActNut.

- Add special display for booleans / floats.

b715023359f6d44b119faa6edc252ab3de64ea22 authored over 7 years ago by brliron <[email protected]>
Replace SQObjectPtr with ActNut::Object

296449a56f24697891721621221393ede652010e authored over 7 years ago by brliron <[email protected]>
Make all nut objects derive from Object.

377c1bddccf501cceaa878cd1c29597ca7fb801e authored over 7 years ago by Bruno Liron <[email protected]>
Move most of the Act::String/Nut::SQString to ActNut::String, and move some constructors from the hpp file to the cpp file.

883fb46c4b91fa0242238369fbe1d466af70b309 authored over 7 years ago by Bruno Liron <[email protected]>
Fix an error when statically linking the libc++ with mingw-w64

597c2fa085eb22337ab05cbbb6b1d2db273322b1 authored over 7 years ago by brliron <[email protected]>
Move all the act stuff to a subdirectory, and merge the act and the nut projects.

2cf9cdda00c635d2ef2398b5b54150d6ce74f7fb authored over 7 years ago by Bruno Liron <[email protected]>
Add act/nut files to .gitignore

e05200169881b43291843c0a5aa55df148d2a8c1 authored over 7 years ago by Bruno Liron <[email protected]>
Use buf.readByte() instead of buf.readBytes(&var, 1).

0b588ac264e148a981240349ebe26aa66b1cbb5a authored over 7 years ago by Bruno Liron <[email protected]>
Creating functions to allocate the root Act/Nut object, and other stuff.

1583645b9892fd18b6c9b722d1bc375288d69eb1 authored over 7 years ago by Bruno Liron <[email protected]>
SQObject.hpp: add the string include (needed by MSVC)

40025ef198fc97df28d914a5c4292cbde5f24f29 authored over 7 years ago by brliron <[email protected]>
Add the Nut scope, and change all nut code to use Buffer.

27baf40556aaa6ed2f6530aaa3660e9f077dc5cc authored over 7 years ago by Bruno Liron <[email protected]>
Visual enhancements (indent etc)

a1fa204333b8e4a3b0604309acda8063bfeb5ec1 authored over 7 years ago by Bruno Liron <[email protected]>
Create an Error class, and put Buffer in a global namespace.

629dfd9b42908dfa56804a8ac9810c6ce4670e08 authored over 7 years ago by Bruno Liron <[email protected]>
Add the Act::Entry::reader static function.

41ba6d80012e6927e42c8f7617b86add69e0804b authored over 7 years ago by Bruno Liron <[email protected]>
Replace throw by ActNut::Error::error

650d8ce61255d49085ff133569a6c8ec115c4851 authored over 7 years ago by Bruno Liron <[email protected]>
Finish ACT support

ab3fb3df36a0bd885fd1d9c08b5d16e6fbadd9e6 authored over 7 years ago by Bruno Liron <[email protected]>
Move Act::Object to the more global ActNut::Object

bae457db3e4c54db053077ecf199e9ad59baa8a7 authored over 7 years ago by Bruno Liron <[email protected]>
Initial commit

a7469b2d5652c14c53a34192c507f73a94b30bc1 authored over 7 years ago by Bruno Liron <[email protected]>