ich habe die Frage auch im englischsprachigen Forum auch schon gestellt. Hier die Übersetzung:
Gibt es eine Dokumentation des Script-XML-Formats? Ich interessiere mich vor allem für den Bereich <codearray>.
Da ich den internen X2-Editor nicht mag, spiele ich mit dem Gedanken selbst einen Script-Editor zu schreiben, ggf. mit Drag'n Drop der einzelnen Elemente und Darstellung als Nassi-Shneidermann-Diagramm.
Nach einem kurzen Blick (1/2 Std.) über die Datei zeigt eine ziemlich einfache Struktur, wenngleich es aber noch viele Fragen gibt.
Hier ist, was ich bis jetzt herausgefunden habe:
Code: Select all
Befehl: find station: sector =
794 opcode
6 target var index
0x20002 type: source var index
4 source var index
0 type: NULL
0 unused
0 type: NULL
0 unused
0x20003 type: constant
111 Find.Multiple
0 type: NULL
0 unused
4 type: Number
999999 number
4 type: Number
999 number
0 type: NULL
0 unused
Befehl: get max sectors in x direction
801 opcode
0 target var index
Befehl: get max sectors in y direction
802 opcode
1 target var index
Befehl: get sector from universe index: x=?, y=?
800 opcode
4 target var index
0x20002 type: source var index
2 source var index
0x20002 type: source var index
3 source var index
Befehl: write to player log: printf
402 opcode
5 type: string
??? string
0x20002 type: source var index
11 source var index
0x20002 type: source var index
5 source var index
0 type: NULL
0 unused
0 type: NULL
0 unused
0 type: NULL
0 unused
Kommentar:
9 opcode
3 type: instruction
??? instruction as comment
Befehl: if/while/assignment
104 opcode
2 target var index
1 type: assignment
4 type: number
0 value
1 type: end of instruction ???
-1 ???
Befehl: if/while/assignment
104 opcode
0xA0001A09 type: non-assignment ???
3 type: while ???
0x20002 type: source var index
2 source var index
0x20002 type: source var index
0 source var index
15 ???
1 ???
3 ???
-1 ???
1 ???
-2 ???
Grüße,
Mark