Knuxfan24 / KnuxLib

A repository for me to push various bits of code for random file formats in random games I'm tinkering with, alongside basic command line tools for format conversion where applicable.
MIT License
5 stars 2 forks source link

(World Adventure Wii) Stage Entity Table Support #5

Open Knuxfan24 opened 1 year ago

Knuxfan24 commented 1 year ago
Knuxfan24 commented 1 year ago

I have written some awful code to determine if a value is a floating point number or not, but this ignores any other data types besides unsigned integers.

Attached is a very basic HedgeSet styled template sheet with each object's parameters labelled as either a uint32 or a float32. swa_wii.zip

Knuxfan24 commented 1 year ago

Parameters look to be the same between the versions, based on reading them all as UInts and dumping them to HSONs then comparing the output.

Knuxfan24 commented 1 year ago

Updated the HedgeSet styled template sheet to indicate when a parameter for an object never has a value other than 0. Also opted to stop attaching _SPAWNER to the struct definitions and just make the name in the object definitions be their hex type.

swa_wii.zip

Knuxfan24 commented 1 year ago

Commit https://github.com/Knuxfan24/KnuxLib/commit/84037562b1eba93bd2caa3e454e3924364b5a82e leverages HSON Templates to read and write the parameters as uints or floats, using the same template sheet above (which is now present as part of the repo).