FireEmblemUniverse / ColorzCore

A rewriting of Core.exe for EA.
GNU General Public License v3.0
7 stars 7 forks source link

Suggestion: Allow the size of the ID parameter in raws to be specified #3

Open LeonarthCG opened 6 years ago

LeonarthCG commented 6 years ago

The ID of a raw is always a short (this was the case in the old core too) which is fine for Fire Emblem, for the most part, but can cause issues for other games.

One can get around this by setting the code ID to 0 and using the "fixed" parameter flag on the first parameter. as well as using the "unsafe" code flag.

This is an exmaple from Traps.txt:

FIRE, 0, 6, -language:FE7:FE8 -unsafe -priority:ballista -indexMode:8 -offsetMod:1 4, 0, 1, -fixed

My suggestion for a solution is to add a code flag to specify the size of the code ID and either make it default to 2 bytes if there is no size specified or add a way to specify the default size of code IDs based on language.