|
Since the clientscripts me and mgi125 released for 667 a few years are a bit ugly/incomplete/sometimes very hard to read and even have some minor bugs in the decompiled code, I am releasing a much better version of them.
- Some scripts were not decompiled fully in the old version. This one is complete
- Few minor bugs in old version fixed that caused some information to be missing about some opcodes
- Control flow: old version still had the occasional GOTO, they are completely gone in this release
- Type analysis: There were only a handful of types in the old version. There are many more now (although most of them are basically just integers, but many nice language features can be added thanks to this). Some analysis has been done to automatically infer proper types of scripts, instructions and local variables. This makes the scripts much easier to read.
- Structs and stack dumps are gone, now properly supports multiple return values
- Math expressions
- No redundant parentheses
- ...
https://mega.nz/#!R7QTFSCK!WGO2mIOgc...arH0v8yAZ2U_68
I've also even created a compiler for them. If you'd like a compiled version of your own/edited script, post it here and I will compile it for you. I don't have a language spec for you to follow though, but there are over 5000 examples that you can use as a reference
The compiler can handle all these example scripts and will be released later at some point, but I'd like to compile some scripts of users here first to properly test it and change a few minor things about the language first before that happens.
(Also don't ask me how to use your compiled script, I will solely compile it)
Instruction list:
https://pastebin.com/JGJJmtkU
Great release! 10/10 will use
Thank you for the instruction list, VERY handy.
Thanks, great release!
do the instructions shift in every high revision release?
Yes, since about rev 693
https://www.rune-server.ee/runescape...crambling.html
So this is before the scrambling
Have you looked at the open source decompiler that was already released?
You can pretty much learn everything there is to learn about CS2 from that.
My (de)compiler is a continuation of an earlier version of that project we originally did for 667
https://github.com/Someone52/CS2-Decompiler/
Converting an AST back to instructions is actually a very simple process (the difficult/annoying part is parsing source code and getting that AST).
Id say the decompiler is much more complex/interesting since you have to deal with control flow etc.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |