Taldrenites > Starfleet Command Mods

Adding shuttles to custom races

(1/2) > >>

Gulli:
Hi all, I've been doing some modding lately and it was going pretty well. I've added the Dominion and the Cardassians and expanded the Ferengi. But when I give them shuttles something strange happens: all Ferengi, Cardassian and Dominion ships will use the Federation shuttle, even in fleet pick. I've given the pirates the Ferengi shuttle and they use it, but the Ferengi ships won't. When I make a fleet pick scenario with me piloting shuttles they work just fine so there's nothing wrong with their stats or models but somehow Cardassian, Ferengi and Dominion ships will only use the Federation shuttle.

I know there are tons of mods out there that have Cardassians using CARDASSIAN shuttles proving that custom shuttles for custom races are possible, so what did I overlook?

Any help would be appreciated

-E:
Converted shuttles (i.e. wild weasels, drone, suicide, etc) are hard-coded to use the original shuttle for that race.  To get new shuttles to show up in those instances, you have to replace the original race's shuttles' actual models (naming the new shuttle model the same as the original).

If your problem concerns (straight) admin shuttles, perhaps a typo somewhere for each race you're having problems with?

Gulli:
Thank you. Maybe I should have clarified that I'm modding SFC3 so there are only standard shuttles, I've gotten the Cardassian shuttle to work now (still don't know how) but still no joy with the Ferengi and Dominion. Again, they do show up when I force the as ships on the map in fleet pick and I've gotten the Pirates to use the Ferengi shuttle.

BTW: I noticed the same problem occurs with weapons platforms: the Cardassians will use their own but the Dominion and Ferengi will use those of the Federation. Aside from shuttles and weapons platforms everything works though, all other bases, planets and ships work and are of the right race.

Gulli:
I've done some more testing and it seems shuttles are somewhat hardcoded: races that are not the Klingons, Romulans, Pirates, Rakellians, Borg or Cardassians will always use whatever object is called "Federation Shuttle" in the defaultloadout file and if there isn't an object called "Federation Shuttle" then the Federation and your custom races will have no shuttles. Shuttle names are hardcoded: the Federation won't work with anything else than "Federation Shuttle", the Rakellians need "Rakellian Shuttle", the Cardassians need "Cardassian Shuttle" and so on... I guess the same thing holds true for weapons platforms.

I think it's really lame they hardcoded something like this and it probably means the Dominion and Ferengi are stuck with Federation shuttles. I could swap one of those races with the Rakellians, but, not both and it may screw up the singleplayer campaign for all I know.

That's the conclusion I've arrived at, I hope someone will show me wrong...

JanB:
After working many hours with a hex editor and a disassembler I've cracked the hardcoding and now every race, from Federation to Neutral now has its own shuttle, they'll look for the following objects in the defaultloadout file:

Federation: Federation Shuttle
Klingon: Klingon Shuttle
Romulan: Romulan Shuttle
Borg: Borg Shuttle
Species 8472: Species 8472 Shuttle
Cardassian: Cardassian Shuttle
Ferengi: Ferengi Shuttle
Rakellian: Rakellian Shuttle
Pirate: Pirate Shuttle
Neutral: Neutral Shuttle

You can change these names by opening the attached SFC3exe with a hex editor and searching for the right string. For example say you have a mod with the Dominion instead of Species 8472: you open SFC3exe with a hex editor, search for the string "Species 8472 Shuttle" (without the parentheses) and when you find it you replace it with "Dominion Shuttle....", where the dots (make sure they are represented as 00) are used as padding to make sure everything in the exe file stays in the right place.

I've attached the new SFC3exe, as a bonus it also sets the default game points limit in skirmish from 65000 to 999999.

Have fun!

P.S. Always make back ups before messing with the game and make sure to credit me (JanB) if you use thise modified exe in your mod.

Navigation

[0] Message Index

[#] Next page

Go to full version