Presumable the devs didn't think anyone would ever need to get the details of a non-existant item, and, it they needed to, they could just access the hardcoded information or the TSHIPS file!
I have a slightly updated script to 'get all ships', but it's for X3TC, so I'm not sure if that would be any use to you...
You can always ask a question, but I can't guarantee I'll have he answer!
I think the 'extra' ship definitions allow you to select multiple types in one go, ie, 'Freighter' will select TS and some TP ships...
If you're going to add custom wares, try to use one of the internal slots (SS_WARE_NEW_xx), it's a lot less work, but you'll be lucky to find one these days!
Failing that, I'd use a custom ware through the Package Manager, it saves you having to specify the EMP scrips are needed, (as you'll also have to link to them and make sure any alterations to the EMP scripts don't break your own script, which I should think unlikely, but you never know).
The SCS3.02 script of mine use the Package Manager to create a new ware-type, as the original ware-slot I'd used was 'stolen' by someone else (even though I'd requested (and been granted) it through the Community Index List).
I'm not sure how the models are stored (or collision detection calculated), but presumably the model itself has some size information with it?
I've seen a mod that recreates the city from Stargate Atlantis, I would think that's quite a large model, but not sure how that would compare to DS9...
The volume of the largest stations is (from what I've seen) 25,000, not sure if Ashley's mod creates bigger ones, but 60,000 should be more than enough. If you're using XTM, the Terran TL (who's name I think is the Asgard), has 130,000 cargo capacity...
Increasing the cargo capacity would require an alteration to the TSHIPS file, but you could try installing a few thousand Cargobay Extentions to see if you can 'over-expand' the ship. X3TC does clip the cargobay at the indicated max. size, but I seem to remember X3R might not...
All the ships are wares of maintype 7, you can get the number of ships from the 'get number of subtypes for waretype' command, then use the 'get ware of maintype 7 with subtype x' command in a loop to get all the ships to create, like this:
$Ships = array alloc: size=0
$Class = array alloc: size=0
$count = get number of subtypes of maintype 7
while $count
dec $count =
$type = get ware from maintype 7 and subtype $count
$shp = create ship: type=$type owner=Friendly Race addto=null x=0 y=0 z=0
$max = $ship -> get max. ware transport class
append $ship to array $Ships
append $max to array $Class
$ship -> destruct: show no explosion=[TRUE]
end
That won't strip out the invalid ship types, but it's the basic 'core' of the routiine. It will produce 2 arrays, one of the ship names (as null-object pointers), one of the max cargo class for that ship, and, incidentally, should you need to create the ship again, the subtype is:
$count - $index of the array (you have to preserve $count though, as it's decreased in the loop).
You can use the above code to create your lists, but remember to check the array to see what ships you need to remove.
Most of those conflicts are caused by the way X3 handles mods, basically, when someone replaces an existing item in a .cat/.dat file, the file with the higher number overwrites the previous ones. I guess Cycrow's PM has the sence to ignore what is technically not an error, or maybe Exscriptor is just being thorough.
I'm not sure what format the return value from the get flight time command is, the MSCI handbook may tell you.
Most of the scripters (myself included) have moved on to TC, but most will also still support their old scripts. I'm currently working on V3.1 of the salvage scripts, (much improved) for TC, but once that is finished, I will try to incorporate some of the improvements into the X3R version...
There is very little difference between scripting for X3R and TC, there are a few more commands in TC, and some have been removed that were in X3R, most scripts will port across relatively 'intact', but some changes may be required if you address information directly (like ship or ware types)...