MODDING ANNOUNCEMENT: bug fix for 50+ bonuses

primem0ver

Emperor
Joined
Jun 16, 2006
Messages
1,158
Location
Peoria, AZ
After two days of testing, I have come up with a fix for the "No-more-than-50 bonus" bug. The original thread for this problem is located in the utility forum (entitled using 70 resources in a mod) but I decided to post the fix here because I wanted it to be known to modders in general. I am quoting much of what I said there: (If you want to skip the details... just download the file here).

Hi all.

I work on the same mod team as dubmetender and I have successfully modified the gamefont.tga file so that it works with adding up to (I believe) 84 resources. There are no problems with adding more resources to the gamefont_75.tga but for reasons explained below, this does not work as expected with gamefont.tga

EXPLANATION (as far as I can tell)

There is a bug that led to the gamefont_75.tga and gamefont.tga to be loaded with different methods by the civ4 executable. It appears as though the method was done by two different programmers, one for the smaller, one for the larger font... who knows, but they don't work the same

As a result, the layout must be done differently for more than 49 resources. This new layout has worked for the addition of 6 more. I have successfully added 6 resources (for a total of 55) with no further trouble. I believe that we can add to the end of the current row in gamefont.tga without trouble. If anyone goes beyond that, I expect we may have a problem again (but who knows... who needs more than 84 resources without a supercomputer ;) ).

And from a later post:
IMPORTANT UPDATE

I discovered something even more incredible this weekend when I was playing the game:

Not only does the bug affect how the gamefont.tga file is used, but it affects when it is used properly. The civics screen and popup boxes use the large font correctly (hence... why if you use the above file, they don't work... there is a "bug" in my file).

I removed the repeated icons which were messing up the civics screen and popups and now they work properly.

The file now has 55-56 resource (I think). I will supply it here as soon as I figure out how to remove the old version and put the new one in its place (in the file database).

I believe that this layout will allow up to 84 resources (adding resources to a third line will work with gamefont_75.tga but probably not with gamefont.tga...)
 

Attachments

Very cool stuff, thanks primem0ver.
 
NP kael. (actually it was kind of a pain... but glad to help) :)
 
Back
Top Bottom