View previous topic :: View next topic |
Author |
Message |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Sat Oct 11, 2003 10:41 pm Post subject: Announcing Plotscript Decompiler |
|
|
Hi y'all..
Just to announce that I'm currently writing a decompiler for HamsterSpeak. My program will rewrite scripts from a HS file, or the HSD file which you can copy from working.tmp.
This is for people who accidently lose/delete their hss file, but still have the compiler HS file, or have imported the scripts into their RPG file. I notice quite alot of it around.
I have written almost all of the code, and I'm well into bug testing. Its still not near actually producing code though (because of bugs). Expect it in a week or two.
What will be preserved from your original file:
-names of scripts (though spaces will be striped, and in lower case)
-the effect of the code (the rewritten scripts will always compile to the same thing, but may look a little different)
-personal styles of writting scripts, to some decree (will support several formating options)
What you will lose:
-names of local variables
-names of globals
-constants
-use of constants
-comments
-operators
-use of operators (but can be automatically used, depending on formatting options)
-default args to be passed to scripts
If you wrote anything in another file and included that file, anything in that file (except constants) will be preserved. This includes everything in plotscr.hsd. Unfortunitly, since almost all of the functions in plotscr.hsd are written without spaces between the words and without capitalisation
(eg, 1,wait,1,1
2,waitforall,0
3,waitforhero,1,0
4,waitfornpc,1,0 )
your script will also not have spaces and capitalisation of function names, unless you rewrite plotscr.hsd  _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
Uncommon His legend will never die

Joined: 10 Mar 2003 Posts: 2503
|
Posted: Sun Oct 12, 2003 10:31 am Post subject: |
|
|
!!
HAIL TO MAD CACTI!
I've been needing a program like that ever since Dante crashed! Now I can make Magnus 17: The Director's Cut, and Liam can completely redo ORBituaries! Wee!
I wish you success, sir! |
|
Back to top |
|
 |
Minnek Conjurer

Joined: 03 Jun 2003 Posts: 430 Location: Somewhere
|
Posted: Sun Oct 12, 2003 1:55 pm Post subject: |
|
|
Yes...finally. I was looking into doing this myself...but I didn't have a clue where to start. I'm too darn lazy to try, as well. It's nice to see someone doing it though. Good luck with it.
Oh, by the way, what language are you using? If it's something in my area of knowledge I'd be happy to help. Okay...that's all I've got to say. As I said before, good luck.  _________________ * SDHawk has joined #Minnek
SDHawk> AAAAAAAAAAAAAUUUUUUUUUGH
* SDHawk has left #Minnek (Leaving) |
|
Back to top |
|
 |
Eggie
Joined: 12 May 2003 Posts: 904
|
Posted: Sun Oct 12, 2003 7:27 pm Post subject: |
|
|
Wait a minute, are you saying you can take a script from a game that you have access to? Or possibly no access to? |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Sun Oct 12, 2003 10:55 pm Post subject: |
|
|
Well, like I said, if you open your game with custom, or use unlump, you'll find your hs file in working.tmp as (name of your rpg file).hsd. Of course, you can only unlump games if you have the password, or there is no password on it. The only other way to steal a script might be if for some strange reason the author zipped their hs file along with their game.
I'm writing the decompiler in Qbasic. Actually, I'd thought about writing it for probably over half a year now, but I thought it was an impossible endevour as well at first, and felt too lazy
Thanks for the support! _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
Setu_Firestorm Music Composer

Joined: 26 Mar 2003 Posts: 2566 Location: Holiday. FL
|
|
Back to top |
|
 |
Shadowiii It's been real.

Joined: 14 Feb 2003 Posts: 2460
|
Posted: Mon Oct 13, 2003 2:04 pm Post subject: |
|
|
Mr. B better be reading this. This could very well save Resistance. _________________ But enough talk, have at you! |
|
Back to top |
|
 |
Flamer The last guy on earth...

Joined: 04 Feb 2003 Posts: 725 Location: New Zealand (newly discovered)
|
Posted: Mon Oct 13, 2003 10:39 pm Post subject: |
|
|
looks like it will/has save/d many games.
everyone will be looking forward to this project. _________________ If we were a pack of dogs, IM would be a grand Hound, CN would be a very ficious little pitball, and Giz...well, it doesn't matter breed he is, he'd still be a bitch
(no offense to anyone that was mentioned) |
|
Back to top |
|
 |
Uncommon His legend will never die

Joined: 10 Mar 2003 Posts: 2503
|
Posted: Tue Oct 14, 2003 8:59 am Post subject: |
|
|
You bet we are! |
|
Back to top |
|
 |
ChocoSOLDIER Ghost haunting the board
Joined: 03 Feb 2003 Posts: 279
|
Posted: Tue Oct 14, 2003 11:52 am Post subject: |
|
|
You guys are aware that people will use this program to rip scripts from unpassworded games, right? |
|
Back to top |
|
 |
Uncommon His legend will never die

Joined: 10 Mar 2003 Posts: 2503
|
Posted: Tue Oct 14, 2003 12:00 pm Post subject: |
|
|
Yes, I am aware. That's probably why James hasn't made one, yet. However, there are more benefits than drawbacks, so it's all okay. If people didn't want their scripts stolen, they'd password their games. I do. |
|
Back to top |
|
 |
Shadowiii It's been real.

Joined: 14 Feb 2003 Posts: 2460
|
Posted: Tue Oct 14, 2003 12:12 pm Post subject: |
|
|
Exactly. Most gamers (think Moogle1) actually include the plotscripting with their RPG. I think it is a bit greedy to keep something you developed to yourself...it isn't like graphics which are art. Plotscripting should be shared around. Which is why, yes, I will take code from unpassworded games without asking the author's permission. I don't password ANY of my games, because I mean, the community has given me so much, I might as well give some back, ya know? _________________ But enough talk, have at you! |
|
Back to top |
|
 |
Uncommon His legend will never die

Joined: 10 Mar 2003 Posts: 2503
|
Posted: Tue Oct 14, 2003 12:24 pm Post subject: |
|
|
Well, Magnus 17 had a password hint in it. I might do that for all of my games, or something. All I know is, I'm going to be pretty darn proud of my battle system in WGMD, and might want to show it off a bit. Maybe even get a plotscript library going, like Moog's old one, unless Cube already started one... |
|
Back to top |
|
 |
Minnek Conjurer

Joined: 03 Jun 2003 Posts: 430 Location: Somewhere
|
Posted: Tue Oct 14, 2003 1:28 pm Post subject: |
|
|
Spark...spark spark... that comment of yours just sparked an idea for me, Unc. A plotscripting library aimed towards making a custom battle system ...that's probably what you were talking about. If so, well then... maybe we can collaborate? ...work together? ...any other phrase with the same meaning? ...I'll stop there.  _________________ * SDHawk has joined #Minnek
SDHawk> AAAAAAAAAAAAAUUUUUUUUUGH
* SDHawk has left #Minnek (Leaving) |
|
Back to top |
|
 |
Uncommon His legend will never die

Joined: 10 Mar 2003 Posts: 2503
|
Posted: Tue Oct 14, 2003 1:40 pm Post subject: |
|
|
Actually, I was just going to post my script of the custom battle system on some library when I'm done with it... |
|
Back to top |
|
 |
|