SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 17/05/2018, 02:34 PM   #3571
Freaksken
Gangsta
 
Freaksken's Avatar
 
Join Date: Mar 2009
Location: Belgium
Posts: 606
Reputation: 239
Default Re: FCNPC - Fully Controllable NPC

Quote:
Originally Posted by Verc View Post
Is there any way I can get it? I don't have a compiler for C or C++
I'm not on a PC with Visual Studio at the moment. So send ZiGGi a PM.
Keep in mind that v2.0 is a work in progress, so it can still have bugs.

Quote:
Originally Posted by MandaleMecha View Post
How can I install it?
Installation instructions for the latest FCNCP release version are on the wiki.
__________________
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.


[Include] FCNPC A.I. - [Tutorial] Speedometer - [WIP] Single-player-like co-op mission - [Other] List of all my work
Freaksken is offline   Reply With Quote
Old 18/05/2018, 05:48 AM   #3572
ZiGGi
High-roller
 
ZiGGi's Avatar
 
Join Date: Sep 2008
Location: Russia
Posts: 1,730
Reputation: 350
Default Re: FCNPC - Fully Controllable NPC

Quote:
Originally Posted by Freaksken View Post
I'm not on a PC with Visual Studio at the moment. So send ZiGGi a PM.
Keep in mind that v2.0 is a work in progress, so it can still have bugs.
So, anybody who wants to test 2.0 build can download it from this link: https://mega.nz/#!RNgUkIpD!cqlvo-8Tj...ImKcu34FxszwXo

Last edited by ZiGGi; 20/05/2018 at 02:36 PM.
ZiGGi is offline   Reply With Quote
Old 18/05/2018, 12:36 PM   #3573
Freaksken
Gangsta
 
Freaksken's Avatar
 
Join Date: Mar 2009
Location: Belgium
Posts: 606
Reputation: 239
Default Re: FCNPC - Fully Controllable NPC

Quote:
Originally Posted by ZiGGi View Post
So, anybody who wants to test 2.0 build can download it from this link: https://mega.nz/#!FRBSnAgY!a09nMfBjX...ihyA899S-Vz9QM
You should probably add the include file as well.
__________________
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.


[Include] FCNPC A.I. - [Tutorial] Speedometer - [WIP] Single-player-like co-op mission - [Other] List of all my work
Freaksken is offline   Reply With Quote
Old 18/05/2018, 02:28 PM   #3574
ZiGGi
High-roller
 
ZiGGi's Avatar
 
Join Date: Sep 2008
Location: Russia
Posts: 1,730
Reputation: 350
Default Re: FCNPC - Fully Controllable NPC

Quote:
Originally Posted by Freaksken View Post
You should probably add the include file as well.
Sure, link updated.
ZiGGi is offline   Reply With Quote
Old 19/05/2018, 05:59 AM   #3575
Verc
Big Clucker
 
Verc's Avatar
 
Join Date: Apr 2018
Location: 🇯🇵
Posts: 180
Reputation: 29
Default Re: FCNPC - Fully Controllable NPC

Code:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[12:57:09] filterscripts = ""  (string)
[12:57:09] 
[12:57:09] Server Plugins
[12:57:09] --------------
[12:57:09]  Loading plugin: mysql.dll
[12:57:09]  >> plugin.mysql: R39-6 successfully loaded.
[12:57:09]   Loaded.
[12:57:09]  Loading plugin: ColAndreas.dll
[12:57:09] *********************
[12:57:09] ** Created By:     **
[12:57:09] ** [uL]Chris42O    **
[12:57:09] ** [uL]Slice       **
[12:57:09] ** [uL]Pottus      **
[12:57:09] *********************
[12:57:17] Loaded collision data.
[12:57:17] *********************
[12:57:17]   ColAndreas Loaded
[12:57:17]    v1.4.0
[12:57:17] *********************
[12:57:17]   Loaded.
[12:57:17]  Loading plugin: FCNPC.dll
[12:57:17]   Failed.
[12:57:17]  Loading plugin: streamer.dll
[12:57:18] 

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

[12:57:18]   Loaded.
[12:57:18]  Loading plugin: sscanf.dll
[12:57:18] 

[12:57:18]  ===============================

[12:57:18]       sscanf plugin loaded.     

[12:57:18]          Version:  2.8.2        

[12:57:18]    (c) 2012 Alex "Y_Less" Cole  

[12:57:18]  ===============================

[12:57:18]   Loaded.
[12:57:18]  Loading plugin: pawnraknet.dll
[12:57:18] Pawn.RakNet plugin v1.2.0 by urShadow loaded
[12:57:18]   Loaded.
[12:57:18]  Loading plugin: nativechecker.dll
[12:57:18]   Loaded.
[12:57:18]  Loaded 6 plugins.

[12:57:18] 
[12:57:18] Filterscripts
[12:57:18] ---------------
[12:57:18]   Loaded 0 filterscripts.

[12:57:18]    Error: Function not registered: 'FCNPC_GetPluginVersion'
[12:57:18]    Error: Function not registered: 'FCNPC_SetWeapon'
[12:57:18]    Error: Function not registered: 'FCNPC_SetAmmo'
[12:57:18]    Error: Function not registered: 'FCNPC_IsDead'
[12:57:18]    Error: Function not registered: 'FCNPC_Respawn'
[12:57:18]    Error: Function not registered: 'FCNPC_IsSpawned'
[12:57:18]    Error: Function not registered: 'FCNPC_SetPosition'
[12:57:18]    Error: Function not registered: 'FCNPC_SetAngle'
[12:57:18]    Error: Function not registered: 'FCNPC_Stop'
[12:57:18]    Error: Function not registered: 'FCNPC_StopAttack'
[12:57:18]    Error: Function not registered: 'FCNPC_GetPosition'
[12:57:18]    Error: Function not registered: 'FCNPC_MeleeAttack'
[12:57:18]    Error: Function not registered: 'FCNPC_GoTo'
[12:57:18]    Error: Function not registered: 'FCNPC_Destroy'
[12:57:18]    Error: Function not registered: 'FCNPC_Create'
[12:57:18]    Error: Function not registered: 'FCNPC_Spawn'
[12:57:18] Script[gamemodes/dayzmysql.amx]: Run time error 19: "File or function is not found"
[12:57:18] Number of vehicle models: 0
[12:57:23] --- Server Shutting Down.
It always failed to load.. (2.0)
No pop-up errors,no anything.
Verc is offline   Reply With Quote
Old 20/05/2018, 08:49 AM   #3576
jop9888
Big Clucker
 
Join Date: Mar 2009
Posts: 149
Reputation: 4
Default Re: FCNPC - Fully Controllable NPC

Did you re-compile your script with the 2.0 include?
jop9888 is offline   Reply With Quote
Old 20/05/2018, 09:22 AM   #3577
Verc
Big Clucker
 
Verc's Avatar
 
Join Date: Apr 2018
Location: 🇯🇵
Posts: 180
Reputation: 29
Default Re: FCNPC - Fully Controllable NPC

Yes of course.
Verc is offline   Reply With Quote
Old 20/05/2018, 02:36 PM   #3578
ZiGGi
High-roller
 
ZiGGi's Avatar
 
Join Date: Sep 2008
Location: Russia
Posts: 1,730
Reputation: 350
Default Re: FCNPC - Fully Controllable NPC

Quote:
Originally Posted by Verc View Post
Code:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[12:57:09] filterscripts = ""  (string)
[12:57:09] 
[12:57:09] Server Plugins
[12:57:09] --------------
[12:57:09]  Loading plugin: mysql.dll
[12:57:09]  >> plugin.mysql: R39-6 successfully loaded.
[12:57:09]   Loaded.
[12:57:09]  Loading plugin: ColAndreas.dll
[12:57:09] *********************
[12:57:09] ** Created By:     **
[12:57:09] ** [uL]Chris42O    **
[12:57:09] ** [uL]Slice       **
[12:57:09] ** [uL]Pottus      **
[12:57:09] *********************
[12:57:17] Loaded collision data.
[12:57:17] *********************
[12:57:17]   ColAndreas Loaded
[12:57:17]    v1.4.0
[12:57:17] *********************
[12:57:17]   Loaded.
[12:57:17]  Loading plugin: FCNPC.dll
[12:57:17]   Failed.
[12:57:17]  Loading plugin: streamer.dll
[12:57:18] 

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

[12:57:18]   Loaded.
[12:57:18]  Loading plugin: sscanf.dll
[12:57:18] 

[12:57:18]  ===============================

[12:57:18]       sscanf plugin loaded.     

[12:57:18]          Version:  2.8.2        

[12:57:18]    (c) 2012 Alex "Y_Less" Cole  

[12:57:18]  ===============================

[12:57:18]   Loaded.
[12:57:18]  Loading plugin: pawnraknet.dll
[12:57:18] Pawn.RakNet plugin v1.2.0 by urShadow loaded
[12:57:18]   Loaded.
[12:57:18]  Loading plugin: nativechecker.dll
[12:57:18]   Loaded.
[12:57:18]  Loaded 6 plugins.

[12:57:18] 
[12:57:18] Filterscripts
[12:57:18] ---------------
[12:57:18]   Loaded 0 filterscripts.

[12:57:18]    Error: Function not registered: 'FCNPC_GetPluginVersion'
[12:57:18]    Error: Function not registered: 'FCNPC_SetWeapon'
[12:57:18]    Error: Function not registered: 'FCNPC_SetAmmo'
[12:57:18]    Error: Function not registered: 'FCNPC_IsDead'
[12:57:18]    Error: Function not registered: 'FCNPC_Respawn'
[12:57:18]    Error: Function not registered: 'FCNPC_IsSpawned'
[12:57:18]    Error: Function not registered: 'FCNPC_SetPosition'
[12:57:18]    Error: Function not registered: 'FCNPC_SetAngle'
[12:57:18]    Error: Function not registered: 'FCNPC_Stop'
[12:57:18]    Error: Function not registered: 'FCNPC_StopAttack'
[12:57:18]    Error: Function not registered: 'FCNPC_GetPosition'
[12:57:18]    Error: Function not registered: 'FCNPC_MeleeAttack'
[12:57:18]    Error: Function not registered: 'FCNPC_GoTo'
[12:57:18]    Error: Function not registered: 'FCNPC_Destroy'
[12:57:18]    Error: Function not registered: 'FCNPC_Create'
[12:57:18]    Error: Function not registered: 'FCNPC_Spawn'
[12:57:18] Script[gamemodes/dayzmysql.amx]: Run time error 19: "File or function is not found"
[12:57:18] Number of vehicle models: 0
[12:57:23] --- Server Shutting Down.
It always failed to load.. (2.0)
No pop-up errors,no anything.
Try this: https://mega.nz/#!RNgUkIpD!cqlvo-8Tj...ImKcu34FxszwXo
vcredist 2015 is required.
ZiGGi is offline   Reply With Quote
Old 20/05/2018, 09:55 PM   #3579
Verc
Big Clucker
 
Verc's Avatar
 
Join Date: Apr 2018
Location: 🇯🇵
Posts: 180
Reputation: 29
Default Re: FCNPC - Fully Controllable NPC

What is wrong with my code? It crashed the server.
PHP Code:
hook FCNPC_OnReachDest(npcid)
{
    foreach(new 
OjekPassengers)
    {
        if(
OjekPassenger[i] == npcid)
        {
            
FCNPC_Destroy(OjekPassenger[i]);
            
Iter_SafeRemove(OjekPassengersii);
            
OjekPassenger[i] = -1;
            
Log(log_callbacksDEBUG"Ojek onreachdest %d"i);
            return -
2;
        }
    }
    return 
1;

I also have created an issue https://github.com/ziggi/FCNPC/issues/154
Verc is offline   Reply With Quote
Old 21/05/2018, 08:27 AM   #3580
jop9888
Big Clucker
 
Join Date: Mar 2009
Posts: 149
Reputation: 4
Default Re: FCNPC - Fully Controllable NPC

Quote:
Originally Posted by Verc View Post
What is wrong with my code? It crashed the server.
PHP Code:
hook FCNPC_OnReachDest(npcid)
{
    foreach(new 
OjekPassengers)
    {
        if(
OjekPassenger[i] == npcid)
        {
            
FCNPC_Destroy(OjekPassenger[i]);
            
Iter_SafeRemove(OjekPassengersii);
            
OjekPassenger[i] = -1;
            
Log(log_callbacksDEBUG"Ojek onreachdest %d"i);
            return -
2;
        }
    }
    return 
1;

I also have created an issue https://github.com/ziggi/FCNPC/issues/154
Did this code work in the earlier version of the plugin? If not, then i'd need some more code to tell what is wrong
jop9888 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
[Include] Controllable NPC Lorenc_ Includes 101 02/06/2014 06:08 AM
[Plugin] FCNPC - Fully Controllable NPC sa-mp 0.3x R2 [LCK]Chris Plugin Development 82 16/05/2014 02:16 PM
Controllable HighPitchedVoice Scripting Help 5 25/05/2012 09:38 PM
[?]New SZR fully controllable NOS system Qeux Help Archive 3 17/03/2011 02:24 AM
Controllable NPC Andreq Русский/Russian 5 25/10/2010 07:57 AM


All times are GMT. The time now is 05:56 PM.


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