SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 10/09/2009, 04:52 PM   #1
BloodyEric
Huge Clucker
 
BloodyEric's Avatar
 
Join Date: May 2008
Location: Berlin, Germany
Posts: 359
Reputation: 12
Default NPC is lagging

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
BloodyEric is offline  
Old 10/09/2009, 04:57 PM   #2
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,509
Reputation: 1056
Default Re: NPC is lagging

That Means You Didn't Loop It When You Record, When Recording Try And Drive Back To Your First Position, Where You Started Recording And Just Copy One Of The Included NPC Scripts [Call It Something Else] Then Change The REC Name To Your Recording Then Your Using The Loop System That Kye Made For The NPC Testing. If That Fails Ask Someone Who Knows More!
[HLF]Southclaw is offline  
Old 10/09/2009, 06:39 PM   #3
Adil
Gangsta
 
Adil's Avatar
 
Join Date: Aug 2008
Posts: 891
Reputation: 20
Default Re: NPC is lagging

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.
__________________
Signature

My Works
[NPC]LS Bus System
[MAP]Mansion

Adil is offline  
Old 10/09/2009, 07:05 PM   #4
BloodyEric
Huge Clucker
 
BloodyEric's Avatar
 
Join Date: May 2008
Location: Berlin, Germany
Posts: 359
Reputation: 12
Default Re: NPC is lagging

Added a video in the first post, I hope the quality is good enough to see the problem
BloodyEric is offline  
Old 11/09/2009, 05:49 PM   #5
rafaelrfa1
Little Clucker
 
Join Date: Feb 2008
Posts: 14
Reputation: 0
Default Re: NPC is lagging

Create the vehicle in your GameMode.
rafaelrfa1 is offline  
Old 11/09/2009, 05:51 PM   #6
Redirect Left
High-roller
 
Redirect Left's Avatar
 
Join Date: Mar 2007
Location: Yorkshire, England
Posts: 1,185
Reputation: 321
Default Re: NPC is lagging

Quote:
Originally Posted by rafaelrfa1
Create the vehicle in your GameMode.
The vehicle is obviously there, as the bot is in it
Redirect Left is offline  
Old 11/09/2009, 07:10 PM   #7
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,509
Reputation: 1056
Default Re: NPC is lagging

just Re-Record, It Was Probably A Glitch While You Were Recording.
[HLF]Southclaw is offline  
Old 12/09/2009, 01:11 AM   #8
Hiphop
Big Clucker
 
Join Date: Jul 2007
Location: Holland
Posts: 72
Reputation: 0
Default Re: NPC is lagging

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)
Hiphop is offline  
Old 12/09/2009, 02:45 AM   #9
V1ceC1ty
High-roller
 
V1ceC1ty's Avatar
 
Join Date: Oct 2008
Location: West Australia
Posts: 2,050
Reputation: 253
Default Re: NPC is lagging

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.
__________________

A wild project-samp has re-appeared!


www.project-samp.net
V1ceC1ty is offline  
Old 12/09/2009, 11:23 AM   #10
woaha
Big Clucker
 
Join Date: Jun 2008
Posts: 122
Reputation: 8
Default Re: NPC is lagging

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

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
Commands are lagging! ─itisOnHuora Help Archive 4 28/02/2010 07:57 PM
Lagging in interiors... Protocol Client Support 0 12/02/2010 07:26 PM
problem lagging LamboMick2 Client Support 2 21/07/2009 02:23 AM
GTA:SA Lagging rafay Everything and Nothing 13 17/06/2009 06:14 AM
Lagging Ribber Help Archive 17 04/02/2009 07:02 PM


All times are GMT. The time now is 02:10 AM.


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