Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Script conundrum

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Camdog
Guest






PostPosted: Fri Jul 18, 2003 7:50 am    Post subject: Script conundrum Reply with quote

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

PostPosted: Fri Jul 18, 2003 8:57 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Cube
Dimensional Traveller




Joined: 02 Feb 2003
Posts: 294

PostPosted: Fri Jul 18, 2003 10:20 am    Post subject: Reply with quote

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
View user's profile Send private message
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Fri Jul 18, 2003 11:56 pm    Post subject: nope Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group