Page 1 of 1

Wiki Tech Levels

Posted: Fri Jan 08, 2010 7:23 pm
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

Posted: Sat Jan 09, 2010 2:40 am
by Kaks
You write 0, Oolite shows 1 to the player.

Posted: Sat Jan 09, 2010 1:12 pm
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.

Posted: Sun Jan 10, 2010 9:44 am
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)