25.11.2014, 00:21
I guess that would be possible.
I created the new version of PathFinder, which uses for path calculating more than one separated thread.
It has new functions:
You can see the code there: https://bitbucket.org/Pamdex/pathfin...t=more-threads |
MapAndreasAddress: 0
for(new i = ; i < MAX_BAMBIS; i ++) CreateBambi(i, random(2));
CreateBambi(bambi, zone) { //CODE... MapAndreas_FindZ_For2DCoord(x, y, z); dBambi[bambi][oBambi] = CreateDynamicObject(19315, x, y, z + 0.6, 0.0, 0.0, 0.0, -1, -1, -1, 500.0, 500.0); //CODE... }
[18:59:30] [debug] Server crashed while executing SurviveAll.amx [18:59:30] [debug] AMX backtrace: [18:59:30] [debug] #0 native PathFinder_MapAndreasLock () from PathFinder.DLL [18:59:30] [debug] #1 00048c94 in ?? (0, 1) from SurviveAll.amx [18:59:30] [debug] #2 000599dc in ?? () from SurviveAll.amx [18:59:30] [debug] #3 0000602c in public ScriptInit_OnGameModeInit () from SurviveAll.amx [18:59:30] [debug] #4 00000ed4 in public OnGameModeInit () from SurviveAll.amx [18:59:31] [debug] Native backtrace: [18:59:31] [debug] #0 6cf81f27 in ?? () from plugins\PathFinder.DLL [18:59:31] [debug] #1 6ab262ca in ?? () from plugins\crashdetect.DLL [18:59:31] [debug] #2 6ab28b28 in ?? () from plugins\crashdetect.DLL [18:59:31] [debug] #3 6ab209c7 in ?? () from plugins\crashdetect.DLL [18:59:31] [debug] #4 6ab2631a in ?? () from plugins\crashdetect.DLL [18:59:31] [debug] #5 6aab51b9 in ?? () from plugins\streamer.DLL [18:59:31] [debug] #6 0046f504 in ?? () from samp-server.exe [18:59:31] [debug] #7 65646f6d in ?? () from samp-server.exe [18:59:31] [debug] #8 75532f73 in ?? () [18:59:31] [debug] #9 76697672 in ?? () from C:\Windows\syswow64\SHELL32.dll [18:59:31] [debug] #10 6c6c4165 in ?? () from samp-server.exe [18:59:31] [debug] #11 786d612e in ?? () from samp-server.exe
[19:00:52] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)" [19:00:52] [debug] Stack pointer (STK) is 0x1091758, heap pointer (HEA) is 0x1091904 [19:00:52] [debug] AMX backtrace: [19:00:52] [debug] #0 0009f8b0 in ?? (17024952) from SurviveAll.amx [19:00:52] [debug] #1 000431a0 in ?? (57, 1153419434, -1018283485, 1095992502, 1) from SurviveAll.amx [19:00:52] [debug] #2 00043b98 in ?? () from SurviveAll.amx [19:00:52] [debug] #3 0009de1c in public SecondUpdate () from SurviveAll.amx
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7, ©2005-2015 SA-MP Team [13:36:42] [13:36:42] Server Plugins [13:36:42] -------------- [13:36:42] Loading plugin: crashdetect [13:36:42] CrashDetect v4.15.1 is OK. [13:36:42] Loaded. [13:36:42] Loading plugin: RNPC [13:36:42] RNPC V0.4.1 by Mauzen (03.12.2014) [13:36:42] Loaded. [13:36:42] Loading plugin: streamer [13:36:42] *** Streamer Plugin v2.7.6 by Incognito loaded *** [13:36:42] Loaded. [13:36:42] Loading plugin: PathFinder [13:36:42] ========================================= [13:36:42] PathFinder Plugin 1.0 MT [13:36:42] by Pamdex [13:36:42] [13:36:42] Using MapAndreas Plugin 1.2.1 [13:36:42] Waiting for Init... [13:36:42] ========================================= [13:36:42] Loaded. [13:36:42] Loading plugin: MapAndreas [13:36:42] Loaded. [13:36:42] Loaded 5 plugins.
[14:58:19] [debug] Server crashed due to an unknown error [14:58:19] [debug] Native backtrace: [14:58:19] [debug] #0 65c527d9 in ?? () from plugins\PathFinder.DLL [14:58:19] [debug] #1 65c52f4a in ?? () from plugins\PathFinder.DLL [14:58:19] [debug] #2 65c5459f in ?? () from plugins\PathFinder.DLL [14:58:19] [debug] #3 65c5445c in ?? () from plugins\PathFinder.DLL [14:58:19] [debug] #4 55a1c934 in ?? () from C:\Windows\system32\MSVCR120.dll [14:58:19] [debug] #5 55a1c9fd in ?? () from C:\Windows\system32\MSVCR120.dll [14:58:19] [debug] #6 770d338a in ?? () from C:\Windows\syswow64\kernel32.dll [14:58:19] [debug] #7 77609902 in ?? () from C:\Windows\SysWOW64\ntdll.dll [14:58:19] [debug] #8 776098d5 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[14:46:57] [debug] Server crashed due to an unknown error [14:46:57] [debug] Native backtrace: [14:46:57] [debug] #0 eb29ee8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so [14:46:57] [debug] #1 eb297bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so [14:46:57] [debug] #2 eb298dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so [14:46:57] [debug] #3 eb299226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so [14:46:57] [debug] #4 eb29eadc in ?? () from plugins/crashdetect.so [14:46:57] [debug] #5 eb580410 in ?? () [14:46:57] [debug] #6 eb26b922 in _ZN11CMapAndreas16FindZ_For2DCoordEffi () from plugins/PathFinder.so [14:46:57] [debug] #7 eb272f68 in _ZN4Path14getZDifferenceEif () from plugins/PathFinder.so [14:46:57] [debug] #8 eb273372 in _ZN4Path7findWayEfffffiii () from plugins/PathFinder.so [14:46:57] [debug] #9 eb276ef4 in _ZN6Thread14PathCalculatorEPv () from plugins/PathFinder.so [14:46:57] [debug] #10 eb276ddf in _ZN6Thread17RunPathCalculatorEPv () from plugins/PathFinder.so [14:46:57] [debug] #11 eb55ec39 in ?? () from /lib32/libpthread.so.0 [14:46:57] [debug] #12 eb39ecfe in clone () from /lib32/libc.so.6
PathFinder_FindWay(bambi, bx, by, x, y, 2.0, 5, -1, 5);