SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 30/01/2018, 05:54 PM   #3521
DRIFT_HUNTER
High-roller
 
Join Date: Oct 2009
Posts: 2,146
Reputation: 157
Default Re: FCNPC - Fully Controllable NPC

Quote:
Originally Posted by ZiGGi View Post
New FCNPC 1.8.2 0.3.DL edition available. Not too ultra, but still beta version. Also with Linux build.
Did you just update memory addresses or everything including valid skins and objects?
__________________
Путин here,
Путин there,
Путин просто everywhere.


Any PM's that include question about any kind of help will be ignored.
Use appropriate boards for that
DRIFT_HUNTER is offline   Reply With Quote
Old 30/01/2018, 09:52 PM   #3522
ZiGGi
High-roller
 
ZiGGi's Avatar
 
Join Date: Sep 2008
Location: Russia
Posts: 1,718
Reputation: 334
Default Re: FCNPC - Fully Controllable NPC

Quote:
Originally Posted by DRIFT_HUNTER View Post
Did you just update memory addresses or everything including valid skins and objects?
Here you can see all what I made: https://github.com/ziggi/FCNPC/commits/0.3.DL
And yes, I forgot about skins and objects.
ZiGGi is offline   Reply With Quote
Old 08/02/2018, 08:39 PM   #3523
Powered
Little Clucker
 
Join Date: Apr 2017
Posts: 32
Reputation: 7
Default Re: FCNPC - Fully Controllable NPC

how do I put my zombie skin that is in the model folder with the 25001 id? I put the id in the code but inside the game appears the cj.

PHP Code:
stock CriarZumbis()
{
    new 
str[30];
    for(new 
0MAX_ZUMBISi++)
    {
        
format(strsizeof(str), "Zombie_%i"i);
        new 
npcid FCNPC_Create(str);
        if(
ZombieFirst == 0ZombieFirst npcid;
        
ZombieEnd npcid;
        
FCNPC_Spawn(npcid25001ZPos[i][0], ZPos[i][1], ZPos[i][2]);

        
FCNPC_SetAngle(npcidZPos[i][3]);
        
FCNPC_SetInterior(npcid0);
        
FCNPC_SetArmour(npcid80);
        
FCNPC_SetWeapon(npcid4);
        
FCNPC_SetAmmo(npcid1);

        
printf("Zombie %d created"i);
    }
    return 
1;

Powered is offline   Reply With Quote
Old 09/02/2018, 11:06 AM   #3524
ZiGGi
High-roller
 
ZiGGi's Avatar
 
Join Date: Sep 2008
Location: Russia
Posts: 1,718
Reputation: 334
Default Re: FCNPC - Fully Controllable NPC

Quote:
Originally Posted by Powered View Post
how do I put my zombie skin that is in the model folder with the 25001 id? I put the id in the code but inside the game appears the cj.

PHP Code:
stock CriarZumbis()
{
    new 
str[30];
    for(new 
0MAX_ZUMBISi++)
    {
        
format(strsizeof(str), "Zombie_%i"i);
        new 
npcid FCNPC_Create(str);
        if(
ZombieFirst == 0ZombieFirst npcid;
        
ZombieEnd npcid;
        
FCNPC_Spawn(npcid25001ZPos[i][0], ZPos[i][1], ZPos[i][2]);

        
FCNPC_SetAngle(npcidZPos[i][3]);
        
FCNPC_SetInterior(npcid0);
        
FCNPC_SetArmour(npcid80);
        
FCNPC_SetWeapon(npcid4);
        
FCNPC_SetAmmo(npcid1);

        
printf("Zombie %d created"i);
    }
    return 
1;

It's not ready yet.
ZiGGi is offline   Reply With Quote
Old 25/02/2018, 11:18 AM   #3525
MrStead
Little Clucker
 
MrStead's Avatar
 
Join Date: Jul 2014
Location: Russia
Posts: 26
Reputation: 0
Default Re: FCNPC - Fully Controllable NPC

Not working with the new version of streamer plugin if using crashdetect.so

PHP Code:
=========================== FCNPC Exception Handler ============================
Signal 11 (Segmentation fault), address is 8e04000 from 8e03ffe

Backtrace
:
  
#0 in plugins/FCNPC.so(_ZN17CExceptionHandler24ExceptionHandlerCallbackEiP9siginfo_tPv+0xdc) [0xf5aac17c]
  #1 in linux-gate.so.1(__kernel_rt_sigreturn+0) [0xf7754cb0]
  #2 in [0x8e03ffe]
  #3 in plugins/streamer.so(+0x38858) [0xf5b23858]
  #4 in ./samp03svr() [0x80966c4]
  #5 in ./samp03svr() [0x80a73ee]
  #6 in ./samp03svr() [0x80ad654]
  #7 in ./samp03svr() [0x80aeecf]
  #8 in ./samp03svr() [0x80aef02]
  #9 in ./samp03svr() [0x80aa13a]

Information:
  
SystemGNU/Linux
  SA
-MP0.3.7 R2
  FCNPC
1.8.1

Functions
:
  
FUNC_CPlayerPool__DeletePlayer0x80d0a90
  FUNC_CPlayer__Kill
0x80cb220
  FUNC_CPlayer__EnterVehicle
0x80cc1c0
  FUNC_CPlayer__ExitVehicle
0x80cc340
  FUNC_CPlayer__SpawnForWorld
0x80ccfc0
  FUNC_GetVehicleModelInfo
0x80d5d30
  FUNC_CConsole__GetIntVariable
0x80a0070
  FUNC_ClientJoin_RPC
0x80b0030

Pointers
:
  
VAR_ServerAuthentication0x81aa8a8
  VAR_NetVersion
0xfd9

Offsets
:
  
OFFSET_RemoteSystemManager0x334
  OFFSET_RemoteSystemSize
0xc69
  OFFSET_RemoteSystem__ConnectMode
0xc62
  OFFSET_RemoteSystem__Unknown
0xc67
=========================== FCNPC Exception Handler ============================ 
__________________
Industrial RPG
VK group
samp-industrial.ru
MrStead is offline   Reply With Quote
Old 25/02/2018, 06:02 PM   #3526
sebaqq6
Little Clucker
 
Join Date: Apr 2011
Posts: 9
Reputation: 3
Default Re: FCNPC - Fully Controllable NPC

Hi! Why FCNPC_PutInVehicle not working for trailers? When PutPlayerInVehicle works for player?
sebaqq6 is offline   Reply With Quote
Old 26/02/2018, 06:39 AM   #3527
ZiGGi
High-roller
 
ZiGGi's Avatar
 
Join Date: Sep 2008
Location: Russia
Posts: 1,718
Reputation: 334
Default Re: FCNPC - Fully Controllable NPC

Quote:
Originally Posted by sebaqq6 View Post
Hi! Why FCNPC_PutInVehicle not working for trailers? When PutPlayerInVehicle works for player?
Because FCNPC_PutInVehicle has internal seatid validation.
ZiGGi is offline   Reply With Quote
Old 26/02/2018, 09:40 PM   #3528
Locky_
High-roller
 
Join Date: Jul 2012
Posts: 1,561
Reputation: 311
Default Re: FCNPC - Fully Controllable NPC

Quote:
Originally Posted by ZiGGi View Post
It's not ready yet.
Is there any stable version of the plugin for 0.3.DL?
Locky_ is offline   Reply With Quote
Old 27/02/2018, 11:54 AM   #3529
ZiGGi
High-roller
 
ZiGGi's Avatar
 
Join Date: Sep 2008
Location: Russia
Posts: 1,718
Reputation: 334
Default Re: FCNPC - Fully Controllable NPC

Quote:
Originally Posted by Locky_ View Post
Is there any stable version of the plugin for 0.3.DL?
This version http://forum.sa-mp.com/showpost.php?...postcount=3517 is stable (I guess), but doesn't support custom skins for NPCs.
ZiGGi is offline   Reply With Quote
Old 01/03/2018, 05:09 PM   #3530
Max_Andolini
Huge Clucker
 
Max_Andolini's Avatar
 
Join Date: Oct 2013
Posts: 319
Reputation: 34
Default Re: FCNPC - Fully Controllable NPC

Quote:
Originally Posted by ZiGGi View Post
This version http://forum.sa-mp.com/showpost.php?...postcount=3517 is stable (I guess), but doesn't support custom skins for NPCs.
Custom skin?
Max_Andolini 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 03:46 PM.


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