information about coderarray/scripts

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

User avatar
RedEclipse
Posts: 1269
Joined: Sat, 11. Sep 04, 16:43
x4

Post by RedEclipse »

Okay I agree. Look to the edit I made, because I made it while you were still replying.
laprican
Posts: 196
Joined: Fri, 13. Feb 04, 16:56
x2

Post by laprican »

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
User avatar
RedEclipse
Posts: 1269
Joined: Sat, 11. Sep 04, 16:43
x4

Post by RedEclipse »

Universe debug mode maybe ? To see computer's var name and not programer's ? What are the names of the ships and wares ?
laprican
Posts: 196
Joined: Fri, 13. Feb 04, 16:56
x2

Post by laprican »

nope...
2 is only there if there is a sectorname inside the script.
laprican
Posts: 196
Joined: Fri, 13. Feb 04, 16:56
x2

Post by laprican »

ok, ticaki solved the value 5 issue
ticaki wrote:Eintrag 5: Flags
Wert:
0x00 = nix :D
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ß.
0x00 => nothing, 'normal' scripts
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 :D
User avatar
Serial Kicked
Posts: 3823
Joined: Fri, 12. Aug 05, 20:46
x3tc

Post by Serial Kicked »

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.
X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System

Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station
AdmiralTigerclaw
Posts: 2131
Joined: Mon, 27. Dec 04, 11:49
x4

Post by AdmiralTigerclaw »

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?
User avatar
nuclear_eclipse
Posts: 1129
Joined: Thu, 2. Sep 04, 01:54
x3tc

Post by nuclear_eclipse »

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.
User avatar
Burianek
Posts: 2981
Joined: Mon, 29. Dec 03, 03:29
x3tc

Post by Burianek »

AdmiralTigerclaw wrote: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?
Ok.
"Nature's first green is gold" . . . stay golden.
Slocket
Posts: 501
Joined: Thu, 27. Nov 03, 21:54
x2

Post by Slocket »

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. :P
User avatar
Serial Kicked
Posts: 3823
Joined: Fri, 12. Aug 05, 20:46
x3tc

Post by Serial Kicked »

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.
:? It's not possible to write it in the notepad, as you need to also type the <codearray>. Modifying the text in the <scriptarray> won't change anything in your script.


@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

Return to “X²: The Threat - Scripts and Modding”