Quote:
Originally Posted by GerPunisher_
plugins does not load for l4d1
HTML Code:
[SM] Plugin no-rushing.smx failed to load: Error detected in plugin startup (see error logs).
error log :
HTML Code:
02/08/2023 - 18:14:23: [SM] Exception reported: Game event "scavenge_round_finished" does not exist
L 02/08/2023 - 18:14:23: [SM] Blaming: no-rushing.smx
L 02/08/2023 - 18:14:23: [SM] Call stack trace:
L 02/08/2023 - 18:14:23: [SM] [0] HookEvent
L 02/08/2023 - 18:14:23: [SM] [1] Line 114, no-rushing.sp::OnPluginStart
|
i managed to load the plugin on l4d1 by doing these small modification to the source code
- removed this line
HTML Code:
HookEvent("scavenge_round_finished", OnFunctionEnd);
-replaced these lines
HTML Code:
1- else if (StrEqual(gameMode, "versus", false) || StrEqual(gameMode, "teamversus", false) || StrEqual(gameMode, "scavenge", false) || StrEqual(gameMode, "teamscavenge", false))
2- else if (StrEqual(gameMode, "coop", false) || StrEqual(gameMode, "realism", false))
with these lines
HTML Code:
1-else if (StrEqual(gameMode, "versus", false) || StrEqual(gameMode, "teamversus", false))
2-else if (StrEqual(gameMode, "coop", false))
and when i tried to compile i faced this problem :
HTML Code:
error 147: new-style declarations are required
after some google research,i found
this thread
and i replaced all the lines that starts with "public ConVar..." to "public void ConVar..."
and it compiled
and i also modified the data configs by renaming the maps to their correct names from l4d1
sorry for my bad english