Staredit Network > Forums > SC2 Assistance > Topic: I can't edit the text in the script editor
I can't edit the text in the script editor
Jan 12 2012, 5:23 am
By: Antiname  

Jan 12 2012, 5:23 am Antiname Post #1



I wanted to change the text in the script editor directly for some reason. (Just trying to get the hang of things (again))
So I press data

Press View Script

And edit the code

Compile the code

No errors show up

I save the file


and exit out

but when I go back the text I just entered and compiled is gone.


So I begin looking for a solution, and there is one in this section...
So I select modules

Click import

Go to data

click import files

select the file I want to import

and click save

but when I go back


The text is still missing.


So my question is:
What did I do wrong?



None.

Jan 12 2012, 4:55 pm Ahli Post #2

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Maps contain a file called "MapScript.galaxy". That's the script you see.

Sadly, we can't edit it directly as you want.

So to use your new code, you should try to replace the "MapScript.galaxy" with your new file containing the complete new code.

I think you can save the map as a SC2components folder. Then everything just isn't inside a single map file. It's inside folders instead.
OR you open the map with an mpq editor like WINmpq and replace the file with that editor.

Also, make a backup copy of your map before tinkering with it. So you won't lose all triggers, if something goes wrong.




Jan 13 2012, 1:24 am Antiname Post #3



So I've imported the script, and although the script in the input window is the script I wrote, the script in the "view script" is different.

Is it supposed to be like that?



None.

Jan 13 2012, 2:11 am Ahli Post #4

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Quote from Antiname
So I've imported the script, and although the script in the input window is the script I wrote, the script in the "view script" is different.

Is it supposed to be like that?
It will always use the script in one specific file which is MapScript.galaxy.
If you didn't replace that file with your new script, your script won't be used.

The problem is that the skript editor doesn't overwrite MapScript.galaxy.

Also, I'm not sure, if updating the mapscript file will update what you can see in the GUI.




Jan 13 2012, 4:15 am Antiname Post #5



From what I've seen the mapscript file wont update what you can see in the GUI.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-6-06. : 5:20 pm]
Ultraviolet -- I was kinda thinking something along these lines
[2024-6-06. : 2:23 pm]
NudeRaider -- I'll play the shadow out of you!
[2024-6-06. : 2:20 pm]
Vrael -- ooooo darker baby darker
[2024-6-06. : 2:20 pm]
Vrael -- yeah make it dark
[2024-6-06. : 2:20 pm]
Vrael -- ohhh yeah cast ur shadow right on my light bits
[2024-6-06. : 7:56 am]
Oh_Man -- It's nvidia shadowplay come on people!! get ur minds out of the gutter and join me in utopia
[2024-6-05. : 7:04 pm]
Ultraviolet -- NudeRaider Am I the only sick fuck who heard shadow play and started thinking what weird sex stuff it might be? :P
[2024-6-05. : 7:01 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol my shadowplay seems to think starcraft is diablo 4 now; i wonder if this is coz i had diablo 4 open the toher day
terrible game
[2024-6-05. : 12:47 pm]
Oh_Man -- lol my shadowplay seems to think starcraft is diablo 4 now; i wonder if this is coz i had diablo 4 open the toher day
Please log in to shout.


Members Online: DiearAnother, Revenant