Gamemode crash after OnGameModeInit
#1

Hey guys,
Normally I wouldn't ask for help and just solve my issues eventually, but I can't find anything to help with this issue. I have no idea how this started to occur and crashdetect is giving me little information on what is actually happening. Here is what I know:
OnGameModeInit finishes before the crash. No other functions are scripted to run and I cannot think of what else would initialise itself after OnGamemodeInit. OnGameModeInit exits with the following code:
Код:
printf("OnGameModeInit completed in %d seconds.", gettime()-iTime);
   	printf("Streamer max objects: %d", Streamer_GetMaxItems(STREAMER_TYPE_OBJECT));
   	printf("Streamer max pickups: %d", Streamer_GetMaxItems(STREAMER_TYPE_PICKUP));
   	printf("Streamer max checkpoints: %d", Streamer_GetMaxItems(STREAMER_TYPE_CP));
   	printf("Streamer max map icons: %d", Streamer_GetMaxItems(STREAMER_TYPE_MAP_ICON));
	printf("Streamer max text labels: %d", Streamer_GetMaxItems(STREAMER_TYPE_3D_TEXT_LABEL));
	return true;
Which we can see in the error log. After OnGameModeInit exits, something goes terribly wrong and the server crashes. This is the log:

Quote:

...
[15:05:31] OnGameModeInit completed in 0 seconds.
[15:05:31] Streamer max objects: 2147483647
[15:05:31] Streamer max pickups: 2147483647
[15:05:31] Streamer max checkpoints: 2147483647
[15:05:31] Streamer max map icons: 2147483647
[15:05:31] Streamer max text labels: 2147483647
[15:05:31] [debug] Server crashed while executing gm_roleplay.amx
[15:05:31] [debug] AMX backtrace:
[15:05:31] [debug] #0 native SetTimerEx () from samp-server.exe
[15:05:31] [debug] #1 ?? in public Itter_OnGameModeInit ()
[15:05:31] [debug] #2 native CallLocalFunction () from samp-server.exe
[15:05:31] [debug] #3 ?? in public SaveFactionData ()
[15:05:31] [debug] #4 native CallLocalFunction () from samp-server.exe
[15:05:31] [debug] #5 ?? in ?? ()
[15:05:31] [debug] #6 native CallLocalFunction () from samp-server.exe
[15:05:31] [debug] #7 ?? in public OnPlayerCommandText ()
[15:05:31] [debug] Native backtrace:
[15:05:31] [debug] #0 0049b164 in ?? () from samp-server.exe
[15:05:31] [debug] #1 00473919 in ?? () from samp-server.exe
[15:05:31] [debug] #2 004010b6 in ?? () from samp-server.exe
[15:05:31] [debug] #3 677e636a in ?? () from plugins\crashdetect.DLL
[15:05:31] [debug] #4 677e8bc8 in ?? () from plugins\crashdetect.DLL
[15:05:31] [debug] #5 677e0a57 in ?? () from plugins\crashdetect.DLL
[15:05:31] [debug] #6 677e63ba in ?? () from plugins\crashdetect.DLL
[15:05:31] [debug] #7 004746be in ?? () from samp-server.exe
[15:05:31] [debug] #8 004010b6 in ?? () from samp-server.exe
[15:05:31] [debug] #9 677e636a in ?? () from plugins\crashdetect.DLL
[15:05:31] [debug] #10 677e8bc8 in ?? () from plugins\crashdetect.DLL
[15:05:31] [debug] #11 677e0a57 in ?? () from plugins\crashdetect.DLL
[15:05:31] [debug] #12 677e63ba in ?? () from plugins\crashdetect.DLL
[15:05:31] [debug] #13 004746be in ?? () from samp-server.exe
[15:05:31] [debug] #14 004010b6 in ?? () from samp-server.exe
[15:05:31] [debug] #15 677e636a in ?? () from plugins\crashdetect.DLL
[15:05:31] [debug] #16 677e8bc8 in ?? () from plugins\crashdetect.DLL
[15:05:31] [debug] #17 677e0a57 in ?? () from plugins\crashdetect.DLL
[15:05:31] [debug] #18 677e63ba in ?? () from plugins\crashdetect.DLL
[15:05:31] [debug] #19 004746be in ?? () from samp-server.exe
[15:05:31] [debug] #20 004010b6 in ?? () from samp-server.exe
[15:05:31] [debug] #21 677e636a in ?? () from plugins\crashdetect.DLL
[15:05:31] [debug] #22 677e8bc8 in ?? () from plugins\crashdetect.DLL
[15:05:31] [debug] #23 677e0a57 in ?? () from plugins\crashdetect.DLL
[15:05:31] [debug] #24 677e63ba in ?? () from plugins\crashdetect.DLL
[15:05:31] [debug] #25 0046f654 in ?? () from samp-server.exe
[15:05:31] [debug] #26 65646f6d in ?? () from samp-server.exe
[15:05:31] [debug] #27 6d672f73 in ?? () from samp-server.exe
[15:05:31] [debug] #28 6c6f725f in ?? () from samp-server.exe
[15:05:31] [debug] #29 616c7065 in ?? () from samp-server.exe
[15:05:31] [debug] #30 6d612e79 in ?? () from samp-server.exe

I'm not sure why there's so many question marks and to me they aren't very helpful. The script is compiled in debug mode as suggested to fix this issue on other posts yet no gain for me. I have noticed that it mentions Itter_OnGameModeInit which is used by foreach but I cannot find anything in foreach.inc that has code for this function and I cannot find a foreach loop that would be the culprit. SaveFactionData() is currently an empty stock function with a return true and print message in it. Has anyone encountered a similar issue or has ideas of what could be wrong?

Thanks!
Reply
#2

Can you debug it? Make a new file named as pawn.cfg in pawno folder and in the file type "-d3" without double quotes. And then post the logs.
Reply
#3

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
Can you debug it? Make a new file named as pawn.cfg in pawno folder and in the file type "-d3" without double quotes. And then post the logs.
It already is in debug, as I mentioned. The current pawn.cfg has the following config:
Код:
-d0 -O1 -r -d3
And shows debug information when compiled.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)