Script not showing up in script editor

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

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

stella
Posts: 1004
Joined: Tue, 17. Feb 04, 18:41
x2

Script not showing up in script editor

Post by stella »

Got a script in the right place (x2\scripts), but it doesn't show up in the script editor.

Anyone got any idea why?

I've written other scripts which are fine.

The only thing I can think of, is that by using a 3rd party editor, I've somehow corrupted it, so that the editor doesn't recognise it.

Can anyone think of any other reasons?
Attack enemies in radius -here
User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 »

you need to restart X2 if it was running when you add the script, but my guess is you've upset it using another editor.
User avatar
JustHere4Coffee
Posts: 1075
Joined: Wed, 6. Nov 02, 20:31
x2

Post by JustHere4Coffee »

I didn't think there WERE any 3rd party script editors?

you can't just use any old XML editor; just changing the text bit doesn't change the script, you have to fix all those numbers in the bottom too and I don't think anyone's decoded all that yet!
holo_doctor
Posts: 860
Joined: Fri, 26. Mar 04, 12:20
x3tc

Post by holo_doctor »

The script editor just does not work that way

in an external editor you see the code array. this is the script not he writting to gernerate the text. The text is just there for external viewing with the stylsheet

Can edit the text all you want but soon as you go back to SE either 1 of 2 things will happen (from experiance)

1: x2 will blatantly refuse to see the script file

2: the changes you made revert to the old setting that where originaly in the script

This has let me to beleave the the script editor works directly on the code array not on the stylesheet text

Than again I could just be totaly wrong in this situation
i7-930 2.8Ghz quad core
6gig DDR3-1600 3 channel Ram
Nvida GTX470
64gig SSD / 1TB Hitachi
User avatar
JustHere4Coffee
Posts: 1075
Joined: Wed, 6. Nov 02, 20:31
x2

Post by JustHere4Coffee »

incidentally, in case anyone's wondering "how much can I change before it won't display in the script editor?"...

I simply renamed a file I'd created from Init.Orbiter to init.Orbiter, and it no longer displayed or auto-executed
XeHonk
Posts: 1087
Joined: Sun, 7. Mar 04, 23:03
x3tc

Post by XeHonk »

did you change all occurencies of the filename inside the xml, too? guess not.. do it now :]
User avatar
JustHere4Coffee
Posts: 1075
Joined: Wed, 6. Nov 02, 20:31
x2

Post by JustHere4Coffee »

I was just tidying how it looked in my directory, why would/should I think of editing the file too? (I already fixed it anyway, was illustrating a point)
XeHonk
Posts: 1087
Joined: Sun, 7. Mar 04, 23:03
x3tc

Post by XeHonk »

cuz the name of a script is stored inside the file, too =)
User avatar
JustHere4Coffee
Posts: 1075
Joined: Wed, 6. Nov 02, 20:31
x2

Post by JustHere4Coffee »

Yes, I know... but...

*sighs, gives up explaining that it was an explanation of game silliness, not a query/problem*
Thome
Posts: 13
Joined: Sat, 20. Mar 04, 14:36
x3

Post by Thome »

Have you tried viewing the script in IE ans seeing if the name there matches the name you clicked on if not rename it so it does

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