View previous topic :: View next topic |
Author |
Message |
Camdog Guest
|
Posted: Fri Jul 18, 2003 7:50 am Post subject: Script conundrum |
|
|
So, because I'm a total idiot, I accidentally gave my plotscript file the extension .hsi instead of .hss. I wrote, tested, and got working a bunch of scripts, and then decided to export the names of my constants via custom.exe. This wrote over my plotscripts, so now I have a compiled .hs file of 13 working scripts, but no source file. I want to include more scripts in the game without trashing my working ones, but importing scripts from a file automatically gets rid of previously imported scripts (even if the imported ones are of a different number than the already imported ones).
So, I was wondering if there's any way to combine two .hs files into one, or to import scripts from two or more files with custom. Any ideas? Thanks!
-Cameron |
|
Back to top |
|
 |
Iblis Ghost Cat

Joined: 26 May 2003 Posts: 1233 Location: Your brain
|
Posted: Fri Jul 18, 2003 8:57 am Post subject: |
|
|
I dunno if this will work, but try opening the .hss file with notepad. if the scripts are still coherent then you can just copy/paste them into an edit program or notepad or whatever you use to script. _________________ Locked
OHR Piano |
|
Back to top |
|
 |
Cube Dimensional Traveller

Joined: 02 Feb 2003 Posts: 294
|
Posted: Fri Jul 18, 2003 10:20 am Post subject: |
|
|
You could try cut and pasting it into another .hs file. You'd need to reassign all the script numbers though (Look though the file and find the ones that aren't autonumbered. The first number underneath the name is the script number (I think)). Once you do that, try to import it I guess.
But don't take my word for it. I don't kow what that large mess of stuff at the end of the file is. Not to meantion this might mess up your game in some way.
It probably would be best to e-mail James and ask if it's possible. The best solution may be for you to just re-write the scripts all over again. It's only about 13 scripts, so it's not like it's TOO much works (Compared to 100+ scripts). |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Fri Jul 18, 2003 11:56 pm Post subject: nope |
|
|
If your script file gets deleted, you cannot restore your scripts from the compiled .hs file. It is simply not possible.
Opening the .hs file in notepad or hssed will just give you mostly binary garbage.
sorry :( |
|
Back to top |
|
 |
|