SA-MP Forums Archive
NPC is lagging - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: NPC is lagging (/showthread.php?tid=96735)



NPC is lagging - BloodyEric - 10.09.2009

Hey all, I have a little problem with my created NPC.

I recorded a bus-line with a coach and used the tutorial. It works fine, the bus is driving around. But there is one little problem.
After a few seconds the coach disappears and the bot is standing around. A few moments later the coach continues his route.

It is a little hard to describe, they are some kind of lagging. If you can't understand what I mean, i will make a short video and upload it.
I tried with the bot driving several cars and I implemented the code in LVDM and Grand Larceny, same problem everytime.

The .rec file is 426kb big, i could also upload it if you want to.

I hope someone can help me.

Excuse my English, I'm not a native speaker :P

Here is a little video of the bug

botssucks


Bloody


Re: NPC is lagging - Adil - 10.09.2009

Quote:
Originally Posted by BloodyEric
Hey all, I have a little problem with my created NPC.

I recorded a bus-line with a coach and used the tutorial. It works fine, the bus is driving around. But there is one little problem.
After a few seconds the coach disappears and the bot is standing around. A few moments later the coach continues his route.

It is a little hard to describe, they are some kind of lagging. If you can't understand what I mean, i will make a short video and upload it.
I tried with the bot driving several cars and I implemented the code in LVDM and Grand Larceny, same problem everytime.

The .rec file is 426kb big, i could also upload it if you want to.

I hope someone can help me.

Excuse my English, I'm not a native speaker :P



Bloody
It's not understand able like that, i think you should provide some pictures or videos.

Regards,
Adil.


Re: NPC is lagging - BloodyEric - 10.09.2009

Added a video in the first post, I hope the quality is good enough to see the problem


Re: NPC is lagging - rafaelrfa1 - 11.09.2009

Create the vehicle in your GameMode.


Re: NPC is lagging - Redirect Left - 11.09.2009

Quote:
Originally Posted by rafaelrfa1
Create the vehicle in your GameMode.
The vehicle is obviously there, as the bot is in it


Re: NPC is lagging - Hiphop - 12.09.2009

That the npc spawns in the air and then drives again is because the amount of npc's is too much, try with less. (worked for me)


Re: NPC is lagging - V1ceC1ty - 12.09.2009

Quote:
Originally Posted by Hiphop
That the npc spawns in the air and then drives again is because the amount of npc's is too much, try with less. (worked for me)
no, ive have 15 bots at once with no lag. looks like somethings wrong with the recording.


Re: NPC is lagging - woaha - 12.09.2009

I have exactly same problem with Coach, tryed re-record, that doesn't help.
Using Grand Larceny gamemod.


Re: NPC is lagging - rafaelrfa1 - 12.09.2009


has it happened with min, my vehicle was being created in ncpnomdes, I created the vehicle in my Gamemode and not given an error.


Re: NPC is lagging - Karlip - 12.09.2009

Make sure you haven't got other NPC's entering the same vehicle.