Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-27-2001, 10:54 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
Couple Harder Scripting Questions

I need input on this from mostly the people that have staff jobs or just know

1. If i have a arrow script in a .txt file and i try to do like auto arrow gun.. where it keeps putting that npc then the npc script does the rest offline it seems to freeze and lag.. did i do something wrong or is that just how it works and cant lay fast..

2. Is there like a limit on the amount of server. string u can have on a server.. will a certain amount start laggin the server or do they not really matter

3. What is the max size of a npc weapon that is allowed.. in kb's please..

4. Is there like a average size for npc weapons.. like if u have a couple 5kb npc weapons will they cause the player to lag.. or does it matter..

5. Thanx A lot to anyone who can help. i will think of more questions..

6. Showimg.. the index's i heard before like certain ones where client side and so on can someone tell me .. whats what
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #2  
Old 11-27-2001, 12:59 PM
Andor_NPC-Admin1 Andor_NPC-Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 69
Andor_NPC-Admin1 is on a distinguished road
lol, these are like, hard Jeopardy questions =P

1. The putnpc command lags. If you're using tons of putnpc commands, then u should expect lots of lag.

2. No clue

3. Clueless

4. Uhhhhhhh

5. =P

6. index > 199 is client side. index < 200 can be seen server side
Reply With Quote
  #3  
Old 11-27-2001, 02:09 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
ok:

1. listen to pixie ...
2. i have heard there is a limitsomewere around 100, not sure, but i think if it excees that they may start overlapping ...
3. i think its 48kb not sure ...
4. dont think it matters ...
5. sure thing ...
6. listen to pixie ...
Reply With Quote
  #4  
Old 11-27-2001, 11:46 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Responce

1. Pixie is correct...

2. Doomsday's server doesn't like it when its more than 50 vars it gets b*tchy but i don't think there is a limit, also reading server vars does not lag, its setting them that is troublesome.

3. 20k?

4. i believe the limit is in Bococ's sig.

5. np

6. go with whats his name, hes right

__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it

Last edited by Saga2001; 11-27-2001 at 11:49 PM..
Reply With Quote
  #5  
Old 11-28-2001, 12:02 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
yep

i just saw a post by him, its a 22k limit
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #6  
Old 11-28-2001, 03:05 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Re: yep

Quote:
Originally posted by Saga2001
i just saw a post by him, its a 22k limit
Why is there a limit?
Reply With Quote
  #7  
Old 11-28-2001, 03:06 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
for server strings, there is not really a limit, however too many will lag specially when you go to edit them. If there are tons and tons the server might not even load up (like thousands im saying)
Only use server strings when you must. Dont use them for everything.
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #8  
Old 11-28-2001, 10:57 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
thanx to all..

hey about the server.flags.. i wanted to know for the reason if u gusy have played metal gear solid.. there is a thing called a codec.. i made one that sends messages to players via server.strings..and i would need about 2 strings per amount of players on server .. so im fine then..

if i have more questions i will ask lol.. i have learned alot in 10 months
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #9  
Old 11-28-2001, 01:03 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Server strings...

yeah i remember someone came on to doomsday and set like i think 10,000 server flags and it took 20 mins to load...it was bad.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #10  
Old 11-28-2001, 11:58 PM
T3CK T3CK is offline
Banned
Join Date: Aug 2001
Location: Atlanta, GA
Posts: 557
T3CK is on a distinguished road
Send a message via AIM to T3CK Send a message via MSN to T3CK Send a message via Yahoo to T3CK
1. Listen to pixie AND ME: PUTNPC will only lag if you do not have a 'destroy' command to keep the number lower. Otherwise, it'll put the npc, and place anotherone over that, and another one over that, and so on, and so on. it even does that offline.
2-6. Listen to everyone else who has posted.
Reply With Quote
  #11  
Old 11-29-2001, 12:14 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
yes...

Also isn't there a limit to putnpcs, putcompus, and puthorses? j/w
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #12  
Old 11-29-2001, 12:18 AM
T3CK T3CK is offline
Banned
Join Date: Aug 2001
Location: Atlanta, GA
Posts: 557
T3CK is on a distinguished road
Send a message via AIM to T3CK Send a message via MSN to T3CK Send a message via Yahoo to T3CK
I dont think there is a limit, but you have to be smart enough to put a destroy command in the txt file, putbaddy and all that I am not sure about, heh 13 year olds dont know much.
Reply With Quote
  #13  
Old 11-29-2001, 03:20 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
what about client strings are they the same way as server strings ? (meaning do they cause any lag)
Reply With Quote
  #14  
Old 11-29-2001, 03:27 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
the problem with putnpc is that when you use the command, it makes the npc txt file download, which might take a few seconds. Thats why in putnpc2 the script is in there.
And 2 per person is a bit too much. If you want to make a chat do like most other servers have done
make like
server.chat1=blabla
server.chat2=blabla
server.chat3=blabla
server.chat4=blabla
server.chat5=blabla
or something, and then when you say something you move 5 to 4, 4 to 3, 3 to 2, 2 to 1, and make 5 the thing the player said (x.x)

erm.. Im not sure but I think server strings are d/l'ed when the player enters the server, so too many would lag a lot more.
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #15  
Old 11-29-2001, 06:46 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Hee hee. My turn to post.

1) Well, each time you call putnpc, you have to download the npc's code, so if you rapidly place npc's.......
2) I think so. I think when Stefan was explaining about the new way server.strings are handled, he told about a limit. Not sure though.
3) The limit on NPC Weapons is about 22k. I rounded up, I think. Once your NPC hits past that limit, it stops saving on the server.
4) Well, NPC Weapons I think are handled by the client. The only time it would lag is when they get downloaded from the server.
5) Ok.
6) I think index 1-200 are seen by everyone. Or else its 0-199. Or 1-199. Or like that.

Well, I know most of these have been answered, but I decided to answer them anyways because I got nothing better to do. Oh wait. CRAP. I still got homework... Stupid Labor Reform...
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
Reply


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

Forum Jump


All times are GMT +2. The time now is 02:27 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.