Unit Edit help

kalemvar

Chieftain
Joined
Sep 13, 2011
Messages
14
Hello everyone

I'm trying to edit my game to try to add some difficulty, challenge and fun.


for the moment this is what I have reached:

-unit.gif edited with a new carrier (2nd model)
-rule.txt edited with the attribute

in the game if I want build it I can see it in the city '''build'' window WITH the attribute I gave it to, BUT this is where I'm and the problem start.

when I leave the window and I go back to the main window of the city it's a monster instead of a carrier I'm seeing, same thing If I build it entirely.

I'm sure it's little something I'm not making right but I can't see it after many try.

Thanks

Kalemvar
 
Is your Civ2 "test of time"? Maybe I can help, personally.:)

If it's not T0T, never mind openning this
Spoiler test of time :
Are you certain it really is ToT?:p
Spoiler :
Is it added, or you replaced the existing carrier? Because if it is added, you're dealing with the misleading .spr file. Go to the root folder of your mod(ex. "ProgramFiles/CIV2/Original", or wherever you installed it.). Count the icons in the units.gif, from the settler to your modified icon, starting from the number 0. Then look for the corresponding number in the .spr files and rename. Eg. "UnitXX.spr" to "Unit123.spr"

Hope it helps.:)
 
It sounds suspiciously like ToT, despite the units.gif reference. See here (first point).

Sources of unit graphics in ToT (priority left to right):
Build menu → units.bmp
City screen & dialogue boxes → static.spr* > units.bmp
Game map & status bar → unitXX.spr** > static.spr* > units.bmp

* Unless one of the sprite overrides has been enabled (@UNITS_ADVANCED in rules.txt or .SPR file override in Scenario Parameters).
** Unless the Animated Units option has been disabled under Graphic Options (Ctrl+P) or the @UNITS_ADVANCED sprite override has been enabled.
 
Hello,

here is the answer from few questions:

-I'm running ToT.
-I want to create a second Carrier unit, not only change the pic of the one already in the game.
-I'm playing ''original'' game, and I only changed the rule.txt and unit.bmp from that folder.

it is important to leave the unit file with the .bmp or .gif?

Thanks for your replies guys

EDIT: To help, my carrier unit is the 52nd in unit.bmp (left to right of course) and I'm getting some kind of sea monster instead of the new carrier but only on the game map (when built) and when it is under construction. On my unit.bmp I have eraser all the other units after the 52nd with a blank case (rose and grey) that I copy and paste.
 
it is important to leave the unit file with the .bmp or .gif?
I'm not sure what you mean. You need units.bmp in the Original folder. Forget about GIFs and SPRs.

EDIT: To help, my carrier unit is the 52nd in unit.bmp (left to right of course) and I'm getting some kind of sea monster instead of the new carrier but only on the game map (when built) and when it is under construction. On my unit.bmp I have eraser all the other units after the 52nd with a blank case (rose and grey) that I copy and paste.
Note that the Extended Original game uses most of the units slots after the Explorer. If you don't care about that game, then it doesn't matter. Otherwise, there are 3 spare slots following the Eightball. To prevent the default unit sprites from appearing in the game, you need to set the sprite override for your new unit in the @UNITS_ADVANCED section in rules.txt, as per point one in this link.
 
Thanks You Catfish, that work perfectly now :D

Two little more questions (I've read the forum using search option with no success)

1. Is it possible to add City Improvements or Wonders (purely custom made like units) ?

2. Is it possible to have a Unique unit? (like a Wonder, build only one time) ?

Thanks

Kalemvar
 
1. Is it possible to add City Improvements or Wonders (purely custom made like units) ?

2. Is it possible to have a Unique unit? (like a Wonder, build only one time) ?

Thanks

Kalemvar

1: No, you can't. You can only replace the existing graphics (mine, irrigation, farmland, road, and RR). And also a N0 for wonders.
2: Unique unit is possible. But build a unit only once? I think, no.

EDIT:There is another way of putting a unit in the game once, actually. With the use of Events.txt file...and creativity, ofc.
 
1. Is it possible to add City Improvements or Wonders (purely custom made like units) ?
You can only change their graphics and edit the existing entries under @IMPROVE in rules.txt. Improvement/wonder effects are hard-coded, although these are enhanced or muted by certain technologies. See here.

2. Is it possible to have a Unique unit? (like a Wonder, build only one time) ?
As JL said, you're looking at events. Not a buildable one anyway. There's no way you could stop a player from building multiple unique units once they received the prerequisite technology - even if you took it away (TakeTechnology) in the following turn. You could create one unit instantly using a very simple event:

If ReceivedTechnology [UU Tech] then JustOnce CreateUnit [Unique Unit].

For a mod, you'd likely use the InCapital modifier.
 
Thanks Catfish, everything you gave me work perfectly in my game that's wonderful what it is possible to make with Civ2 :D

Quick question, if I want to add Advance, as exemple ''Advance Flight 2'', I add it under @Civilize

Advance Flight 2, 2, 0, AFl, Roc, 3, 4 ; AF2

This step work fine but if I want to add a unit under this Civilize, as exemple ''F-22''

F-22, nil, 1, 12.,3, 15a,6d, 2h,2f, 40,0, 3, AF2, 100000000010001

The game get a Fatal error ''-6'' in module ''3'' data 54 0

I'm sure there's a little something I'm going wrong but I can't figure it out with try/false with the game. It's like I can't add a unit when I'm developping a Civilize I created. If I use this line

F-22, nil, 1, 12.,3, 15a,6d, 2h,2f, 40,0, 3, AFl, 100000000010001

The game is working fine

Thanks for your help :)
 
I'm not Catfish but here's what I see from here;);

"AF2" is not right, your only choices are U1,U2,U3 and X1, X2,...X7. You can still use the name "Advanced Flight 2" but you have to use the existing acronyms.

Note that those start with ";" symbol are only used for references. They don't have any effect on the game when altered. :)
 
Again a little question here to jarhead_leif & Catfish :)

Is it possible to create units like ''Air Cargo'' to be able to transport units. I tried to give ship unit aptitude to an air cargo but it didn't work.

Is it possible to create units like ''Air Tanker'' to be able to refull planes. Giving the same ability as an ''airbase''

Thanks, Kalemvar :)

Merry Christmas all
 
Again a little question here to jarhead_leif & Catfish :)

Is it possible to create units like ''Air Cargo'' to be able to transport units. I tried to give ship unit aptitude to an air cargo but it didn't work.
Unfortunately, it isn't possible to carry any units via another non-naval unit (like if you wish to create infantry vehicle or a cargo helicopter). Only navy units will work. :sad:
Is it possible to create units like ''Air Tanker'' to be able to refull planes. Giving the same ability as an ''airbase''
Yes, you can create a land based mobile that can refuel air units (like a land carrier). ;)
Then again, it's impossible for a land unit to carry air units, it always leaves them sentry/grey color.

Merry Christmas. :)
 
Back
Top Bottom