Help needed - making mod

Dark Sheer

Deity
Joined
Nov 15, 2001
Messages
2,096
Location
Penang, Malaysia
Ok, now I added a few units to my mod (namely terrorist, pioneer, Facist and a few others). Now all the unit work just fine so far and I have already seen the AI building some pioneer of their own:cool: (Pioneer is an advanced settler with A/D/M of 2/3/1 and all terrain as road, perfect for colonizing those jungle :D )

Now, here is the problem, somehow the unit icon is missing from my build menu and in one particular case even from the city unit menu :(

The icon that I am missing are :

1) Modern settler (It become missing only after I reach industrial age)
2) Modern worker (same as above)
3) Leader (this one appear as a blank icon in the unit list)

I suspect it is because I use either their icon for some other unit or I used Civ3copy to copy them for the new unit :confused:

1) I used the modern leader graphic and animation as default for my Facist and also the animation from infantry and workers.
2) I used rifleman graphic and animation for Pioneer but rifleman icon has no problem:confused:

Anyone who has made their own unit has this problem??
 
About the modern unit icons, you can try to move them in units_32.pcx as many steps as you added units. If the row ends you just have to make a new row.
 
Originally posted by Gramphos
About the modern unit icons, you can try to move them in units_32.pcx as many steps as you added units. If the row ends you just have to make a new row.

ummm...this maybe sound a little stupid, but how exactly do I edit the file?:D
 
To edit the file you will need a program capable of reading and writing PCX-images. Paint Shop Pro and Photoshop can do it to name some.
 
Alright, I got what you mean and done it already with the help of Photoshop :D

Thanks alot Gramphos!! I have expended my units_32.pcx file with an additional 2 lines so now I can have up to 111 icons for my units. Muwahahaha :lol:

Never realize the darn program actually hard coded the icon position. :p
 
Originally posted by Dark Sheer
Alright, I got what you mean and done it already with the help of Photoshop :D

Thanks alot Gramphos!! I have expended my units_32.pcx file with an additional 2 lines so now I can have up to 111 icons for my units. Muwahahaha :lol:

Never realize the darn program actually hard coded the icon position. :p
How many of the images did you have to move?

I've only observed that the graphics of units with more then one icon seem to begin at number_of_units.

Is that correct? I might be able to make the CopyTool to move the images itself.
 
The number I have to move = the number of unit I created. In my case, I created 8 so I have to move the unit icons starting from the medival leader icon down 8 steps. I actually missed one unit when I first move them but this is easily noticed as my modern settler's icon become the worker and worker become blank:o

If I got it right, the image size used in the units_32.pcx is 32x32 and its framed by a border of 1 pixel on all side. The issue really is because any unit's era icons are stored after the last image and the program just assume that there is no repeated icon for units, so number of icon = number of units.

It would be cool if you can incorporate the unit move into the Civ3CopyTool. But I believe you might need to solve one thing, that is checking how many units the user has already added. I think this can be achieved by searching for the first 32x32 frame that has only the background color of 255,0,255 (assuming the user didn't mess it up before that. But if it was already mess up, then its not a fault of the CopyTool anyway). Its a great tool, good work there man!:goodjob:

I still have one minor problem though, I can't seems to find where the program get the unit icons in the tech tree from :( Interesting enough, the program know which unit I copy the current unit from as the icon in the tech tree is the same as the old unit icon. It is very glaring in my case as I copy the original cruise missile as a base for my terrorist unit and it show up as a cruise missile on the tech tree eventhough I have changed the icon elsewhere:eek:
 
Back
Top Bottom