AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Convert a smx to sp (https://forums.alliedmods.net/showthread.php?t=326799)

Swaggero_o 08-17-2020 12:33

Convert a smx to sp
 
Is there a possibility to convert a smx back to an sp file or a txt file?

fysiks 08-17-2020 16:25

Re: Convert a smx to sp
 
This is called de-compiling a plugin. It cannot give you the exact code that was used to generate it, if it's possible at all. With AMX Mod X plugins (since you posted in the AMX Mod X section), there are tools to de-compile a plugin but you have to know scripting very well and how assembly works. Essentially, you have to rewrite the plugin anyways and the de-compiled code can simply give you clues on how things are done.

I'm not sure if there is an equivalent for SourceMod but generally (99+% of the time) it is much easier to re-write the plugin from scratch.

WildCard65 08-17-2020 22:24

Re: Convert a smx to sp
 
Quote:

Originally Posted by fysiks (Post 2714580)
I'm not sure if there is an equivalent for SourceMod but generally (99+% of the time) it is much easier to re-write the plugin from scratch.

There is a decompiler for SourceMod plugins, it's called Lysis.

https://forums.alliedmods.net/showth...ighlight=Lysis
I don't know where it currently lives ATM, I have been inactive with this community for years... Only recently started lurking.


All times are GMT -4. The time now is 21:00.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.