Modding DA, a question

I have modding fever.

Wow. I have just spent a whole afternoon transfering my homebrew mod to DA. Pretty sweet and everything has gone without a hitch... except one thing...

Previously I liked to create new hulls styles per race with a selection of hulls regardless of original style (eg. using the S15_ prefix for Terran). That way I could have a load of .X files each named per race, and modify the raceconfig to specify the style.

The new ship style method doesn't allow you to change the hulls that are available to the human player, so this new system isn't going to give me the same results. It seems that the new style is a long-winded way of ALMOST doing what I was doing before.

So I tried reverting to my tried-n-tested fix, but it doesn't seem to work. Changing the prefix in the ship style files seems to make no difference to the hulls available in game. Everything else works fine except this part.

Maybe its been overlooked or not enabled yet, since the new method gives the effects to the AI players.

But the xml files give the impression that it should be working, but it isn't.

Any light?
17,591 views 2 replies
Reply #2 Top
The thing you want to look for is ModuleStyle--that's what determines which hulls/jewelry "belong" to a race when the human is playing it.

The value of ModuleStyle is set in the style file in Data\English\ShipStyles, and there is an override in the .customrace files as well. It must be a number and simply tells the game which files to used based on the sN_ prefix where N is the number you set for ModuleStyle.

The Prefix value in the ship style definition is only used to generate and reference the files for ships you design in-game, AFAIK, and doesn't have any relation to the hulls and components available to you, only completed designs and templates. Those designs can also use any parts/hulls, regardless if they are of the same ModuleStyle or not.

So in your case, all you should need to do is set the ModuleStyle in Terran Alliance Style.xml and/or Terran Alliance.customrace to 15, and if the models are in the right place it should work.