Route models

TC01

Deity
Joined
Jun 28, 2009
Messages
2,216
Location
Irregularly Online
I discovered (well, Kailric discovered) that the railroad graphics I converted to Colonization from Civilization IV for Westward Ho are apparently missing some graphics. When I worldbuilder a 3x3 square with railroads, the middle railroad appears as a red blob. It may appear as red blobs in other areas as well, I haven't done thorough testing.

I suspect that the error is because Colonization's road has many more Route Models defined in CIV4RouteModelInfos.xml then either the road or railroad does in Civilization IV.

However, I have no clue as to what the problem is as I lack familiarity with the route model system or even much of the Civilization/Colonization art system. Anyone who understands Colonization's route models maybe know what's wrong? If you've downloaded Westward Ho v0.23, you can see the error by doing as I describe above and looking into the files.

Thanks in advance if you can help (or report other railroad configurations where a problem occurs).
 
I suspect that the error is because Colonization's road has many more Route Models defined in CIV4RouteModelInfos.xml then either the road or railroad does in Civilization IV.

I don't think that's true, since for my trail mod I converted a paved road graphic to replace the default road one and had no problems. Maybe checking out what I did then could help? Since the mod deals with just adding the trail and replacing the default road graphic, it should be easier to compare it and the railroad.
 
I know for a fact that the Col road has something like 157 route models and the normal Civ road/railroad only has 86 or so... it could just be because I forgot to convert over a route model or something.

I'll check out your mod when I have more time. I downloaded it now but have no time to actually look at it.
 
I know for a fact that the Col road has something like 157 route models and the normal Civ road/railroad only has 86 or so... it could just be because I forgot to convert over a route model or something.

I'll check out your mod when I have more time. I downloaded it now but have no time to actually look at it.

Ah well, then it's possible - try it out and let me know, maybe I didn't notice something.
 
No, your mod works fine... except that you built it off of Plantation Economy, so I had to manually delete the Indigo, Coffee Planters and resource-units. So unless I applied it ontop of PE, I got a crash on loading. I mentioned this in the actual mod thread also.

Perhaps I forgot to copy over a railroad art define...
 
No, your mod works fine... except that you built it off of Plantation Economy, so I had to manually delete the Indigo, Coffee Planters and resource-units. So unless I applied it ontop of PE, I got a crash on loading. I mentioned this in the actual mod thread also.

Perhaps I forgot to copy over a railroad art define...

It's possible. Maybe you copied the art defines from a modular mod and forgot to change one of the references to non-modular? That has happened to me a few times.
 
This is the process I just used.

I unpacked the vanilla Civilization IV art, went into Art\Terrain\Routes and copied the Railroads folder into the exact same directory as of my mod's art directory.

I then copied all 70 Railroad art defines from vanilla Civ IV's CIV4RouteModelInfos.xml.

I deleted each "<ModelFileKey>" line in the copied Railroad art defines.

I then ran a test, and got the same problem.

What have I done wrong here?
 
I think your first guess was accurate, that it was the smaller number of art defines that was causing the problem.

How are the railroad graphics named? Are they named exactly like the Road ones (RoadB04-000.nif, etc.), but are in a different folder? If that's the case, I have an idea which might help.

Instead of copying the art defines from Civ4, copy the art defines from Civ4Col's Road, and then change each art define's RouteType to be ROUTE_RAILROAD or whichever is the Railroad route tag, and change the ModelFile path to be the correct one for railroads.
 
Back
Top Bottom