.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   WinSPMBT (http://forum.shrapnelgames.com/forumdisplay.php?f=78)
-   -   Icon list question (http://forum.shrapnelgames.com/showthread.php?t=28016)

TDR March 16th, 2006 11:21 AM

Icon list question
 
JUst been going through all the various bits that come with the game..
In a file called "WINSPMBT_MasterIconList.txt" on many vehicles the turret 'graphic' has a value of 6976, eg icon #4 M113. I though this was the MG but 6976 ends up as a hull graphic.

Is this a special turret type code for vehicle that don't have turret graphics but have turret ability for their weapons?

Thanks
(Just waiting for WinSPWW2)

DRG March 17th, 2006 07:27 AM

Re: Icon list question
 
"6976" is a SHP file co-ordinate not a Icon number. It's a blank placeholder used to allow AAMG's on "turretless" vehicles

Don

TDR March 17th, 2006 08:50 AM

Re: Icon list question
 
Thanks.
To understand that then 69 is the SHP file Icon0069.shp, and the 76 is the last graphic in this file, which is actually a blank one. Its #76 because you sort of start your individual counting from -1,(negative 1), the very first image in this file, since there are 79 images in the SHP file.

Also can I assume then the "WINSPMBT_MasterIconList.txt" file is not fully up to date,(version 2.5)?

DRG March 18th, 2006 10:32 PM

Re: Icon list question
 
The numbers listed in the Icon list like....

(6901,6976}, // 630. BREN CARRIER

.....are the numbers the game code uses to find things and the game code ignores the first SHP in a SHP file **AND** it counts everything starting at zero. SHPEdit, on the other hand, WILL read the first image in a SHP file AND it counts starting with one ( not zero )so when you open a SHP file like Icon0069.shp with SHPEdit it will report the last number as 78 but the game reads that last number as 76 so the game code is loading the 76th image in file 69 but SHPEdit "knows" this as 78.

If you want to see the Bren carrier in that same file you don't enter ' 1 ' into SHPEDit.....you add 2 to whatever is listed in the Icon list.....so 3 will show the Bren Carrier and 78 will show a single pixel to represent the "invisible turret" that allows 360 degree AAMG fire.

Don

TDR March 18th, 2006 11:59 PM

Re: Icon list question
 
Thank, its slowly making sense..


All times are GMT -4. The time now is 11:46 AM.

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