Re: Lysis: An experimental .smx decompiler
Quote:
Code:
Unhandled Exception: System.Exception: bad file Is Lysis just getting stuck on some unnecessary header changes? Edit: Looks like the same issue over here. Time to ping psychonic. |
Re: Lysis: An experimental .smx decompiler
2 Attachment(s)
Quote:
xbox_throttlespoof 123 ? Quote:
Another change, which is also present in the kac thing you linked to is the removal of the null-terminator after the last section name. .dbg.strings\x00 would be .dbg.strings\x01 letting lysis skip too far and reading .dbg.strings€.. Changing both back to 00 fixed it. You might be able to work around that, by touching the ReadString function and let it stop at any ascii control character instead of only 0. Code:
if (bytes[count] == 0) Code:
if (bytes[count] < 32) |
Re: Lysis: An experimental .smx decompiler
Quote:
Peace-Maker, thank you very much. |
Re: Lysis: An experimental .smx decompiler
1 Attachment(s)
can somebody please decompile this for me, it is a knockback plugin ive used for my zriot server but when i went to go look for the thread again it was gone and all the configuration has to be changed in the .sp file then compiled.
|
Re: Lysis: An experimental .smx decompiler
You asked once about this btw: http://forums.alliedmods.net/showthread.php?p=1742986
it doesn't decompile too well: PHP Code:
http://forums.alliedmods.net/showthread.php?t=60180 https://forums.alliedmods.net/showthread.php?t=156646 |
Re: Lysis: An experimental .smx decompiler
You'll need to create that weaponKB array yourself again, but the plugin itself is straight forward.
PHP Code:
|
Re: Lysis: An experimental .smx decompiler
how did you get it to decompile so well?
|
Re: Lysis: An experimental .smx decompiler
PHP Code:
/groups/sourcemod/compiler-1.4/include/core.inc(171) : warning 209: function "__ext_core_SetNTVOptional" should return a value /groups/sourcemod/compiler-1.4/include/vector.inc(160) : warning 209: function "ScaleVector" should return a value /groups/sourcemod/compiler-1.4/include/vector.inc(188) : warning 209: function "MakeVectorFromPoints" should return a value /home/groups/sourcemod/upload_tmp/phpDlQwwV.sp(1) : warning 213: tag mismatch /home/groups/sourcemod/upload_tmp/phpDlQwwV.sp(2) : error 021: symbol already defined: "NULL_VECTOR" /home/groups/sourcemod/upload_tmp/phpDlQwwV.sp(3) : error 021: symbol already defined: "NULL_STRING" /home/groups/sourcemod/upload_tmp/phpDlQwwV.sp(4) : warning 213: tag mismatch /home/groups/sourcemod/upload_tmp/phpDlQwwV.sp(5) : error 021: symbol already defined: "MaxClients" /home/groups/sourcemod/upload_tmp/phpDlQwwV.sp(117) : error 052: multi-dimensional arrays must be fully initialized /home/groups/sourcemod/upload_tmp/phpDlQwwV.sp(119) : error 021: symbol already defined: "__ext_core_SetNTVOptional" /home/groups/sourcemod/upload_tmp/phpDlQwwV.sp(129) : error 021: symbol already defined: "ScaleVector" /home/groups/sourcemod/upload_tmp/phpDlQwwV.sp(130) : error 033: array must be indexed (variable "-unknown-") /home/groups/sourcemod/upload_tmp/phpDlQwwV.sp(131) : error 028: invalid subscript (not an array or too many subscripts): "var1" /home/groups/sourcemod/upload_tmp/phpDlQwwV.sp(131) : warning 215: expression has no effect /home/groups/sourcemod/upload_tmp/phpDlQwwV.sp(131) : error 001: expected token: ";", but found "]" /home/groups/sourcemod/upload_tmp/phpDlQwwV.sp(131) : error 029: invalid expression, assumed zero /home/groups/sourcemod/upload_tmp/phpDlQwwV.sp(131) : fatal error 127: too many error messages on one line |
Re: Lysis: An experimental .smx decompiler
You can't just compile the decompiled plugins. You'll have to clean it up or better just rewrite it, as it's that simple. The only interesting code is in the player_hurt event handler.
Quote:
|
Re: Lysis: An experimental .smx decompiler
Quote:
|
All times are GMT -4. The time now is 11:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.