DeAMX v0.3Lost your gamemode source code and don't want to rewrite all of it? Want to take a look at how other gamemodes implement those interesting features? Now you can!
New release0.3 is out now. Main new feature is propagation of argument types of functions: if DeAMX found out that one of the arguments of a function is a float, and another function passes one of its local variables to it, it will mark that local variable as a float also. The calling function may also pass one of its own arguments, so that we in turn know more about other functions calling this function.
Also, return types of functions are recognized now.
Features- Takes any .amx file that was generated by the Pawn compiler and turns it back into a .pwn file
- Recognizes functions, if, if/else, for, while, and switch/case constructs, and ternary operators.
- Uses public function names if available.
- Recognizes type of most local and global variables. Finds array dimensions.
- Contains signatures for all SA-MP native functions and callbacks.
- Finds out the types of arguments and return values of script defined functions.
- Recognizes what arguments of script-defined functions are used for (e.g. player id, object id) and gives them sensible names.
Notes- This is an early release. It may not correctly decompile all scripts.
- Known issue:
prototypes of script-defined functions are not applied to calls of those functions before the function definition. This means that e.g. a constant float argument will be interpreted as an int.
UsageDeAMX is a Lua script: you need
Lua to run it. For detailed usage instructions and the licence, see readme.txt in the .zip.
>> Download v0.3 here! <<(Download link updated as Filefront will be going down soon)
DisclaimerThe author is in no way responsible for what you do with this decompiler. You are not allowed to decompile someone else's script and re-release it as your own script, unless explicitely approved by the script's author.