Adjusting Ship Order at Shipyard

The place to discuss scripting and game modifications for X³: Reunion.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
User avatar
Bertone
Posts: 868
Joined: Fri, 15. Jun 07, 07:07
x3

Adjusting Ship Order at Shipyard

Post by Bertone » Tue, 9. Oct 07, 13:34

Well, the question is simple: I have some custom ships added at some shipyards.

I'd like the shipyard to show the ships in an accurate order, in example:

M1
M2
M6
M3
M4
M5
TL
TS
TP

I noticed the new ships are added under the standard ones, in example in the Federal Argon Shipyard we have:

Mammoth
Mercury
Express
Colossus
Titan
Nova
Buster
etc.
and THEN
Pizza & Fichi
Tarallucci & Vino
etc.

I don't like this (IMHO) not-so-logical order, and I'll prefer:

Colossus
Titan
Pizza & Fichi
Centaur
Nova
Buster
Tarallucci & Vino
Discoverer
Mammoth
Mercury
Express


Is there a way to do it?




P.S.: "Pizza & Fichi" and "Tarallucci & Vino" are typical italian expressions...

:lol:

Thraxwhirl
Posts: 683
Joined: Fri, 17. Feb 06, 20:54
x3ap

Post by Thraxwhirl » Tue, 9. Oct 07, 19:16

What you're asking for ain't gonna happen.

Partly 'cos I doubt anyone else is really super bothered enough about the order of the list sufficiently to do anything.

Secondly 'cos I suspect the method is hardcoded and can't be altered via scripts.

Thirdly and MOST importantly, the method is very simple. Ships are listed in ORDER. Mammoth is listed as 0 in TShips, Mercury is 1, Express is 2, Colossus 3, and so forth. That is why they appear in the order they do. The only way to alter the order they are listed in Shipyards would be to juggle the order of your Tships file. I cannot over-emphasise how much of a cluster-**** that would levy upon your game though, messing up pretty much every script your machine is running.

In short, learn to live with it.

User avatar
Bertone
Posts: 868
Joined: Fri, 15. Jun 07, 07:07
x3

Post by Bertone » Tue, 9. Oct 07, 19:50

You ENLIGHTENED me!

:o


You're right: the ships appear in the TShips order. I don't think "moving" them would affect scripting, cause scripts are tag-based.

I think it will be an interesting experiment...



If someone sees my house exploding... Something's gone wrong...

:lol:

fud
Posts: 9837
Joined: Wed, 25. Jan 06, 14:26
x3

Post by fud » Tue, 9. Oct 07, 20:23

If you change the order in TShips, you can very well bork the game. The scripts (Egosoft included, and the hard-coded stuff) calls the individual ID and index numbers of the ships. If you mess with the order significantly, you'll have improper ships being called. Not all scripts would be affected, but some would.

Same with add-on scripts.


Not to mention it won't be compatible with anything, as no save game would work. Messing up the index order in TShips is a guaranteed CTD on a save game load.


Personally, I think I'd try to live with it. :)

User avatar
Bertone
Posts: 868
Joined: Fri, 15. Jun 07, 07:07
x3

Post by Bertone » Tue, 9. Oct 07, 20:50

Effectively I can live happy with this "problem", I know...

:roll:



But I don't care about compatibility with mods or gamesaves...

:wink:

Post Reply

Return to “X³: Reunion - Scripts and Modding”