Engineer (Ocean to terrain)?

kalemvar

Chieftain
Joined
Sep 13, 2011
Messages
14
Hello everyone,

I'm playing Civ2 recently and I remember the old time when I edited the rules.txt to add fonctions to some unit but I lost the knowledge of this a bite.

can someone help me with the coding to perform engineer fonction (converting Ocean to terrain, WITHOUT cheating of course but with the rules.txt)?

Thanks

Kalemvar
 
@UNITS:
Line 2, column 3: Change Engineer domain from 0 (ground) to 1 (air).

@TERRAIN
Line 11, column 7: Change Ocean value from "no" to "Grs" (case sensitive).

This will allow Engineers to fly over ocean (helicopter style) and 'irrigate' it to produce grassland.
 
:eek:

So how to these flying Engineer guys work? Do they run out of fuel? How many spaces can they go per turn? Can enemy aircraft shoot them down?

And how is this NOT cheating?
 
Hello Catfish

I've tried this and saved the rules.txt but when I want to load a game my civ2 is stopping to work.

TERRAIN
Line 11, column 7: Change Ocean value from "no" to "Grs" (case sensitive).

Maybe there's more things to change in the code line ?

Thanks

Kalemvar
 
It should look like this:

@UNITS
Code:
Engineers,    nil, 1,  2.,0,  0a,2d,  2h,1f,  4,0,  5, Exp, 000000000000000
I made a typo in my 1st post: it's column 3, not 4. That wouldn't cause a crash, though.

@TERRAIN
(Classic/FW/MGE)
Code:
Ocean,      1,2,  1,0,2,   Grs,  0, 0, 0,   no,  0, 0,  0,  no,    ; Oce

(ToT)
Code:
Ocean,      1,2,  1,0,2,   Grs, 0, 0, 0,   no,  0, 0,  0,  no,   no, ; Oce
 
Question re: ToT. Could an Engineer-type unit also change ocean-equivalent spaces to terrain-equivalent spaces in the Lalande and Midgaard worlds? For example, would it be possible for an Environeer to change Space to the Grassland equivalent terrain of an orbital platform? How about a Buteo settler or Dwarf building new Clouds?
 
Hello again catfish

If I want to do the opposite ( converting terrain into ocean ) what would the code ? :)

Thanks

Kalemvar :)
 
Question re: ToT. Could an Engineer-type unit also change ocean-equivalent spaces to terrain-equivalent spaces in the Lalande and Midgaard worlds? For example, would it be possible for an Environeer to change Space to the Grassland equivalent terrain of an orbital platform? How about a Buteo settler or Dwarf building new Clouds?
Yes, ToT's official scenarios and mods are no different to any other game. ToT has an additional flag (in @UNITS_ADVANCED) that can promote any role 5 unit to engineer status, something normally reserved for unit slot 2. You can't, however, assign specific terraform abilities to one type of engineer unit to the exclusion of others. If one can change a specific terrain type, they all can.

If I want to do the opposite ( converting terrain into ocean ) what would the code ? :)
You should notice a pattern. Column 7 under @TERRAIN lists the transformation result of irrigation. Changing the value to "Oce" for one of the other terrain types will produce ocean. Change column 9 to 0 to make the transformation instantaneous. You could do the same type of thing for mining (columns 11-14) or the Transform order (column 15). The latter is slower.
 
Yes, ToT's official scenarios and mods are no different to any other game. ToT has an additional flag (in @UNITS_ADVANCED) that can promote any role 5 unit to engineer status, something normally reserved for unit slot 2. You can't, however, assign specific terraform abilities to one type of engineer unit to the exclusion of others. If one can change a specific terrain type, they all can.
I was using the Buteo and Dwarves as examples. I love using those units in the worlds where they weren't actually meant to be - you can teleport a Dwarf to the underwater world or the Cloud world, and Buteo Settlers can go to the underwater world if they're on a Kraken that dives underwater. I haven't tried to see what Goblin Settlers might be able to do - probably not that much, since they can't terraform anything normally. I just thought it would be cool if a Dwarf (for example) or any other unit with Engineer abilities could build a new Cloud - or would it be a patch of grassland up in the sky? :crazyeye:
 
I played around with it a bit, as I'm a little rusty; haven't played Civ2 in almost 2 years. You can't use the Transform (o) order over ocean. A domain 0 (ground) settler/engineer carried by a ship can irrigate/mine ocean into another terrain type - using the type of @TERRAIN edit shown in post #6.

I haven't tried to see what Goblin Settlers might be able to do - probably not that much, since they can't terraform anything normally.
There are seven role 5 units in the Midgard/Fantasy game. Dwarves, being the only units with engineering capabilities, are the only ones that can use the Transform order. The rest, including Goblin Miners, can still terraform via irrigation and mining.

I just thought it would be cool if a Dwarf (for example) or any other unit with Engineer abilities could build a new Cloud - or would it be a patch of grassland up in the sky? :crazyeye:
No, each map has its own set of terrain data and graphics. The cloud world data are stored in @TERRAIN3 in rules.txt. You'll notice that if you terraform the cloud world with the existing rules, it changes into other types of cloud world terrain. So by modifying @TERRAIN3, yes, settlers could be given the ability to irrigate/mine sky terrain into various types of cloud.
 
Back
Top Bottom