SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 29/10/2019, 01:25 AM   #1
ImNext
Big Clucker
 
ImNext's Avatar
 
Join Date: Jul 2018
Posts: 56
Reputation: 0
Default FCNPC Crashing server.

Hello, i added FCNPC on my server, but it's crashing my server!

the script i created:
PHP Code:
#include <YSI\y_hooks>
#include <FCNPC>

new 
    
NPC_BOSS,
    
Timer_Movement;

CMD:spawnboss(playerid)
{
    
NPC_BOSS FCNPC_Create("boss");
    
FCNPC_Spawn(NPC_BOSS97, -1096.655, -986.483129.218);
    
FCNPC_SetHealth(NPC_BOSS100);
    
//Timer_Movement = SetTimer("MovementBoss", 8 * 1000, true);

    
SendClientMessageToAll(-1"{FF0000}<AVISO> {FFFFFF}The boss has spawned!");
    return 
1;

Everytime that i use the command "/spawnboss" the server close alone.
ImNext is offline   Reply With Quote
Old 29/10/2019, 03:37 PM   #2
ImNext
Big Clucker
 
ImNext's Avatar
 
Join Date: Jul 2018
Posts: 56
Reputation: 0
Default Re: FCNPC Crashing server.

ImNext is offline   Reply With Quote
Old 29/10/2019, 03:57 PM   #3
WalkZ
Big Clucker
 
WalkZ's Avatar
 
Join Date: Oct 2019
Location: Pakistan
Posts: 100
Reputation: 4
Default Re: FCNPC Crashing server.

Use crashdetect plugin and please post crash logs so we can help
WalkZ is offline   Reply With Quote
Old 29/10/2019, 07:01 PM   #4
ImNext
Big Clucker
 
ImNext's Avatar
 
Join Date: Jul 2018
Posts: 56
Reputation: 0
Default Re: FCNPC Crashing server.

Here.

PHP Code:

----------
Loaded log file"server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.DL-R1, (C)2005-2018 SA-MP Team

[16:02:18filterscripts ""  (string)
[
16:02:18
[
16:02:18Server Plugins
[16:02:18] --------------
[
16:02:18]  Loading plugincrashdetect
[16:02:18]   CrashDetect plugin 4.19.4
[16:02:18]   Loaded.
[
16:02:18]  Loading pluginmysql
[16:02:18]  >> plugin.mysqlR41-4 successfully loaded.
[
16:02:18]   Loaded.
[
16:02:18]  Loading pluginstreamer
[16:02:18

*** 
Streamer Plugin v2.9.3 by Incognito loaded ***

[
16:02:18]   Loaded.
[
16:02:18]  Loading pluginsscanf
[16:02:18

[
16:02:18]  ===============================

[
16:02:18]       sscanf plugin loaded.     

[
16:02:18]          Version:  2.8.2        

[16:02:18]    (c2012 Alex "******" Cole  

[16:02:18]  ===============================

[
16:02:18]   Loaded.
[
16:02:18]  Loading pluginFCNPC-DL
[16:02:18
[
16:02:18] -------------------------------------------------
[
16:02:18]      FCNPC Fully Controllable NPC v2.0.0
[16:02:18]             Windows SA-MP 0.3.DL R1
[16:02:18]            Jan  2 2019 at 23:09:26
[16:02:18
[
16:02:18]   Author:       OrMisicL (2013 2015)
[
16:02:18]   Continued byziggi    (2016 present)
[
16:02:18
[
16:02:18]   See full credits in the README.md file
[16:02:18] -------------------------------------------------
[
16:02:18
[
16:02:18Loading...
[
16:02:18
[
16:02:18] -------------------------------------------------
[
16:02:18]    ColAndreasv1.4.0
[16:02:18
[
16:02:18]    Created By:
[
16:02:18]      [uL]Chris42O
[16:02:18]      [uL]Slice
[16:02:18]      [uL]Pottus
[16:02:18] -------------------------------------------------
[
16:02:18
[
16:02:18Loading...
[
16:02:18ColAndreas v1.4.0 Loaded.
[
16:02:18]   Loaded.
[
16:02:18]  Loaded 5 plugins.

[
16:02:18
[
16:02:18Filterscripts
[16:02:18] ---------------
[
16:02:18]   Loaded 0 filterscripts.

[
16:02:18No collision data found.
[
16:02:18]  
[
16:02:18]  
[
16:02:18]  
[
16:02:18]  ======================================= 
[
16:02:18]  |                                     | 
[
16:02:18]  |        YSI version 4.00.0001        
[
16:02:18]  |        By Alex "******" Cole        
[
16:02:18]  |                                     | 
[
16:02:18]  ======================================= 
[
16:02:18]  
[
16:02:20] <MySQLConex„o com o banco de dados efetuada com sucesso.
[
16:02:20Grande Dia!
[
16:02:20Number of vehicle models0
[16:02:21
*** [
FCNPCInfoA newer version (v1.8.2is available at https://github.com/ziggi/FCNPC/releases ***

[16:02:54] [connectionincoming connection127.0.0.1:52065 id0
[16:02:54] [joinNext has joined the server (0:127.0.0.1)
[
16:03:00] [npc:joinboss has joined the server (49:127.0.0.1)
[
16:03:00] [debugServer crashed while executing main.amx
[16:03:00] [debugAMX backtrace:
[
16:03:00] [debug#0 native FCNPC_Spawn () in FCNPC-DL.DLL
[16:03:00] [debug#1 00036268 in public cmd_spawnboss (0, 1251584) in main.amx
[16:03:00] [debug#2 native CallLocalFunction () in samp-server.exe
[16:03:00] [debug#3 00033ac8 in public OnPlayerCommandText (0, 1251540) in main.amx
[16:03:00] [debugNative backtrace:
[
16:03:00] [debug#0 71dbdf69 in ?? () in plugins\FCNPC-DL.DLL
[16:03:00] [debug#1 71dcd278 in ?? () in plugins\FCNPC-DL.DLL
[16:03:00] [debug#2 71dce051 in ?? () in plugins\FCNPC-DL.DLL
[16:03:00] [debug#3 71dedebe in ?? () in plugins\FCNPC-DL.DLL
[16:03:00] [debug#4 004010b6 in ?? () in samp-server.exe
[16:03:00] [debug#5 74e6dc92 in ?? () in plugins\crashdetect.DLL
[16:03:00] [debug#6 74e75318 in ?? () in plugins\crashdetect.DLL
[16:03:00] [debug#7 74e697cc in ?? () in plugins\crashdetect.DLL
[16:03:00] [debug#8 74e6dcf4 in ?? () in plugins\crashdetect.DLL
[16:03:00] [debug#9 72923374 in ?? () in plugins\streamer.DLL
[16:03:00] [debug#10 00474ade in ?? () in samp-server.exe
[16:03:00] [debug#11 004010b6 in ?? () in samp-server.exe
[16:03:00] [debug#12 74e6dc92 in ?? () in plugins\crashdetect.DLL
[16:03:00] [debug#13 74e75318 in ?? () in plugins\crashdetect.DLL
[16:03:00] [debug#14 74e697cc in ?? () in plugins\crashdetect.DLL
[16:03:00] [debug#15 74e6dcf4 in ?? () in plugins\crashdetect.DLL
[16:03:00] [debug#16 72923374 in ?? () in plugins\streamer.DLL
[16:03:00] [debug#17 0046dff0 in ?? () in samp-server.exe
[16:03:00] [debug#18 00452120 in ?? () in samp-server.exe
[16:03:00] [debug#19 729577f6 in ?? () in plugins\streamer.DLL
[16:03:00] [debug#20 004583cc in ?? () in samp-server.exe
[16:03:00] [debug#21 0045ab8a in ?? () in samp-server.exe
[16:03:00] [debug#22 77cb6707 in ?? () in C:\Windows\SYSTEM32\ntdll.dll
[16:03:00] [debug#23 77cb05ea in ?? () in C:\Windows\SYSTEM32\ntdll.dll
[16:03:00] [debug#24 0049689c in ?? () in samp-server.exe
[16:03:00] [debug#25 00496aac in ?? () in samp-server.exe
[16:03:00] [debug#26 00492cab in ?? () in samp-server.exe
[16:03:00] [debug#27 004a1d61 in ?? () in samp-server.exe
[16:03:00] [debug#28 004a1d71 in ?? () in samp-server.exe
[16:03:00] [debugRegisters:
[
16:03:00] [debugEAX00000000 EBX029e6e68 ECX006ad1d8 EDX71da6712
[16:03:00] [debugESI00000061 EDI006ad1d8 EBP004a1d61 ESP0019fe88
[16:03:00] [debugEIP004a1d71 EFLAGS00010216
[16:03:00] [debugStack:
[
16:03:00] [debugESP+00000000004b1e20 0019ff60 004b1a1c ffffffff
[16:03:00] [debugESP+0000002000000094 00000006 00000002 000023f0
[16:03:00] [debugESP+0000004000000000 00000000 00000000 00000000
[16:03:00] [debugESP+0000006000000000 00000000 00000000 00000000
[16:03:00] [debugESP+0000008000000000 00000000 00000000 00000000
[16:03:00] [debugESP+000000a000000000 00000000 00000000 00000000
[16:03:00] [debugESP+000000c000000000 00000000 c0000005 00000000
[16:03:00] [debugESP+000000e0004c0790 00000000 0019ff80 771c6359
[16:03:00] [debugESP+00000100003f4000 3b0a7a4f 00000000 00000000
[16:03:00] [debugESP+0000012000000000 00000000 00000000 00000000
[16:03:00] [debugESP+0000014000000000 0019ffe4 77cc9f80 4cc6e74b
[16:03:00] [debugESP+0000016077cd8f1c 00000000 00000000 004a3427
[16:03:00] [debugESP+0000018000000001 0000331c 000000dc 00000000
[16:03:00] [debugESP+000001a000000007 00000034 0000017c 00000001
[16:03:00] [debugESP+000001c000000000 00000002 1a26ef4e 00000298
[16:03:00] [debugESP+000001e0f33271ba 0000053c 0000004a 00000588
[16:03:00] [debugESP+0000020000000032 00000900 000002fa 00000000
[16:03:00] [debugESP+0000022000000330 00000000 38505fc8 00000f70
[16:03:00] [debugESP+00000240b1280544 00001334 00000056 0000138c
[16:03:00] [debugESP+0000026000000002 00000001 0000017c 000015dc
[16:03:00] [debugESP+0000028000000001 00000003 00001ef8 00000e8c
[16:03:00] [debugESP+000002a000000002 00000005 00003098 00000098
[16:03:00] [debugESP+000002c000000002 00000007 000031fc 000000f0
[16:03:00] [debugESP+000002e000000002 0000000b 00003314 00000008
[16:03:00] [debugESP+0000030000000001 00000001 00000006 0000008c
[16:03:00] [debugESP+000003200000005e 00000000 00000000 00000000
[16:03:00] [debugESP+0000034000000000 00000000 00000002 00000024
[16:03:00] [debugESP+00000360006e0069 006f0064 00730077 0057005c
[16:03:00] [debugESP+000003801a26ef4e 0000011c 00000044 00000164
[16:03:00] [debugESP+000003a00000004a 0000040c 00000342 00000002
[16:03:00] [debugESP+000003c0000002fa 00000003 32ceeacd 00000a80
[16:03:00] [debugESP+000003e038505fc8 00000df4 0000005e 00000e54
[16:03:00] [debugLoaded modules:
[
16:03:00] [debug00400000 0051f000 samp-server.exe
[16:03:00] [debug77c50000 77dea000 ntdll.dll
[16:03:00] [debug771b0000 77290000 KERNEL32.DLL
[16:03:00] [debug778f0000 77aec000 KERNELBASE.dll
[16:03:00] [debug76620000 76b9a000 SHELL32.dll
[16:03:00] [debug76e80000 76f9f000 ucrtbase.dll
[16:03:00] [debug75aa0000 75adb000 cfgmgr32.dll
[16:03:00] [debug77540000 775c4000 shcore.dll
[16:03:00] [debug770f0000 771af000 msvcrt.dll
[16:03:00] [debug777e0000 7789b000 RPCRT4.dll
[16:03:00] [debug75420000 75440000 SspiCli.dll
[16:03:00] [debug75410000 7541a000 CRYPTBASE.dll
[16:03:00] [debug76fb0000 7700f000 bcryptPrimitives.dll
[16:03:00] [debug76ba0000 76c16000 sechost.dll
[16:03:00] [debug75b80000 75df6000 combase.dll
[16:03:00] [debug76020000 765e5000 windows.storage.dll
[16:03:00] [debug774a0000 7751c000 msvcp_win.dll
[16:03:00] [debug76cb0000 76d29000 advapi32.dll
[16:03:00] [debug77740000 77757000 profapi.dll
[16:03:00] [debug77040000 77083000 powrprof.dll
[16:03:00] [debug77af0000 77afd000 UMPDC.dll
[16:03:00] [debug778a0000 778e4000 shlwapi.dll
[16:03:00] [debug765f0000 76611000 GDI32.dll
[16:03:00] [debug76c20000 76c37000 win32u.dll
[16:03:00] [debug754b0000 7560a000 gdi32full.dll
[16:03:00] [debug75e80000 76017000 USER32.dll
[16:03:00] [debug76fa0000 76faf000 kernel.appcore.dll
[16:03:00] [debug75e00000 75e13000 cryptsp.dll
[16:03:00] [debug74380000 743a4000 WINMM.dll
[16:03:00] [debug715d0000 715d8000 WSOCK32.dll
[16:03:00] [debug76c40000 76c9e000 WS2_32.dll
[16:03:00] [debug73d40000 73d63000 winmmbase.dll
[16:03:00] [debug77010000 77035000 IMM32.DLL
[16:03:00] [debug74e50000 74ea1000 crashdetect.DLL
[16:03:00] [debug72a50000 72ab9000 MSVCP100.dll
[16:03:00] [debug72ac0000 72b7f000 MSVCR100.dll
[16:03:00] [debug72a00000 72a4e000 mysql.DLL
[16:03:00] [debug74e30000 74e4a000 log-core.dll
[16:03:00] [debug74610000 74623000 VCRUNTIME140.dll
[16:03:00] [debug72990000 729ff000 MSVCP140.dll
[16:03:00] [debug726c0000 7278d000 libmariadb.dll
[16:03:00] [debug773a0000 7749b000 CRYPT32.dll
[16:03:00] [debug75610000 7561e000 MSASN1.dll
[16:03:00] [debug736b0000 736ba000 Secur32.dll
[16:03:00] [debug71490000 714a1000 napinsp.dll
[16:03:00] [debug71470000 71486000 pnrpnsp.dll
[16:03:00] [debug728b0000 72902000 mswsock.dll
[16:03:00] [debug72110000 721a1000 DNSAPI.dll
[16:03:00] [debug75620000 75627000 NSI.dll
[16:03:00] [debug75180000 751b2000 IPHLPAPI.DLL
[16:03:00] [debug71460000 7146b000 winrnr.dll
[16:03:00] [debug71440000 71456000 NLAapi.dll
[16:03:00] [debug71430000 71440000 wshbth.dll
[16:03:00] [debug714b0000 714b8000 rasadhlp.dll
[16:03:00] [debug72920000 72987000 streamer.DLL
[16:03:00] [debug10000000 1000f000 sscanf.DLL
[16:03:00] [debug71da0000 72044000 FCNPC-DL.DLL
[16:03:00] [debug714c0000 71511000 fwpuclnt.dll
[16:03:00] [debug75630000 75649000 bcrypt.dll 
ImNext is offline   Reply With Quote
Old 30/10/2019, 06:19 PM   #5
NaS
High-roller
 
NaS's Avatar
 
Join Date: Mar 2008
Location: 🇩🇪
Posts: 1,735
Reputation: 583
Default Re: FCNPC Crashing server.

Move all the FCNPC functions that come after FCNPC_Create to the callback FCNPC_OnCreate.

Make sure the npcid in that callback is actually the NPC you just created by checking if it is equal to NPC_BOSS.
NaS is offline   Reply With Quote
Old 01/11/2019, 04:25 PM   #6
ImNext
Big Clucker
 
ImNext's Avatar
 
Join Date: Jul 2018
Posts: 56
Reputation: 0
Default Re: FCNPC Crashing server.

I tested here but, she is not called ._.

ImNext is offline   Reply With Quote
Old 01/11/2019, 04:34 PM   #7
DJ_Shocker
Huge Clucker
 
Join Date: Jul 2012
Posts: 426
Reputation: 42
Default Re: FCNPC Crashing server.

I'm curious if FCNPC windows version is bugged because I'm experiencing something very similar.
__________________
DJ_Shocker is offline   Reply With Quote
Old 02/11/2019, 01:15 AM   #8
ImNext
Big Clucker
 
ImNext's Avatar
 
Join Date: Jul 2018
Posts: 56
Reputation: 0
Default Re: FCNPC Crashing server.

I don't deny that I thought that either, because I don't see why I'm having trouble.
ImNext is offline   Reply With Quote
Old 02/11/2019, 12:23 PM   #9
CantBeJohn
Big Clucker
 
CantBeJohn's Avatar
 
Join Date: Oct 2016
Posts: 112
Reputation: 15
Default Re: FCNPC Crashing server.

Quote:
Originally Posted by ImNext View Post
I tested here but, she is not called ._.

Don't use FCNPC_Create under OnGameModeInIt. There's currently a bug so it will never call FCNPC_OnCreate, I reported the issue in the github and Freaksken looked into it with some further testing, proving it's actually just bugged currently. (https://github.com/ziggi/FCNPC/issues/200)

Apparently zigg doesn't have the time to fix it either because when I messaged him about the issue originally he said that he didn't even have the time to explore the issue (which is why I asked Freaksken to look into it with further testing to make sure it wasn't just me), so just defer FCNPC_Create with a timer under OnGameModeInIt and you're good.
CantBeJohn is offline   Reply With Quote
Old 02/11/2019, 02:30 PM   #10
ImNext
Big Clucker
 
ImNext's Avatar
 
Join Date: Jul 2018
Posts: 56
Reputation: 0
Default Re: FCNPC Crashing server.

Quote:
Originally Posted by CantBeJohn View Post
Don't use FCNPC_Create under OnGameModeInIt. There's currently a bug so it will never call FCNPC_OnCreate, I reported the issue in the github and Freaksken looked into it with some further testing, proving it's actually just bugged currently. (https://github.com/ziggi/FCNPC/issues/200)

Apparently zigg doesn't have the time to fix it either because when I messaged him about the issue originally he said that he didn't even have the time to explore the issue (which is why I asked Freaksken to look into it with further testing to make sure it wasn't just me), so just defer FCNPC_Create with a timer under OnGameModeInIt and you're good.
That was definitely it, thanks!

I did a test like the friend said there, put the FCNPC_Spawn on OnCreate and... The server simply freezes but the console does not close.

ImNext is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FCNPC - Server crashes. faff Scripting Help 3 10/04/2019 08:04 PM
FCNPC Shutting down server DatGuySleepy Scripting Help 0 05/11/2018 08:37 PM
FCNPC Server crash Amads Scripting Help 5 13/11/2016 12:57 PM
FCNPC.dll doesn't works on my server.. Galletziz Scripting Help 2 01/05/2014 10:43 PM
Need working FCNPC Server DoKAtemar Scripting Help 0 07/10/2013 04:42 PM


All times are GMT. The time now is 04:11 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.