PDA

View Full Version : ? about VehicleSizes.txt


DavidG
July 21st, 2002, 02:34 AM
Does anyone know what the "Alternate Bitmap Name" field is used for in VehicleSizes.txt?

Baron Munchausen
July 21st, 2002, 02:51 AM
Alternate Bitmaps. http://forum.shrapnelgames.com/images/icons/tongue.gif

If the PRIMARY bitmap is not found, it will try for the alternate before it goes to the 'generic' directory. And then it will even try both Primary and Alternate in the Generic directory, too.

[ July 21, 2002, 02:03: Message edited by: Baron Munchausen ]

DavidG
July 21st, 2002, 03:01 AM
http://forum.shrapnelgames.com/images/smilies/rolleyes.gif Yea I guess that was kind of obvious. What I was getting at is why is it used (since it is often the same as the primary) but I guess the Alternate should always be a standard name while the primary could be a new pic type in a mod.

Fyron
July 21st, 2002, 03:43 AM
It is used for mods. If you add a Heavy Destroyer, set it's primary bitmap to HeavyDestroyer.bmp and the alternate to Destroyer.bmp. Races with a HeavyDestroyer.bmp will use it, but those without one will use the Destroyer.bmp picture. The default races do this with Baseships.

Andrés
July 21st, 2002, 04:54 AM
You have the Baseship example, and even an example of a stock shipset with a baseship picture (Praetorians).

[ July 21, 2002, 03:55: Message edited by: Andr&eacutes Lescano ]

Captain Kwok
July 21st, 2002, 06:29 AM
Does anyone know if there is a maximum to how many ship size entires can be in VehicleSizes.txt?

Fyron
July 21st, 2002, 07:47 AM
Umm... 256 squared?

Andrés
July 21st, 2002, 09:04 PM
Max allowed tonnage is 65535
Checking if that's also the max number of entries is more difficult

Fyron
July 21st, 2002, 09:51 PM
1 less than 256 squared. http://forum.shrapnelgames.com/images/icons/icon7.gif

DavidG
July 21st, 2002, 09:59 PM
Hmm is this a common limit for values in se4? Just wondering if my program should error check for numbers larger than that.

Andrés
July 21st, 2002, 11:38 PM
Originally posted by Imperator Fyron:
1 less than 256 squared. http://forum.shrapnelgames.com/images/icons/icon7.gif <font size="2" face="Verdana, Helvetica, sans-serif">I think that's because first value is 0 and not 1
The same way that max number of systems is 255 and not 256

[ July 21, 2002, 22:39: Message edited by: Andr&eacutes Lescano ]

Fyron
July 22nd, 2002, 12:31 AM
DavidG:
Yeah.

Andres:
Exactly. http://forum.shrapnelgames.com/images/icons/icon7.gif