Converting amx to pawn
#1

hi. Is it possabole to convert amx to pawn?
Reply
#2

No. Because an amx can be compiled with like 20 includes, and a decompiler would need to have access to all the includes ever released to even try to do a reverse procedure. Even then the possibility is still in question. Not possible at the moment.
Reply
#3

Quote:
Originally Posted by HeLiOn_PrImE
Посмотреть сообщение
No. Because an amx can be compiled with like 20 includes, and a decompiler would need to have access to all the includes ever released to even try to do a reverse procedure. Even then the possibility is still in question. Not possible at the moment.
maybe on the futere?
Reply
#4

An amx file cannot be converted to the original source code, because the compiler makes a lot of optimisations to reduce the amx file size and increase speed. Things like function and variable names are discarded when you compile a pwn file because pawn doesn't need to know what your function is named, it just needs to know where it is and how it should be called.

There used to be an AMX decompiler which was buggy/unhelpful (because of the above limitations) at best and at worst it just didn't work at all.

Side note, if you're asking this because you found/acquired/stole somebody's amx file, please don't be an asshole.

Quote:
Originally Posted by HeLiOn_PrImE
Посмотреть сообщение
No. Because an amx can be compiled with like 20 includes, and a decompiler would need to have access to all the includes ever released to even try to do a reverse procedure. Even then the possibility is still in question. Not possible at the moment.
This is irrelevant. Includes are just that - included in the code that gets compiled.
Reply
#5

Not the near future. Such program needs a huge team to do the web scanning for all the includes.
That would mean both gathering new includes AND constantly checking for include updates.

If you can't find a gamemode pwn here or anywhere on the web, it's most likely because the author didn't want it to be published.
Allocating that much man power for dealing with this little issue, isn't a very smart thing to do.

These forums were created to help people create their own scripts. Let's face it, why copy someone else's dream, when you can have your own?
You can find everything you need right here at your finger tips.
Reply
#6

There is no reliable way to do this...

If you lost the .pwn due to a mistake, then why didn't you make any backups? There are many utilities available such as ****** Drive and Dropbox which provides you with storage to backup your files.

On the other hand, if you've just found the .amx somewhere and you want to decompile it, good luck. People should never use and rely on leaked scripts.
Reply
#7

Oh, this discussion again.
Yes you can decompile pawn. And no, the resulting pwn is in no way useable, so dont waste your time with that but create your own gamemode.
Reply
#8

I also tried it, but sadly its not possible. The de-compiled code just doesn't works
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)