Hard-coded personnel transport graphics?

I'm working on a mod at the moment that changes the graphics for a great number of components. It works for all of them, except those that transport people: Colony, Troop, and Advanced Troop modules. For some reason, these modules lose their functionality when I change their graphics. When I hit the launch button, a slider comes up like normal, but it is disabled and a different color (with my UI interface color, it's normally red, but this one is yellow). I can make a ship with unmodded graphics for these components right afterwards, and it will work like normal.

Does anyone know why this is, or a way to get around it?
9,207 views 7 replies
Reply #1 Top
I tried simply adding to the number of troops once, and got the same result.
Reply #2 Top
Did you change any xml files or just overwrite the model file?

Can you post the section of gc2types.xml which corresponds to your troop module?

Reply #3 Top
Yes, I can. And I changed the xml (I have both the original and old models possible... I thought maybe that could be the cause, but there are multiple Troop modules (Advanced and Regular) so I figured it'd be alright.)

[Module]
[Name]ColonyModuleNew[/Name]
[DisplayName]New Colony Module[/DisplayName]
[Description]Each colony module holds 500 legions of colonists. Put these on your ships and then send those ships to uncolonized worlds that are habitable (class 1 or better).[/Description]
[Cost]35[/Cost]
[Size]25[/Size]
[MaxCapacity]500[/MaxCapacity]
[Model]Unique_Colony[/Model]
[Ability]Colonize[/Ability]
[Thumbnail]Colony0[/Thumbnail]
[Category]Capacity[/Category]
[/Module]

[Module]
[Name]TroopsModuleNew[/Name]
[DisplayName]New Troops Module[/DisplayName]
[Description]Put these on your ships to turn them into invasion transports. Each one holds 500 legions of troops.[/Description]
[Cost]40[/Cost]
[Size]20[/Size]
[MaxCapacity]500[/MaxCapacity]
[Model]Unique_TroopsModule1[/Model]
[Ability]Troops[/Ability]
[Thumbnail]TroopModule[/Thumbnail]
[Category]Capacity[/Category]
[Tech_Requirement]Planetary Invasion[/Tech_Requirement]
[/Module]

[Module]
[Name]AdvTroopsModuleNew[/Name]
[DisplayName]New Adv Troops Module[/DisplayName]
[Description]This the superior troop module. It costs more but holds 1000 legions of troops.[/Description]
[Cost]70[/Cost]
[Size]12[/Size]
[MaxCapacity]1000[/MaxCapacity]
[Model]Unique_TroopsModule2[/Model]
[Ability]Troops[/Ability]
[Thumbnail]TroopModule[/Thumbnail]
[Category]Capacity[/Category]
[Tech_Requirement]Advanced Troop Mods[/Tech_Requirement]
[/Module]

Note: I did change the naming convention for module to match the regular naming convention... this bug occured even in the version where I had the original naming convention (ex. [Module Name="ColonyModuleNew"]). And yes, the brackets are replacements for normal HTML signs so that this post is legible on the forums.
Reply #4 Top
I've made a other troop modules, juts by copy/pasting the existing ones and editting.

Although, I have noticed that the AI won't use them at all, and you can't set a module less than 500 capacity else it will show up in game as 0 (and you can't move the sliders).


Its very tricky to edit the models, of anything. You have used a model name "Unique_TroopsModule". By my understanding, the game will use models with the filename "S0_Unique_TroopsModule", and as far as I can tell this can't be changed. It has to have the "S0_" prefix. Have you done this right?
Reply #5 Top
Yes--just for testing, I have gone back and changed other working models (weapons I have changed) to the models I am using for these, and there is no adverse affect. Thank you for the pointer though, because that is a very valid point.
Reply #6 Top
Interesting update: I was playing the game even with the broken mod on, and I find that the AI uses the new models exclusively (since I kept the old ones in the game, checking the names of the components they used makes this evident)... except for the broken colony, troop, and advanced troop modules. Smart AI there.

I also realized that the yellow color (which is "abnormal" according to my first post) is really just the color of the slider indicating the number of people can be increased (not that it can be, but that means the slider is set to 0 and not 500).
Reply #7 Top
Shameless bump in hope of help...