[FilterScript] NPC Drivers - Citizen & Fully working Taxi script - (FS-Version)

https://gyazo.com/a788042c4ccc9c297263abd70dd6b594

tried to change all plugins/include version, nothing work..
Reply

Quote:
Originally Posted by Inuro
View Post
https://gyazo.com/a788042c4ccc9c297263abd70dd6b594

tried to change all plugins/include version, nothing work..
U are using nativechecker am i right?

Because your plugin section in server.cfg probably looks like this:

Code:
nativechecker FCNPC MapAndreas ColAndreas
When you put nativechecker before other plugins it will report errors since the plugins are not loaded yet and nativecheckers does its job it reports errors about the missing functions (hence the plugins were not loaded at the time of checking), change nativechecker to the last postion like:

Code:
FCNPC MapAndreas ColAndreas nativechecker
Things should work fine then
Reply

Quote:
Originally Posted by jop9888
View Post
U are using nativechecker am i right?

Because your plugin section in server.cfg probably looks like this:

Code:
nativechecker FCNPC MapAndreas ColAndreas
When you put nativechecker before other plugins it will report errors since the plugins are not loaded yet and nativecheckers does its job it reports errors about the missing functions (hence the plugins were not loaded at the time of checking), change nativechecker to the last postion like:

Code:
FCNPC MapAndreas ColAndreas nativechecker
Things should work fine then
samp-server auto close himself and I have this in server_log :

[FCNPC] Error: Script initialization failed. Include file version does not match plugin version.

I have tried with all plugin versions..
Reply

Quote:
Originally Posted by Inuro
View Post
samp-server auto close himself and I have this in server_log :

[FCNPC] Error: Script initialization failed. Include file version does not match plugin version.

I have tried with all plugin versions..
Post your Server.CFG content and the Server_log content from where you start the server to where it shuts down
Reply

Quote:
Originally Posted by Inuro
View Post
samp-server auto close himself and I have this in server_log :

[FCNPC] Error: Script initialization failed. Include file version does not match plugin version.

I have tried with all plugin versions..
delete the include and the plugin and install again the latest version
Reply

Quote:
Originally Posted by jop9888
View Post
Thanks for updating, i found one thing that i think must be different:

Code:
CA_RayCastLineAngle(X, Y, Z + 0.75, X, Y, Z - 3.0, waste, waste, waste, surface_rx, surface_ry, waste);
shouldn't this be:

Code:
CA_RayCastLineAngle(DriverPath[driverid][cnode][0], DriverPath[driverid][cnode][1], DriverPath[driverid][cnode][2] + 0.75, DriverPath[driverid][cnode][0], DriverPath[driverid][cnode][1], DriverPath[driverid][cnode][2] - 3.0, waste, waste, waste, surface_rx, surface_ry, waste);
Without that change i experience that the NPCs set their quaternions with respect to the node behind them.

You wouldn't be needing this part on line 1834 as well anymore:

Code:
FCNPC_GetPosition(npcid, X, Y, Z);
Both aren't perfect as neither of the positions are really correct.
There are situations where the next node's surface angle is a lot different than the last node's surface angle, so it's generally better to use the NPC's current position.

With the QuaternionStuff Plugin I calculated the X and Z angle based on the Nodes, not the surface. A correct version would update the surface angle constantly, not only when passing a node.

Anyway this whole script could use a re-write. The code base is 5 years old and nowadays I would do A LOT very differently and more efficiently.
Reply

Quote:
Originally Posted by dorvnzla
View Post
Hello my server shows this errors pls help me!!

C:\Users\ARMANDO4\Documents\Servidor sa-mp\pawno\include\ColAndreas.inc(1041) : error 010: invalid function or declaration
C:\Users\ARMANDO4\Documents\Servidor sa-mp\pawno\include\ColAndreas.inc(1044) : error 021: symbol already defined: "CA_CreateObject_DC"
C:\Users\ARMANDO4\Documents\Servidor sa-mp\pawno\include\ColAndreas.inc(1042) : error 010: invalid function or declaration
C:\Users\ARMANDO4\Documents\Servidor sa-mp\pawno\include\ColAndreas.inc(1042 -- 1047) : error 021: symbol already defined: "CA_DestroyObject_DC"
C:\Users\ARMANDO4\Documents\Servidor sa-mp\pawno\include\ColAndreas.inc(1042 -- 1047) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Get the file/inc colandreas from here:
https://sampforum.blast.hk/showthread.php?tid=586068 , make sure to read the text tutorial

Use a filterscript to help organize your objects successfully.

Code:
public OnFilterScriptInit()
{
	// Add any remove buildings (This only works once)
	CA_RemoveBuilding();
	
	// Initialize the collision world (This creates San Andreas, the entire map, excluding removed buildings)
	CA_Init();
	
	// Create objects
	CA_CreateDynamicObject_SC();
Reply

Nice!
Reply

Good job...!
Reply

Hi NAS!, friend i have a problem with this script, when I load this filescript with 250 npc drivers, the cars are like they have lag, they go stumbling, do you know why this happens? in the video I see that everything is fine ... I'm using FCNPC 2.0 ... very thx master
Reply

Quote:
Originally Posted by bookknp
View Post
Hi NAS!, friend i have a problem with this script, when I load this filescript with 250 npc drivers, the cars are like they have lag, they go stumbling, do you know why this happens? in the video I see that everything is fine ... I'm using FCNPC 2.0 ... very thx master ;)
Does ColAndreas work correctly? If it doesn't work, the NPCs will not rotate at all so if that is the case, follow the instructions in the ColAndreas thread.
I also didn't update to FCNPC 2.0 yet, maybe there are some changes that need to be done. You could look at the parameters for the FCNPC_GoTo function and compare it with the old version (1.8).

I'll test it later with 2.0 and update if there's something that needs to be changed.
Reply

Quote:
Originally Posted by NaS
View Post
Does ColAndreas work correctly? If it doesn't work, the NPCs will not rotate at all so if that is the case, follow the instructions in the ColAndreas thread.
I also didn't update to FCNPC 2.0 yet, maybe there are some changes that need to be done. You could look at the parameters for the FCNPC_GoTo function and compare it with the old version (1..

I'll test it later with 2.0 and update if there's something that needs to be changed.
Hi friend, I do not have problems with the Colandreas (that i think ^^), my problem is that the cars are pulling as you can see in the gif, I'll wait for you to release the version for FCNPC 2.0

Reply

Thanks for this
Reply

Hi NaS,
I need help, loads everything successfully but doesn't load NPCs
Help me, please.
Reply

Quote:
Originally Posted by ThePez
View Post
Hi NaS,
I need help, loads everything successfully but doesn't load NPCs
Help me, please.
Which version of FCNPC are you using? I adopted to 2.0.0 (the latest rc I believe) recently so make sure you are using the same version.
Also is there anything in the logs? Like Plugins that failed to load, or GPS data?

The maxnpc console variable must be high enough as well (add to server.cfg "maxnpc 500" - if you want 500 drivers for example).
Reply

Quote:
Originally Posted by NaS
View Post
Which version of FCNPC are you using? I adopted to 2.0.0 (the latest rc I believe) recently so make sure you are using the same version.
Also is there anything in the logs? Like Plugins that failed to load, or GPS data?

The maxnpc console variable must be high enough as well (add to server.cfg "maxnpc 500" - if you want 500 drivers for example).
Yes, I use the FCNPC 2.0.0 version but the only error I see in the server-log is
Failed. (Use FCNPC-DL for this version of the server).

Loading plugin: FCNPC
-------------------------------------------------
FCNPC - Fully Controllable NPC v2.0.0
Windows SA-MP 0.3.DL R1
Jan 2 2019 at 23:09:26

Author: OrMisicL (2013 - 2015)
Continued by: ziggi (2016 - present)

See full credits in the README.md file
-------------------------------------------------

Loading...
Failed. (Use FCNPC-DL for this version of the server)
Failed.
Reply

Quote:
Originally Posted by ThePez
View Post
Yes, I use the FCNPC 2.0.0 version but the only error I see in the server-log is
Failed. (Use FCNPC-DL for this version of the server).

Loading plugin: FCNPC
-------------------------------------------------
FCNPC - Fully Controllable NPC v2.0.0
Windows SA-MP 0.3.DL R1
Jan 2 2019 at 23:09:26

Author: OrMisicL (2013 - 2015)
Continued by: ziggi (2016 - present)

See full credits in the README.md file
-------------------------------------------------

Loading...
Failed. (Use FCNPC-DL for this version of the server)
Failed.
Since you use 0.3DL you need to use the FCNPC-DL version, it even tells you that :P
It's in the release archive from GitHub as well, copy it to your plugins folder like the non-DL version and add it to server.cfg (or rather append -DL to the plugin name).
Reply

I wonder if the old RouteConnector/GPS plugin functions can be converted into the new Modern GPS plugin.
Reply

Quote:
Originally Posted by Chaprnks
View Post
I wonder if the old RouteConnector/GPS plugin functions can be converted into the new Modern GPS plugin.
Yes quite easily as I only use CalculatePath (and the callback).

I might add support for both plugins if someone finds it useful.

EDIT: I switched to the Modern GPS Plugin instead of supporting both. It does everything the old one could, but better.

There might be a small issue though - that are seperated paths. Currently there is no easy method to check whether or not a node is connected to the major node net. So if you see any NPCs on a lonely path, tell me where and I'll add exceptions.
Reply

http://prntscr.com/ndfx27

[06:27:10] DRIVER WARNING: Insufficient amount of parking lots - Use newest GPS.dat or enable more areas!


how to fix? i use 1.3.0 from https://github.com/kristoisberg/samp...lugin/releases
Reply


Forum Jump:


Users browsing this thread: 18 Guest(s)