this is an ongoing effort to canon the ship layout section in Legacy. continued from "era overhaul".
as far as the ship classification goes, i barely scratched the surface.
Legacy classifies the ships in 4 classes; Scout, Destroyer, Cruiser, Battleship
Star Trek...; Shuttle, Fighter, Transport, Medical, Surveyor/Science, Frigate, Escort, Cruiser, Explorer. 9... that's 9 classes. Cruiser and Explorer classes comes; Light, Medium, Heavy. Cruiser has a new sub-class, Tactical. Frigate and Escort can have the 3 sub-classes.
if i left anything out... let me know. ----------------------------------------------------------
okay, Legacy is categorizing the ship classes according to CP cost. i haven't found a way to manipulate Legacy to categorize the ships by name instead of by CP... yet. is it even possible though?
Legacy filters ships either by "era" for Skirmish/Multiplayer or "date" for Singleplayer.
Legacy uses a layered "sort".
The layered sort is based first on "showclass=" which is the displayed class. It's in a Decending order.
The second layer is for each "showclass" the ships are shown by Acending Commandpoints.
I'm not sure which you are trying to do here...
A: Have a More Expensive Ship shown before a less expensive ship of the same "showclass".
or B: Have the "showclass" sorted in the order you wish.
- I have not idea how to do "A". But to do "B" you must pick showclass names that are arranged in a decending order with in your case "Heavy Explorer" at the bottom and "Shuttle" at the top.
That could be accomplished by using "GUI_CLASS_A"="Heavy Explorer" down to "GUI_CLASS_Z"="Shuttle" for example in the localized strings file.
You might prever to do "GUI_CLASS_A_H" where "A" stands for "Heavy Explorer" is the last class in "H"="TNG" and "GUI_CLASS_Z_H" where Shuttle "Z" is the first class in "H" (TNG ERA). "GUI_CLASS_A_F"= Heavy Explorer(A) PreTNG(F). You end up with it showing the Pre TNG Shuttles, then the TNG Shuttles then the PreTNG Scouts then the TNG Scouts.
Well I think I got that all right. Didn't have much time.
"showclass" is different than the "shipclass". "showclass" is purely used as a end user display, and for sorting purposes.
The "shipclass" is one of the 4, scout, destroyer, cruiser, battleship and each race must have a minimum of 1 of each of those 4 classes for each Era or legacy will crash if the AI is assigned to that Race and it doesn't have one of each to pick.
For the UU class rebuild we haven't gone so far to split the "Scout - Pre TNG" and "Scout - TNG" ships in the list. Most of the time the newer scouts are more expensive than the "Pre-TNG" ones because of their generally higher capabilities.
We use Battlecruiser for a class and a few other class designations as well. Battlecruiser is a bit more of a "Klingon" designation, but there might be some Late TNG Fed ships as well. I've toyed around with removing Battleship from the Fed Lineup and put in Explorer, but Legacy is a Space Battle game not Exploration so it's a hard call to be Canon or to be practical..
1st sorting - i used the "showclass" sorting method (era overhaul thread) to sort the ships according to era and "stock" class.
2nd sorting method - i would like to sort it by ship name rather than how much it costs.
the second sorting is what's bugging me. i'd rather see "refits" in order behind the original vessel instead of the next highest costing ship. for example; keep in mind, i'm modding a stock version. the current ship selection has Excelsior, Proxima, Excelsior Refit listed due to CP cost.
my goal is to get it to read like this; "Proxima", Excelsior, Excelsior Refit, "Proxima". i haven't found a way, other than changing the command points, to get the refits in line. is there another way to get the 2nd sorting to go by ship name instead of command points? ------------------------------------
so basically if i still want to change the way the ships are classed, i need to leave the 4 main classes alone and create sub-classes under those or a new main class. for instance; Auxiliary - Fighter, Transport, Medical Scout - Shuttle, Surveyor/Science Destroyer - Frigate, Escort Cruiser - Light, Medium, Heavy Battleship/Explorer - Light, Medium, Heavy
and the dynamics would read; "GUI_ERA1_A_1" ERA1 = TNG-Late, A = Battleship, 1 = Heavy which displays; (tng-late heavy explorer)
my next question is this, do i need to change all the ships .odf files? i.e.; physics, class, weapons etc.
hope this all makes sense. thank you for your time and effort.
No, ship odf file is enough if you just want sorting done. Only touch the other stuff if you plan mass overhauls (artillery and physics). Dont make your project any more complicated than what it already is. Do one thing at a time.
Baby steps. Dont overload yourself. You will run yourself out and then you will quit like so many other modders have done. Quit when the going gets tough runs rampant in Legacy modding. The saying 'if you cant handle the heat get out of the kitchen' stands very true when it comes to Legacy...
i do have a tendency to put too much on my plate. ironic though... i cook for a living. :)
i've got the coding done. i probably didn't need all the sub-classes in every era, i suppose you can say i'm thorough. nevertheless, with all the ships available, there is still room to expand and maintain order. it should go something like this;
ENT PRE-ENT - FEDERATION auxiliary shuttle fighter medical transport scout surveyor/science destroyer frigate escort cruiser light medium heavy battleship light medium heavy
TOS TOS - PRE-TNG same
TNG TNG same TNG-Late auxiliary shuttle +runabout fighter medical transport scout surveyor/science destroyer frigate escort cruiser light medium heavy +tactical battleship light medium heavy +dominion wars scout destroyer cruiser battleship
TNG-Future +armored fleet scout destroyer cruiser battleship auxiliary same as tng-late scout same destroyer same cruiser same battleship same
though, i need to test this to ensure it flows. i left battleship alone rather than changing it to "explorer". since the game is based on the "throw down" part of Star Trek rather than the exploration. Dominion Wars and Armored Fleet are "war" refits i left those classes alone as well.
i intended this to be a personal mod, but may want to publish later. is it better to ask permission before i start modding with other authors ships or after? because my fleet is stock at the moment and you know... nothing but respect for fellow artist.
all the stamps are posted and the permission slips mailed. then i watched my inbox fill up with "return to sender" notices. :uhm:
the sorting works and it seems the "refit" problem i had with them not lining up corrected itself.
in TOS, the federation class has been classed as "Dreadnought". so that sub-class will be added. don't know whether to put is under destroyer of cruiser?
again, feel free to let me know if i left a ship class out.
other than that, i hope i don't have more problems with getting permission to use other modders files.