davidlallen
Deity
In my Mad Max mod, I want to have two road types: highways, which are pre-apocalypse, and normal roads which can be built easily. The highway can use the railroad route type; I have already changed the graphics so that it looks like modern road.
But, there are two things I cannot quite figure out how to do.
1. All unitclasses, including foot units, get fast movement speed on the railroad. I want to prevent foot unitclasses from using the fast movement speed. This is kind of the reverse of the existing "route restrictor" mod, which lets me limit certain units to only moving on the railroad.
How can I prevent certain unitclasses from using railroads?
2. I want the players to build normal roads and not highways, until they research a late game tech "Highway Repair". But I want them to be able to use the highways from the start. It seems that the ability to *build* railroad and *use* railroad are linked. In WB, build a long railroad outside cultural borders; give one civ the railroad tech; and don't give the other civ the railroad tech. The civ with railroad tech can use the railroad and the other one can't.
The only place I can find for this linkage is in the file units/civ4buildinfo.xml, the "build railroad" command. If I change which technology this requires, say to "NONE", then everybody can use the railroad at the start of the game. But also, everybody can build new railroad at the start of the game, which is not what I want. I want no tech requirement to *use* the railroad, but require "Highway Repair" tech to *build* the railroad.
How can I have different techs to build vs use railroad?
But, there are two things I cannot quite figure out how to do.
1. All unitclasses, including foot units, get fast movement speed on the railroad. I want to prevent foot unitclasses from using the fast movement speed. This is kind of the reverse of the existing "route restrictor" mod, which lets me limit certain units to only moving on the railroad.
How can I prevent certain unitclasses from using railroads?
2. I want the players to build normal roads and not highways, until they research a late game tech "Highway Repair". But I want them to be able to use the highways from the start. It seems that the ability to *build* railroad and *use* railroad are linked. In WB, build a long railroad outside cultural borders; give one civ the railroad tech; and don't give the other civ the railroad tech. The civ with railroad tech can use the railroad and the other one can't.
The only place I can find for this linkage is in the file units/civ4buildinfo.xml, the "build railroad" command. If I change which technology this requires, say to "NONE", then everybody can use the railroad at the start of the game. But also, everybody can build new railroad at the start of the game, which is not what I want. I want no tech requirement to *use* the railroad, but require "Highway Repair" tech to *build* the railroad.
How can I have different techs to build vs use railroad?