Thread: update broke us
View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-29-2013 , 18:39   Re: update broke us
Reply With Quote #15

Quote:
Originally Posted by VoiDeD View Post
This actually becomes an issue with how ff2 builds attribute strings for bosses.

Although I'm not sure if the most recent public version does this, but some old version (and my forked version) of the FF2 code will concat a bosses attribs with some hardcoded attribs in the plugin.

So if a boss is being given a weapon with blank attribs, the final string will be something like "2 ; <something> ; 49 ; <somevalue> ; " (attribs completely from memory, but emphasis on the final semicolon and whitespace).

Now when the item code runs through whatever gets exploded, an empty string is passed to StringToInt, and that returns 0 and the code interprets that as attrib 0 and it all explodes.
As far as I'm aware, all public versions of FF2 concat hard-coded attributes for melee weapons.

Speaking of public versions, do you have a public source code repo for your version somewhere?
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline