Radfordhound / HedgeLib

A C++ library and collection of tools that aims to make modding games in the Sonic the Hedgehog franchise easier.
MIT License
90 stars 29 forks source link

Add HSON templates for Sonic Colors (and Ultimate) #86

Closed DeaTh-G closed 3 months ago

DeaTh-G commented 5 months ago

Adds HSON templates for Sonic Colors and Sonic Colors: Ultimate. 75% of the templates were auto-generated from leftover development data in Sonic Colors: Ultimate's Kurt_Level_Composites folder.

The HSON template version number has been bumped due to 2 objects requiring multiply category names to be included instead of just one. Version 2 uses the field categories which is an array of strings for the category names of each object. The template also introduces a new field reftype for object_reference type objects as for some reason one of the parameters on the Sonic Colors: Ultimate include an object_refernece with a type of a float32.

The Spawner naming scheme from later games, such as Sonic Lost World, Sonic Forces and Sonic Frontiers have been carried over into this template file.

Objects with categories are dumped from Sonic Colors: Ultimate by re-enabling the set editor to a very basic state (no functionality) and dumping out the object and category names that way.

Enumerators have been made for objects based on their parameter's name and other parameters (such as: EventVolumeCameraChangeSpawner::IsStop) based on the same object found in other Hedgehog Engine titles.

More details on manually added objects and points of contention down below.

Radfordhound commented 3 months ago

Thanks a ton, man; these look great! LGTM or whatever they say