A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »When extracting scripts from map...

Author Topic: When extracting scripts from map... (7 messages, Page 1 of 1)
Moderators: Dennis

Kal_El
Joined: Feb 4, 2015


Posted: Jul 15, 2020 12:01 PM    Msg. 1 of 7       
I extracted a script from map to make changes but need to place back into map; but when I use any of the script extractors on this site; it extracts the script in basic text format and not the usual format I am used to seeing. Is there a better program for doing this?

programs I used:

http://hce.halomaps.org/index.cfm?fid=5478

http://hce.halomaps.org/index.cfm?fid=6470

both above programs extract in the same format?
Edited by Kal_El on Jul 15, 2020 at 12:06 PM

also kinda what you see in this post as well:

https://opencarnage.net/index.php?/topic/5442-script-extractor/#comment-75385

Edited by Kal_El on Jul 15, 2020 at 04:00 PM


kirby_422
Joined: Jan 22, 2006

Apparently public enemy number 1?


Posted: Jul 15, 2020 12:52 PM    Msg. 2 of 7       
Scripts are just text, using keywords that the system understands as commands. What issues are you having when you try to use one of the scripts? Remember to save the text file with the extension .hsc


Kal_El
Joined: Feb 4, 2015


Posted: Jul 15, 2020 03:21 PM    Msg. 3 of 7       
here is an example of such a script: I do save both as .hsc file as normal but original script always has the proper formatting but when I go to extract script using any of those programs above it formats the script into one big mess?

https://www.dropbox.com/s/2gvkqwo9s5mzxa3/scripts.rar?dl=0

Edited by Kal_El on Jul 15, 2020 at 03:56 PM

also kinda what you see in this post as well:

also kinda what you see in this post as well:

https://opencarnage.net/index.php?/topic/5442-script-extractor/#comment-75385
Edited by Kal_El on Jul 15, 2020 at 04:01 PM


kirby_422
Joined: Jan 22, 2006

Apparently public enemy number 1?


Posted: Jul 16, 2020 03:42 AM    Msg. 4 of 7       
All scripts having types I assume is part of it directly parsing what it sees (since static and stubs can have types, it would store all of them with types) Not sure why the global variable changed; I'd definitely call that a bug. Other than that, the rest is equivilent. hsc can have strings with quotes or not, true and false are just 1 and 0. While I dislike the unneeded begin's where they aren't needed, I do assume its that the game natrually does actually add them for structures sake.

You keep saying formatting; do you mean indentation? of course it won't keep indentation, thats presentation, the compiled script wouldn't know a thing about that. There are indeed issues, that boolean became bool, and it forcing datatypes, but it does seem quite minor to fix.


Kal_El
Joined: Feb 4, 2015


Posted: Jul 16, 2020 12:28 PM    Msg. 5 of 7       
Quote: --- Original message by: kirby_422
All scripts having types I assume is part of it directly parsing what it sees (since static and stubs can have types, it would store all of them with types) Not sure why the global variable changed; I'd definitely call that a bug. Other than that, the rest is equivilent. hsc can have strings with quotes or not, true and false are just 1 and 0. While I dislike the unneeded begin's where they aren't needed, I do assume its that the game natrually does actually add them for structures sake.

You keep saying formatting; do you mean indentation? of course it won't keep indentation, thats presentation, the compiled script wouldn't know a thing about that. There are indeed issues, that boolean became bool, and it forcing datatypes, but it does seem quite minor to fix.


yes it was the "indentation" that I was questioning. I try to load script back in and it is not accepted by mapfile


MosesofEgypt
Joined: Apr 3, 2013


Posted: Jul 17, 2020 09:16 PM    Msg. 6 of 7       
Just use refinery for extracting scripts. It doesn't screw up anything. It's part of the MEK.


Kal_El
Joined: Feb 4, 2015


Posted: Jul 17, 2020 11:45 PM    Msg. 7 of 7       
Quote: --- Original message by: MosesofEgypt
Just use refinery for extracting scripts. It doesn't screw up anything. It's part of the MEK.


I do use refinery & MEK! So when I extract using refinery; it does extract everyting ok; it's when I try to "edit" the scripts I need a program that can pull the scripts w/o messing them up so that I can place them back into map.
Edited by Kal_El on Jul 17, 2020 at 11:48 PM

 

 
Previous Older Thread    Next newer Thread







Time: Wed January 18, 2023 11:35 PM 94 ms.
A Halo Maps Website