[TOOLS] PySMX: Python SourcePawn Plug-in Reader and Abstract Machine
I've written a little Python module which ports a tiny fraction of the decompiler packaged in the sourcemod source. I wrote it to extract the `myinfo` struct from compiled plug-ins for a plug-in auto-updater. Maybe you can find it useful as well.
You can find it at https://github.com/theY4Kman/pysmx. To use it: Code:
import smx UPDATE (7/15/2012): PySMX now includes a very basic abstract machine, and can execute the test plug-in provided with it. The new features can be found in the racecondition branch. :fox: |
Re: [TOOLS] Python SourcePawn Plug-in Reader
wait, what does it do... exactly?
|
Re: [TOOLS] Python SourcePawn Plug-in Reader
It opens compiled SourcePawn plug-ins, reads in all the public variables and extracts `myinfo`, which includes the name, author, description, version, and URL of the plug-in. That's the extent of its functionality now.
I hope to continue porting dvander's decompiler so one can disassemble and decompile plug-ins in Python. Then I'll include it in Viper's standard library. And one day I hope to use it to write a SourcePawn virtual machine in Python, allowing the execution of plug-ins without a server, which will finally make unit testing plug-ins feasible. |
Re: [TOOLS] Python SourcePawn Plug-in Reader
Quote:
|
Re: [TOOLS] Python SourcePawn Plug-in Reader
Yes, I do!
|
Re: [TOOLS] Python SourcePawn Plug-in Reader
Quote:
|
Re: [TOOLS] Python SourcePawn Plug-in Reader
For the sake of it, i'll link to a sourcepawn-only version.
https://forums.alliedmods.net/showth...01#post1635201 |
Re: [TOOLS] Python SourcePawn Plug-in Reader
Quote:
|
Re: [TOOLS] Python SourcePawn Plug-in Reader
Quote:
|
Re: [TOOLS] Python SourcePawn Plug-in Reader
Quote:
And ouch, his code hurt to read ;D Of course, I just want to showoff my lovely Python struct implementation: http://y4kstudios.com/post/making-ct...res-beautiful/ |
All times are GMT -4. The time now is 16:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.