SA-MP Forums Archive
Changes to NPCs - 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: Changes to NPCs (/showthread.php?tid=98122)



Changes to NPCs - potato - 19.09.2009

Hi!
I want to know what has been done to the NPCs in RC6-1?
Two out of 4 of my NPCs are disconnecting after a while.
Only thing I noticed is that the NPC is connected really and gets spawned (even where it shouldn't be spawned, SetMyPos doesn't work?) but then... ~15 sec and disconnect.
This didn't happen in RC5.
But those other two work fine... for now.
Those 2 bots are actually special, because one of them is driving a bus really fast (unusual speed) and the other one is on foot and gets a skin on spawn.


Re: Changes to NPCs - Wanted1900 - 19.09.2009

I have that too in 6-1.

[13:51:03] Incoming connection: 127.0.0.1:2363
[13:51:03] [npc:join] Bot has joined the server (0:127.0.0.1)
[13:51:03] Incoming connection: 127.0.0.1:2364
[13:51:03] [npc:join] Bot2 has joined the server (2:127.0.0.1)
[13:51:14] [npcart] Bot2 has left the server (2:0)

As you can see, "Bot" stays in the server, and he is doing normal, but "Bot2" leaves the server after 11 seconds.

He's not spawning at the right place too. In 5-1 it did work..

(Sorry for bad English).


Re: Changes to NPCs - V1ceC1ty - 19.09.2009

lol you dont need to block 127.0.0.1 noone else can do anything with it besides you


Re: Changes to NPCs - Wanted1900 - 19.09.2009

Quote:
Originally Posted by V1ceC1ty
lol you dont need to block 127.0.0.1 noone else can do anything with it besides you
Oh, i didn't know that.


Re: Changes to NPCs - V1ceC1ty - 19.09.2009

it's ok lots of people make mistakes, anyway this doesn't happen on my server so check my NPC scripts and see whats different also make sure you have maxnpc 500 in your server.cfg


Re: Changes to NPCs - Wanted1900 - 19.09.2009

I have just one big difference. Bot is driving a coach, and Bot2 is supposed to be walking.


Re: Changes to NPCs - potato - 19.09.2009

The problem is in the recording.
I changed the source file to a NPC which is working and with 2 same recodings...
Dunno what Kye changed, but seems like we will need to re-record NPCs :/


Re: Changes to NPCs - V1ceC1ty - 19.09.2009

no you dont your doing something wrong. All my NPC scripts still work.


Re: Changes to NPCs - potato - 19.09.2009

That doesn't mean that there could be something wrong with the recording.
And what could I do wrong?
I have 2 lines per script and about 15 lines for all NPCs.
It is a problem with the record, like I said... the recordings for my NPCs are unusual.

If you were right then all my NPCs would be disconnected!


Re: Changes to NPCs - boelie - 19.09.2009

Quote:
Originally Posted by V1ceC1ty
lol you dont need to block 127.0.0.1 noone else can do anything with it besides you
How do you block that for npcs ? only one of my npcs work..they all worked in 0.5