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

Announcing Plotscript Decompiler
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Castle Paradox Forum Index -> The Arcade
View previous topic :: View next topic  
Author Message
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Sat Oct 11, 2003 10:41 pm    Post subject: Announcing Plotscript Decompiler Reply with quote

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 Raspberry!
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Uncommon
His legend will never die




Joined: 10 Mar 2003
Posts: 2503

PostPosted: Sun Oct 12, 2003 10:31 am    Post subject: Reply with quote

!!

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Minnek
Conjurer




Joined: 03 Jun 2003
Posts: 430
Location: Somewhere

PostPosted: Sun Oct 12, 2003 1:55 pm    Post subject: Reply with quote

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. Ha ha ha!
_________________
* SDHawk has joined #Minnek
SDHawk> AAAAAAAAAAAAAUUUUUUUUUGH
* SDHawk has left #Minnek (Leaving)
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Eggie




Joined: 12 May 2003
Posts: 904

PostPosted: Sun Oct 12, 2003 7:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Sun Oct 12, 2003 10:55 pm    Post subject: Reply with quote

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 Raspberry!

Thanks for the support!
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Setu_Firestorm
Music Composer




Joined: 26 Mar 2003
Posts: 2566
Location: Holiday. FL

PostPosted: Mon Oct 13, 2003 7:45 am    Post subject: Reply with quote

Dude, you are my hero!

If only Sir Phoenix had this at hand when he accidentally killed the NK3 scripting..!
_________________


Facebook: http://www.facebook.com/georgerpowell
Newgrounds: http://setu-firestorm.newgrounds.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Shadowiii
It's been real.




Joined: 14 Feb 2003
Posts: 2460

PostPosted: Mon Oct 13, 2003 2:04 pm    Post subject: Reply with quote

Mr. B better be reading this. This could very well save Resistance.
_________________
But enough talk, have at you!
Back to top
View user's profile Send private message Send e-mail
Flamer
The last guy on earth...




Joined: 04 Feb 2003
Posts: 725
Location: New Zealand (newly discovered)

PostPosted: Mon Oct 13, 2003 10:39 pm    Post subject: Reply with quote

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 Raspberry!
(no offense to anyone that was mentioned)
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Uncommon
His legend will never die




Joined: 10 Mar 2003
Posts: 2503

PostPosted: Tue Oct 14, 2003 8:59 am    Post subject: Reply with quote

You bet we are!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
ChocoSOLDIER
Ghost haunting the board




Joined: 03 Feb 2003
Posts: 279

PostPosted: Tue Oct 14, 2003 11:52 am    Post subject: Reply with quote

You guys are aware that people will use this program to rip scripts from unpassworded games, right?
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Uncommon
His legend will never die




Joined: 10 Mar 2003
Posts: 2503

PostPosted: Tue Oct 14, 2003 12:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Shadowiii
It's been real.




Joined: 14 Feb 2003
Posts: 2460

PostPosted: Tue Oct 14, 2003 12:12 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Uncommon
His legend will never die




Joined: 10 Mar 2003
Posts: 2503

PostPosted: Tue Oct 14, 2003 12:24 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Minnek
Conjurer




Joined: 03 Jun 2003
Posts: 430
Location: Somewhere

PostPosted: Tue Oct 14, 2003 1:28 pm    Post subject: Reply with quote

Spark...spark spark... that comment of yours just sparked an idea for me, Unc. A plotscripting library aimed towards making a custom battle system Big grin ...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. Oookay...
_________________
* SDHawk has joined #Minnek
SDHawk> AAAAAAAAAAAAAUUUUUUUUUGH
* SDHawk has left #Minnek (Leaving)
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Uncommon
His legend will never die




Joined: 10 Mar 2003
Posts: 2503

PostPosted: Tue Oct 14, 2003 1:40 pm    Post subject: Reply with quote

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

 
Jump to:  
You cannot post new topics in this forum
You cannot 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