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
  #16  
Old 11-29-2001, 10:58 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 again but i am not making a chat thing.. lol .. i think they are usless and take up room.. i am doing something different for rp stlye the server will be non p2p .. so i dont think 2 server.strings per player is to much

anyone looking for a staff job email me
at
[email protected]
aim: dragoonvengncNAT

i will explain about server
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #17  
Old 11-29-2001, 12:28 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
Quote:
Originally posted by dragoonvenganc
so i dont think 2 server.strings per player is to much
there would be tons o server strings on your PW if u did that. b/c think about it, if you estimate that the number of player accounts on your server is 50, then u got 100 server strings =P
Reply With Quote
  #18  
Old 11-29-2001, 09:59 PM
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
my point was... i need to know if like 100 is to much and what not.. like what is will happen some people have said thats to much others.. say it does not matter as long as u dont do like 500 or above
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #19  
Old 11-30-2001, 06:56 AM
Andor_NPC-Admin1 Andor_NPC-Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 69
Andor_NPC-Admin1 is on a distinguished road
I think 100 sounds a little too much.
Usually, I don't use server strings for storage, but just for little things the server should remember, like events
Reply With Quote
  #20  
Old 11-30-2001, 08:05 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
color code:
green - information
orange-red - solution/suggestion

Server Side
(with NPC Server)

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

Placing scripts will lag the server, because it's creating an NPC. A larger script would probably cause more lag. Assuming you do this serverside though, there wouldn't be a whole lot of client-side lag, since it only recieves position and image.

Try making your script smaller, or make one NPC per level that handles arrows in that level, or do it on a per-user basis. Use showimg if you can, or try to find the new projectile support stuff (I heard something about this a while ago, have yet to see or use it though).

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

I've never heard of or hit a limit, and don't think there is one.

With the NPC Server you might want to reserve server strings for things that NEED to be server strings (since they aren't sent to the player anyway), and have an NPC on the server that stores all others as personal NPC this.strings.

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

I think the hard limit was like 56K or something...but I've far exceded that before, so I think it might be higher now.

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

Well, considering I have, on average, a few 10K-12K weapons along with a 70K chunk of weapon, it shouldn't lag much with 5K weapons. Of course, downloading will take longer with larger weapons, and loading.

6. Showimg.. the index's i heard before like certain ones where client side and so on can someone tell me .. whats what

NPC Code:
- showimg colors,layer, and zoom is sent to other players (even
when the layer is 4, then only values between 0 and 440 allowed)


Yah, doesn't mean much to me either. Basically though, if the layer is 4, 0 <= index <= 440 will be sent to all players. I believe there may have been a showimglocal command at one time...


Personally, I use indexes above 1000 for all clientside-only stuff (which is usually stats). Just find a high number that works for you, and you should be safe.


Client Side
(without NPC Server)

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

Putnpc is your enemy. Every NPC placed must be sent to EVERY player, then executed. This can create server lag, client lag, and machine lag. Avoid it's use at all costs.

Use showimgs. They're stabler for clientside stuff. If you HAVE to use putnpc, make the ammo for your weapon either extremely rare or pricey, and minimize it's use.

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

I've never heard of or hit a limit, and don't think there is one.

Since this is clientside, and every server string is sent to the client, I'd at least try and restrict their use a bit. They can be VERY useful if you're without an NPC Server, but if they're changed all the time, or accessed by multiple players, it could cause problems with lag.

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

I think the hard limit was like 56K or something...but I've far exceded that before, so I think it might be higher now.

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

Well, considering I have, on average, a few 10K-12K weapons along with a 70K chunk of weapon, it shouldn't lag much with 5K weapons. Of course, downloading will take longer with larger weapons, and loading. Additionally, your levels containing the weapons will become very large, and take a while to load, since you don't have an NPC Server to store the script, and all scripts in the level are sent upon entry.

6. Showimg.. the index's i heard before like certain ones where client side and so on can someone tell me .. whats what

NPC Code:
- showimg colors,layer, and zoom is sent to other players (even
when the layer is 4, then only values between 0 and 440 allowed)


Yah, doesn't mean much to me either. Basically though, if the layer is 4, 0 <= index <= 440 will be sent to all players. I believe there may have been a showimglocal command at one time...


Personally, I use indexes above 1000 for all clientside-only stuff (which is usually stats). Just find a high number that works for you, and you should be safe. Also, I'm not too sure on the new clientside rules (haven't dealt with them), but I think they're the same.


----------------

Additional: Why did you answer all of these questions in such a detailed manner?

Because none of them were, "Will somebody script this/that for me, because I'm too lazy to look up some dumb commands", and they were good questions that not many people would know the answer to, since they deal with client/server architechture.

Try asking questions that are very specific and don't have someone make a script for you, but help you figure out how to do it yourself. Also, if you want to make your scripts work better, or decrease lag, feel free to ask how, as long as you ask detailed questions, and don't just post your script and say, "Make this better for me because I'm too lazy to figure out what might make it better."

----------------

- Kyle
Reply With Quote
  #21  
Old 12-04-2001, 10:45 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 Kyle that is what i needed to know.. I dont want people to do stuff for me i just need to learn the more detailed stuff so i can add it to my base of knowledge.

Is there anyway i can learn more about the npc server.

And the reason i asked all of these questions about the putnpc was

I am doing a script for a class that needs about 5 different arrow types and in places i need them to shoot more then one arrow. In some cases it can be about 50 arrows. So i cant do showimg.. for that is there anyother way besides changing the sprite.png.
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #22  
Old 12-04-2001, 12:19 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
i've missed thourough descriptions on the forums lately ...
Reply With Quote
  #23  
Old 12-04-2001, 08:29 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Thanx much for the showimg info
Reply With Quote
  #24  
Old 12-04-2001, 08:54 PM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
Quote:
Originally posted by dragoonvenganc
Thanx Kyle that is what i needed to know.. I dont want people to do stuff for me i just need to learn the more detailed stuff so i can add it to my base of knowledge.

Is there anyway i can learn more about the npc server.

And the reason i asked all of these questions about the putnpc was

I am doing a script for a class that needs about 5 different arrow types and in places i need them to shoot more then one arrow. In some cases it can be about 50 arrows. So i cant do showimg.. for that is there anyother way besides changing the sprite.png.
To learn about the NPC Server, it's really important to actually have one. You can only learn so much from the documents around, but things work a lot differently than they do on clientside. The hardest thing I'd say is getting variables and strings figured out.

As for the arrows, why couldn't you do showimg? It could handle 50 arrows at a time, and it'd be a great deal better than 50 NPCs being created (ex: it wouldn't freeze). I think I've heard something about projectile support, but that might have just been a suggestion and not an actual feature.
Reply With Quote
  #25  
Old 12-05-2001, 10:34 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
yes but how say i have like 3 different players all firing arrows.. how do i get that to not mess up each other.. i could do just 50 for one player but.. i could i script it for a bunch..

i really have no idea
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #26  
Old 12-05-2001, 02:51 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
woah

woah i am in awe how many ours did u take towrite that all!!!
__________________

!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
  #27  
Old 12-06-2001, 10:39 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
Can anyone tell me how to do what i asked please i have no idea.. i dont think u can do.. it unless you assigned each player a 50 showimg.. space.. which would be alot.....if i had 20 archers. thats 1000 spaces..
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #28  
Old 12-06-2001, 12:11 PM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
Each player has a weapon, each player's weapon controls the arrows it fires...simple as that.

Each player's personal weapon is different. Think of the npcws more as players[i].weaponname...they run separately from every other weapon, and use their own indexes. Two different NPCWs using indexes 20-40 could show 40 images together.
Reply With Quote
  #29  
Old 12-06-2001, 12:48 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
hey!

i have a note to everyone.



GRAAL IS COOL!



that is all....
--PastAustin
__________________

!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
  #30  
Old 12-07-2001, 10:40 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
Yes Past.. now go finish the system

Ok so each so if i have 2 npcs.. and they both can use showimg 1000..what ever.. with out disturbing each other..

so if what i said is right. then thanx for your help

thanx again kyle
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
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 05:35 AM.


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