peace-maker/lysis-java

Can't recompile plugins

kasuganosoras opened this issue · 1 comments

Hi, I use this tool decompile a plugin and try to recompile it but failed.
I didn't change any thing in the plugin.
Errors:

SourcePawn Compiler 1.7.1
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2014 AlliedModders LLC

/groups/sourcemod/compiler-1.7/include/core.inc(296) : warning 209: function "__ext_core_SetNTVOptional" should return a value
/groups/sourcemod/compiler-1.7/include/halflife.inc(337) : warning 209: function "PrintToChatAll" should return a value
/groups/sourcemod/upload_tmp/textifwQ98.sp(8) : error 021: symbol already defined: "NULL_VECTOR"
/groups/sourcemod/upload_tmp/textifwQ98.sp(9) : error 021: symbol already defined: "NULL_STRING"
/groups/sourcemod/upload_tmp/textifwQ98.sp(17) : error 021: symbol already defined: "MaxClients"
/groups/sourcemod/upload_tmp/textifwQ98.sp(52) : warning 239: 'void' is an illegal tag; use void as a type
/groups/sourcemod/upload_tmp/textifwQ98.sp(52) : error 021: symbol already defined: "__ext_core_SetNTVOptional"
/groups/sourcemod/upload_tmp/textifwQ98.sp(175) : warning 239: 'void' is an illegal tag; use void as a type
/groups/sourcemod/upload_tmp/textifwQ98.sp(175) : warning 213: tag mismatch
/groups/sourcemod/upload_tmp/textifwQ98.sp(52) : error 180: function return type differs from prototype. expected 'int', but got 'void'
/groups/sourcemod/upload_tmp/textifwQ98.sp(178) : warning 239: 'void' is an illegal tag; use void as a type
/groups/sourcemod/upload_tmp/textifwQ98.sp(178) : error 181: function argument named 'format' differs from prototype
/groups/sourcemod/upload_tmp/textifwQ98.sp(178) : error 021: symbol already defined: "PrintToChatAll"
/groups/sourcemod/upload_tmp/textifwQ98.sp(192) : warning 239: 'void' is an illegal tag; use void as a type
/groups/sourcemod/upload_tmp/textifwQ98.sp(192) : warning 213: tag mismatch
/groups/sourcemod/upload_tmp/textifwQ98.sp(178) : error 180: function return type differs from prototype. expected 'int', but got 'void'
/groups/sourcemod/upload_tmp/textifwQ98.sp(195) : warning 239: 'void' is an illegal tag; use void as a type
/groups/sourcemod/upload_tmp/textifwQ98.sp(223) : warning 239: 'void' is an illegal tag; use void as a type
/groups/sourcemod/upload_tmp/textifwQ98.sp(226) : warning 239: 'void' is an illegal tag; use void as a type
/groups/sourcemod/upload_tmp/textifwQ98.sp(237) : warning 239: 'void' is an illegal tag; use void as a type
/groups/sourcemod/upload_tmp/textifwQ98.sp(242) : warning 203: symbol is never used: "var1"
/groups/sourcemod/upload_tmp/textifwQ98.sp(255) : warning 203: symbol is never used: "var1"
/groups/sourcemod/upload_tmp/textifwQ98.sp(268) : warning 203: symbol is never used: "var1"
/groups/sourcemod/upload_tmp/textifwQ98.sp(281) : warning 203: symbol is never used: "var1"
/groups/sourcemod/upload_tmp/textifwQ98.sp(428) : warning 213: tag mismatch
/groups/sourcemod/upload_tmp/textifwQ98.sp(428) : warning 213: tag mismatch
/groups/sourcemod/upload_tmp/textifwQ98.sp(428) : warning 213: tag mismatch
/groups/sourcemod/upload_tmp/textifwQ98.sp(428) : warning 213: tag mismatch
/groups/sourcemod/upload_tmp/textifwQ98.sp(428) : warning 213: tag mismatch
/groups/sourcemod/upload_tmp/textifwQ98.sp(428) : warning 213: tag mismatch
/groups/sourcemod/upload_tmp/textifwQ98.sp(428) : warning 213: tag mismatch
/groups/sourcemod/upload_tmp/textifwQ98.sp(428) : warning 213: tag mismatch
/groups/sourcemod/upload_tmp/textifwQ98.sp(432) : warning 213: tag mismatch
/groups/sourcemod/upload_tmp/textifwQ98.sp(432) : warning 213: tag mismatch
/groups/sourcemod/upload_tmp/textifwQ98.sp(434) : warning 213: tag mismatch
/groups/sourcemod/upload_tmp/textifwQ98.sp(434) : warning 213: tag mismatch
/groups/sourcemod/upload_tmp/textifwQ98.sp(427) : warning 203: symbol is never used: "var1"

8 Errors.

The plugin is here: https://storage.l4d2cn.net/plugins/l4d2_health_return.smx
Can you help me? Thanks.

The decompiled output isn't meant to be recompiled right away. The tool tries to print all the information there is, which is more than you type yourself when writing a plugin. You need to fix the code now that you see the intended logic.