Is there a way to somehow extract my plot-scripts from a game into a .hss file if I've lost the ones I already had?
If so, can I please get some instructions on how to do this? I'd greatly appreciate it! Thanks for your time! "One can never improve enough nor should one stop trying to improve."
Is there a way to somehow extract my plot-scripts from a game into a .hss file if I've lost the ones I already had? :???:
If so, can I please get some instructions on how to do this? I'd greatly appreciate it! Thanks for your time! :)
This is possible, depending on which version of hspeak you last used to compile the scripts. If it was a very long time ago, this won't work, but for everything in the past few years, it will be okay.
First use unlump.exe to unlump all the contents of your rpg file into an rpgdir folder.
Lets assume your game is named quest.rpg so now you should have quest.rpgdir
Look inside and find the file named ohrrpgce.hsp
Extract it using unlump.exe the same way you did for the rpg file. Now you should have a folder named ohrrpgce.unlmp
Now look inside the ohrrpgce.unlmp folder, and search for a file named source.lumped. Again, you will use unlump.exe to extract this. Now you will have a folder named source.unlmp
Inside source.unlmp you will find a copy of your original .hss file.
Thanks so so so SO MUCH James!! I really appreciate it!!! :D
EDIT: I don't see ohrrpgce.hsp
Do you see gamename.hsp where gamename is the short name of your game?
Unfortunately that is a bad sign, because it means the game is and old one-- but maybe the scripts were compiled recently that it will still work.
Oh, also, if you can't find the source.lumped file, you might also look for a source.txt file, which was saved by a few old versions. It would contain your script and plotscr.hsd smashed together, and you could fix it up by editing it to remove the plotscr.hsd stuff.
Do you see gamename.hsp where gamename is the short name of your game?
Unfortunately that is a bad sign, because it means the game is and old one-- but maybe the scripts were compiled recently that it will still work.
Yeah. I'm trying to get the scripts from Tri Tear Revolution. So it's pretty old.
Bob the Hamster wrote:
Oh, also, if you can't find the source.lumped file, you might also look for a source.txt file, which was saved by a few old versions. It would contain your script and plotscr.hsd smashed together, and you could fix it up by editing it to remove the plotscr.hsd stuff.
That must be the result of the first unlumping, not the second.
The tritear.hsp file may be a bit hard to spot because Windows Explorer will hide the extension by default if it's mis-recognised as another file type. You can either change the setting to show all file extensions, or find it based on the alphabetical sorting.
Once you unlump that you'll get an folder called tritear.unlmp. If you don't see a file called either source.txt or source.lumped inside that, then your game is too old and doesn't contain the original scripts. If so, then you can email me the game and I'll try to use my HS decompiler to reproduce them.
That must be the result of the first unlumping, not the second.
The tritear.hsp file may be a bit hard to spot because Windows Explorer will hide the extension by default if it's mis-recognised as another file type. You can either change the setting to show all file extensions, or find it based on the alphabetical sorting.
Once you unlump that you'll get an folder called tritear.unlmp. If you don't see a file called either source.txt or source.lumped inside that, then your game is too old and doesn't contain the original scripts. If so, then you can email me the game and I'll try to use my HS decompiler to reproduce them.
I found it based on alphabetical sorting. But when I unlumped it, I got TriTear.rpgdir instead of TriTear.unlmp.
I even unlumped it twice to see if it would do it again! Same result.
E-mail you the game? Sure! Thanks a lot! I hope you'll have better luck, cuz I sure haven't. @_@
"One can never improve enough nor should one stop trying to improve."
Strange, I don't know why you would have that trouble. (Maybe it's something specific to the Windows build of unlump.exe?)
I used the HS Decompiler since that .hsp was indeed too old.
I think Tri Tear Revolution was made just before the addition of the re-name feature.
"One can never improve enough nor should one stop trying to improve."