information about coderarray/scripts
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
-
- Posts: 1269
- Joined: Sat, 11. Sep 04, 16:43
-
- Posts: 196
- Joined: Fri, 13. Feb 04, 16:56
I played a little bit around with value 5 and it looks like only the first two bits are relevant.
if bit 1 is zero the script will load, but sector names will be something like "CLASS<some numbers here>"
if bit 1 is one the script won't load
if bit 2 is one and bit 1 is zero the script will load and sectornames are displayed the rightway
if bit 1 is zero the script will load, but sector names will be something like "CLASS<some numbers here>"
if bit 1 is one the script won't load
if bit 2 is one and bit 1 is zero the script will load and sectornames are displayed the rightway
-
- Posts: 1269
- Joined: Sat, 11. Sep 04, 16:43
-
- Posts: 196
- Joined: Fri, 13. Feb 04, 16:56
-
- Posts: 196
- Joined: Fri, 13. Feb 04, 16:56
ok, ticaki solved the value 5 issue
0x01 => script contains objectreferences => saving not possible
0x02 => script contains sectorreferences => convert data while loading or saving
looks like allmost all mysterys of the x2scripts have been solved
0x00 => nothing, 'normal' scriptsticaki wrote:Eintrag 5: Flags
Wert:
0x00 = nix
0x01 = Script enthält Objectreferenze -> speichern nicht möglich
0x02 = Script enthält Sektorreferenze -> umwandeln und speichern / laden und umwandeln
Gruß ticaki
P.S. ich finde tüffteln macht mehr spaß.
0x01 => script contains objectreferences => saving not possible
0x02 => script contains sectorreferences => convert data while loading or saving
looks like allmost all mysterys of the x2scripts have been solved

-
- Posts: 3823
- Joined: Fri, 12. Aug 05, 20:46
Nice 
Anyway a correct script should never contain direct references to sectors, ships or stations, so we don't really have to bother with the Entry#5.

Anyway a correct script should never contain direct references to sectors, ships or stations, so we don't really have to bother with the Entry#5.
X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System
Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station
Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station
-
- Posts: 2131
- Joined: Mon, 27. Dec 04, 11:49
Free Bump just for Nuclear Eclipse... now would someone drop a link in the resources thread to this so I don't have to go hunting for it for them again?
Get some Space Music:
https://samuraipenguinstudios.bandcamp.com/
https://samuraipenguinstudios.bandcamp.com/
-
- Posts: 1129
- Joined: Thu, 2. Sep 04, 01:54
OK, I had most of this figured out from a bit of studying I did earlier today. I have to do a project for one of my software engineering courses, and so I figured I'd go ahead and get this done since it will kill two birds with one stone. I'm gonna go ahead and write it in Java so that I don't spend all my coding time worrying about file IO or implementing the GUI components, so that means people will need the JRE to use the program, but that shouldnt be too big of an obstacle.
If I have any immediate questions about this, I'll post in here, see if I can get some help from you guys.
If I have any immediate questions about this, I'll post in here, see if I can get some help from you guys.
-
- Posts: 2981
- Joined: Mon, 29. Dec 03, 03:29
-
- Posts: 501
- Joined: Thu, 27. Nov 03, 21:54
Wow, an external script editor would be nice.
I opened a XML using a simple Worpad text editor.
I was able to write scripts externally, but I had to put in all the </t> #&360 odd ball routing format commands in by hand. So it is painfully possible to script externally.
You would think a program could be written to do this 'conversion text'. But I am a n00b.
I opened a XML using a simple Worpad text editor.
I was able to write scripts externally, but I had to put in all the </t> #&360 odd ball routing format commands in by hand. So it is painfully possible to script externally.
You would think a program could be written to do this 'conversion text'. But I am a n00b.

-
- Posts: 3823
- Joined: Fri, 12. Aug 05, 20:46
I was able to write scripts externally, but I had to put in all the </t> #&360 odd ball routing format commands in by hand. So it is painfully possible to script externally.

@nuclear_eclipse : Happy to see someone beginning to deal with an editor. I quite busy these days and i've no time to code it myself atm.
X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System
Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station
Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station