Hi!
I'm making a remake of Elite for the TI series of calculators and so I wanted to make my version as similar to Elite as possible. To do this I had to mimic the generation used by the classic game and to my convenience, I found a version called Text Elite on Ian Bell's website (iancgbell.clara.net). I ported the system creation code to Ti-Basic (the language used by the calculator) and tweaked it a bit to get it running at optimal speed, but I've run into a little problem, most planet stats generate fine for the first planet created (Tibedied) but the tech levels don't for the second planet onwards... I've checked that my code does the exact same as Ian Bell's Text Elite source code but it still isn't the same...
If there is anyone knowledgable in how Elite managed the tech level generation, I'd be very grateful for any advice.
Below is a gif and my generation source code.
Here's a short gif of when I start the game and have the second planet (Qube) selected.
Link: http://i1059.photobucket.com/albums/t425/CascadeRP/1390335916_zpsbe4a2191.gif
As you can see, the tech level is totally wrong. P.S Ignore the name of the planet, it's supposed to be wrong
I'm making a remake of Elite for the TI series of calculators and so I wanted to make my version as similar to Elite as possible. To do this I had to mimic the generation used by the classic game and to my convenience, I found a version called Text Elite on Ian Bell's website (iancgbell.clara.net). I ported the system creation code to Ti-Basic (the language used by the calculator) and tweaked it a bit to get it running at optimal speed, but I've run into a little problem, most planet stats generate fine for the first planet created (Tibedied) but the tech levels don't for the second planet onwards... I've checked that my code does the exact same as Ian Bell's Text Elite source code but it still isn't the same...
If there is anyone knowledgable in how Elite managed the tech level generation, I'd be very grateful for any advice.
Below is a gif and my generation source code.
.The starting generation seeds
23114->A
584->B
46931->C
For(D,0,2).Currently been testing generating 3 planets (0->2)
ClrHome
A and 64->L
B/e^(8)->{X+D}.The X Coord, works
A/e^(8)->{Y+D}.The Y Coord, works
(B/e^(3)) and 7->{G+D}.The Government type, works
(A/e^(8)) and 7->{E+D}.The Economy type, works
If {E+D}<=1
{E+D} or 2->{E+D}
End
{E+D} xor 7+(B/e^(8))->{T+D}.The tech level ,works for the first planet
({G+D}/e^(1))+{T+D}->{T+D}
If ({G+D} and 1)=1
{T+D}+1->{T+D}
End
C/e^(8) and 15->{R+D}.The radius, works
.Creating the name
For(F,0,3)
2*((C/e^(8)) and 31)->{L2+F}
sub(TWEAK)
End
2->Z
If L
3->Z
End
"..LEXEGEZACEBISOUSESARMAINDIREA.ERATENBERALAVETIEDORQUANTEISRION"->Str3
Copy(" ",L1,1)
For(F,0,Z)
{Str3+{L2+F}}->{L1+(2*F)}
{Str3+{L2+F}+1}->{L1+(2*F)+1}
End
0->{L1+(Z+1*2)+1}
End
Return
.Used to tweak the seeds when making the name
Lbl TWEAK
A+B+C->I
B->A
C->B
I->C
Return
23114->A
584->B
46931->C
For(D,0,2).Currently been testing generating 3 planets (0->2)
ClrHome
A and 64->L
B/e^(8)->{X+D}.The X Coord, works
A/e^(8)->{Y+D}.The Y Coord, works
(B/e^(3)) and 7->{G+D}.The Government type, works
(A/e^(8)) and 7->{E+D}.The Economy type, works
If {E+D}<=1
{E+D} or 2->{E+D}
End
{E+D} xor 7+(B/e^(8))->{T+D}.The tech level ,works for the first planet
({G+D}/e^(1))+{T+D}->{T+D}
If ({G+D} and 1)=1
{T+D}+1->{T+D}
End
C/e^(8) and 15->{R+D}.The radius, works
.Creating the name
For(F,0,3)
2*((C/e^(8)) and 31)->{L2+F}
sub(TWEAK)
End
2->Z
If L
3->Z
End
"..LEXEGEZACEBISOUSESARMAINDIREA.ERATENBERALAVETIEDORQUANTEISRION"->Str3
Copy(" ",L1,1)
For(F,0,Z)
{Str3+{L2+F}}->{L1+(2*F)}
{Str3+{L2+F}+1}->{L1+(2*F)+1}
End
0->{L1+(Z+1*2)+1}
End
Return
.Used to tweak the seeds when making the name
Lbl TWEAK
A+B+C->I
B->A
C->B
I->C
Return
Here's a short gif of when I start the game and have the second planet (Qube) selected.

Link: http://i1059.photobucket.com/albums/t425/CascadeRP/1390335916_zpsbe4a2191.gif
As you can see, the tech level is totally wrong. P.S Ignore the name of the planet, it's supposed to be wrong