Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Alexey_Andronov

Avatar / Picture

Registered:
Posts: 78
Reply with quote  #1 
Can someone experienced with scripting and running missions tell me what exactly are the valid values for the fleetNumber?

Mission file docs says:
    ATTRIBUTE: fleetnumber
            VALID: 1-99
    If you use a fleet number that's illegal, crashes and wierd graphical glitches will occur.


However, for a long time, Mission Editor was setting fleetNumber to -1 by default and it seems to work (no crashes or glitches).

So, what are the correct values? If anyone knows it, I could change the values Mission Editor considers valid (or sets by default)
Xavier Wise

Registered:
Posts: 1,362
Reply with quote  #2 
If you want to assign a fleet number, use 1 to 99. Giving a ship a fleet number of -1 means it is not a member of any fleet.
__________________
Fleet Captain Xavier Wise - TSN Sabre
Link to TSN RP Community Website

Want to follow development of the TSN Sandbox? Head here:
https://ko-fi.com/xavierwise
Alexey_Andronov

Avatar / Picture

Registered:
Posts: 78
Reply with quote  #3 
So, valid values are:
* nothing (attribute not present in the element)
* -1
* 1 to 99

And 0 or any other numeric value is invalid?
Xavier Wise

Registered:
Posts: 1,362
Reply with quote  #4 
The value -1 is the same as nothing . It tells the game not to assign a fleet number to the ship
I have never used 0 or any number above 99 as I see no need to. If it says numbers 1-99 are valid, that is what I use.

__________________
Fleet Captain Xavier Wise - TSN Sabre
Link to TSN RP Community Website

Want to follow development of the TSN Sandbox? Head here:
https://ko-fi.com/xavierwise
Mike Substelny

Avatar / Picture

Administrator
Registered:
Posts: 2,990
Reply with quote  #5 
I once did use a number higher than 99 and yes, strange graphical glitches occurred.
__________________
"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight."
- Winston Churchill
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.