.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=130)
-   -   A stern warning to those altering credits.ini (http://forum.shrapnelgames.com/showthread.php?t=32694)

Phlagm January 7th, 2007 05:07 PM

A stern warning to those altering credits.ini
 
I made the classic WW modding mistake. I edited 17 things at the same time, and then tried to test them.

I was fine tuning a weapon on my test ship, and then I decided that I should put three weapons on it and thus I could tweak 3 simultaneously. That worked well, until I decided to simultaneously add a sound file, make the beginnings of a new weapon (and mod the test race file to put it on the ship) and then tweak another weapon. On top of all that I decided to add some silly mod credits to the front of the real credits.

Then I loaded the game back up, and it worked fine, but when I clicked the simulator button, crash! I reinstalled the game and started building up the mod folder one tiny bit at a time (after lots of other removing of the test race, the test ships, and all the weapons I had been messing with, and it all failed to correct the problem) 2 hours later, I discover it was the modified credits that did it.

BEWARE!

-Jeremy

Fingers January 7th, 2007 05:45 PM

Re: A stern warning to those altering credits.ini
 
Yeah, testing one thing at a time is the safest.

The credits.ini has a size limit of 160 lines and seems to have a particularly screwy failure mode if you exceed that. Not only do the credits break but it'll overflow and garble some pointers to interface strings. This will cause a crash when it tries to display a generic button like "CANCEL".

If we release another update I'll make it fail more gracefully (ie. just ignore any credits lines after 160). This was just sloppy coding on my part... Near the end of the project, seemingly insignificant part of the program, etc...


All times are GMT -4. The time now is 03:09 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.