Wiki Tech Levels

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
User avatar
Zbond-Zbond
---- E L I T E ----
---- E L I T E ----
Posts: 410
Joined: Mon Nov 24, 2008 3:49 am
Location: Healesville, Australia

Wiki Tech Levels

Post by Zbond-Zbond »

In order to assign a tech level to an object, is there always a difference between the TL in the game and the TL in the code or in the wiki?

Here are 4 planets' co-ordinates from galaxies 4 (written in the OXPcode as "3") and 8 (written in the OXPcode as "7")

To assign a gameTL of 1 to an object, do I write "0" or "1" in the OXPcode?

In the examples below, the wikiTL of 8 is the same as the gameTL of 8, whereas the gameTL of 14 is shown as TL13 in the wiki

I am assuming that there is no such thing as a gameTL of "0"

Quzaarar 3 221 (11 126) wikiTL8 .. gameTL8 (Av.Ag) Democracy
Riusbequ 3 218 (11 126) wikiTL5 .. gameTL6 (Av.Ag) MulitGov

Cecees 7 144 (94 96) wikiTL8 .. gameTL8 (P.Ind) Anarchy
Esusale 7 251 (94 96) wikiTL13 .. gameTL14 (R.Ind) Corporate State
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

You write 0, Oolite shows 1 to the player.
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Generally: All lists of numbers in Oolite internally start with 0, not 1. (As it generally is with computers.)

So, always, what the user sees as 1..n, is internally represented as 0..n-1.
User avatar
Zbond-Zbond
---- E L I T E ----
---- E L I T E ----
Posts: 410
Joined: Mon Nov 24, 2008 3:49 am
Location: Healesville, Australia

Post by Zbond-Zbond »

Thanks - that's what I would have expected, as per Wiki entries (elsewhere) and conventional alphanumeric ordering; but was a little :shock: fobnangulated by the TL8's (above)
Post Reply