Adding new game modes -1 reply

Please wait...

k_merse

Evolution

50 XP

30th September 2007

0 Uploads

637 Posts

0 Threads

#1 10 years ago

Is it possible to add new game modes to Armada II? When I say "game modes", I mean techtrees, but it's much nicer :D It's easy to write a new techtree file, but how can I add it to the game modes It would be great to add an "alliances" game mode for example. The cardassians would get some dominion ships, the Federation Klingons and the Klingons Federation etc. So how can I add the new techtrees/game modes to the game? I hope it's not hardcoded.




CanadianBorg

Resistance is futile, eh?

50 XP

30th July 2008

0 Uploads

503 Posts

0 Threads

#2 10 years ago

Hmmm... Lemme think. First, create your techtree file. (For the purposes of this, let's call it alliancetech.tt). Now, open techlvl.odf in the odf/other folder. At the end of the file, add "techfile6 = "alliancetech.tt". I'm not sure what else you have to do, simply because I have no experience in this matter. That may be all, or it may not. I don't really know.




Terra_Inc

I'm not a bug. I'm a feature.

50 XP

3rd November 2008

4 Uploads

329 Posts

0 Threads

#3 10 years ago

The main problem would be that the techtree only deals with the order in which ships or stations can be built. So if you play Feds and you build your first research station you could build a Vor'cha (for example) but your yard can only build fed ships. So if you wanted your Fed yard to build the Vor'cha you'd have to create another version of the yard ODF. Then you'd exchange the stock yard with the alternative one in your techtree. To create a new game mode you'd have to create alternative ODFs for all of the relevant ships/stations (starbases, construction ships, yards, research stations and so on, depending on the changes you want). I don't know about other possibilities but it probably won't be possible without using alternative ODFs.




k_merse

Evolution

50 XP

30th September 2007

0 Uploads

637 Posts

0 Threads

#4 10 years ago

Yes, I know how it works, it's still a theory. I want to use this feature in my mod but I didn't want to reveal any details ;) But theoretically with this "alliances mode" you have only a Federation odf for the Klingon light yard and make it available only for alliancetech.tt

But here is another example for a new game mode without any odf change: "Nobattleship mode" In this case, you disable the biggest ships in the game (for Fed: Sovy, Galaxy, Nebula), so you can't simply make a fleet of Sovereigns which are enhanced with Corbomite Reflectors and simply kill the Borg. You have to use your cruisers!

And thanks CB, your suggestion was helpful, but it doesn't work yet. I have to edit something else somewhere else, because the game doesn't use the new techtree as an option - yet.




Guest

I didn't make it!

0 XP

 
#5 10 years ago

Its one of the files that deals with the gui and such. You have to add the new tech files to this list so that you can switch to it in istant action mode.




k_merse

Evolution

50 XP

30th September 2007

0 Uploads

637 Posts

0 Threads

#6 10 years ago

I added the new techtree file to techlvl.odf, but it doesn't work yet. I have to add the new game mode somewhere else, because the .tt file doesn't define the name of the game mode (for example). But I doN't think that this is the only problem. Somehow I have to tell the game to use the new .tt file when I choose the new game mode, but I can't find where are matched the game mode names to the techtree files.




StarBlade

www.starbase34.net

50 XP

7th January 2006

0 Uploads

1,705 Posts

0 Threads

#7 10 years ago

If I had to guess, k_merse, it'd be in one of the files in the main directory with extension .h (such as dynamic_localized_strings.h), or possibly one of the .DAT files.

:cool: