openfodder icon indicating copy to clipboard operation
openfodder copied to clipboard

Custom Soldiers Names

Open TsukiZero opened this issue 2 years ago • 3 comments

This is more of a question than a suggestion for feature, but you can take as such if you will: Is it possible to make a custom soldier names mod that perhaps from an ASCII text file with one name per linebreak?

To contribute some more, in the SNES version it's straight-up stored in text format, 6-characters long, A-Z (all caps), doesn't support numbers nor symbols, low caps results in a different text color (highlighted) with an "offset" to which character correspond to what ("o" becomes golden "K"), needs a space to fill the blank.

So a name like COOKS is perfectly fine, but Coffee, Max!me, BL0RB1, PIZZA are not

TsukiZero avatar Jan 22 '23 19:01 TsukiZero

This is possible, its similar to this already, except its compiled in and still contains data from a dropped feature

https://github.com/OpenFodder/openfodder/blob/master/Source/Recruits.cpp#L27

segrax avatar Feb 24 '23 17:02 segrax

So it should be simple to implement, I presume?

TsukiZero avatar Feb 25 '23 11:02 TsukiZero

Hello, it could be a check in the resources loading: if a Recruits.ini file is present, it could override the default mRecruits[] struct. The file reader will take only first 6 characters and a capitalization of the letters, maybe a regExp to discard names with non-alphabetical chars.

I'll try to see what can I do for a PR, but time is very limited.

drnovice avatar Jul 06 '23 10:07 drnovice