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 08-06-2003, 03:33 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
If your so concerned with lagging stuff, stick the script in another npc? heh

Just change the rc chat part.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #17  
Old 08-06-2003, 03:48 AM
draygin draygin is offline
Telmont Bandit
draygin's Avatar
Join Date: Feb 2002
Location: Ohio
Posts: 2,550
draygin is on a distinguished road
Quote:
Originally posted by voicedcow6666


1) It's a vital part of the NPC Server, as jagen said, and a timeout in something like that is bad. Any lag that the control-npc gets can help add more lag throughout the rest of the server.
I say adding scripts to the server is bad. Because after all they will lag down the rest of the server and cause it to run slower than if it had no scripts at all and since I said it I must be right. After all there is no need to question what people tell you when its much easier for them to spoon feed it to you and you to follow it with out question.

No more scripts!

I bet you believe in santa claus.
__________________

I stole Spanky's gold!
Reply With Quote
  #18  
Old 08-06-2003, 03:56 AM
voicedcow6666 voicedcow6666 is offline
Registered User
Join Date: May 2002
Location: Texas
Posts: 182
voicedcow6666 is on a distinguished road
Quote:
Originally posted by draygin


I say adding scripts to the server is bad. Because after all they will lag down the rest of the server and cause it to run slower than if it had no scripts at all and since I said it I must be right. After all there is no need to question what people tell you when its much easier for them to spoon feed it to you and you to follow it with out question.

No more scripts!

I bet you believe in santa claus.
That was probally the most ignorant thing I've ever saw posted on these forums.

If you noticed, I made a point about the control-npc being a vital part of the npc server....

Oh, and I do believe in Santa Clause...In fact, he's my dad.
__________________
-Zega, Staff Advisor of Delteria
Reply With Quote
  #19  
Old 08-06-2003, 03:57 AM
draygin draygin is offline
Telmont Bandit
draygin's Avatar
Join Date: Feb 2002
Location: Ohio
Posts: 2,550
draygin is on a distinguished road
Quote:
Originally posted by voicedcow6666


That was probally the most ignorant thing I've ever saw posted on these forums.

If you noticed, I made a point about the control-npc being a vital part of the npc server....

Oh, and I do believe in Santa Clause...In fact, he's my dad.
I would rather have Sarcasm taken for Ignorance than blindly follow what every one tells me with out knowing exactly why something is bad just that *gasp* it is.

So just because its a vital part of the server then doing anything with it is bad? That says absolutly nothing other than you think something is bad because some one else told you but yet you have no idea why.
__________________

I stole Spanky's gold!
Reply With Quote
  #20  
Old 08-06-2003, 03:57 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by voicedcow6666
1) It's a vital part of the NPC Server, as jagen said, and a timeout in something like that is bad. Any lag that the control-npc gets can help add more lag throughout the rest of the server.
Why? How will spending a few microseconds every once in a while change anything? Why will it change anything? How is it worse for the NPC to be spending those microseconds on a timeout and not a long actionplayeronline?

Quote:
2) I never said I was a better scripter than he, I simply said Jagen is a good scripter, and I'm a pretty good scripter, and that when two people who are both pretty good at something, especially Jagen, is most likely correct, since he was basically saying we were wrong with this 100% thing.
Giltwist+Kai > Jagen+Zega

Does that mean we're automatically right? Any competent scripter's doubts should be treated with respect, not dismissed without thought.
__________________
Reply With Quote
  #21  
Old 08-06-2003, 05:12 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Just becuase the run time isn't big, doesn't mean it isn't lagging the server technically, setting serverr strings a lot WILL lag the server, not because of a high run time, but because the strings need to be sent to every player/npc everytime it's set, which will cause server lag, not lag on that particular npc, and why shouldn't you run a timeout loop? Because the Control-NPC already gets a ton of actions, everytime a projectile lands it gets an event, for an example I mean, why but unneeded stuff on it, it's just distracting the NPC from doing other functions, also, everytime the control-npc is called with a trigger, it 'warps' to the point that called the trigger, so again, why put unneeded stuff there
Reply With Quote
  #22  
Old 08-06-2003, 05:18 AM
TribulationStaff TribulationStaff is offline
Registered User
Join Date: Jul 2003
Location: Pennsylvania
Posts: 368
TribulationStaff is on a distinguished road
Send a message via AIM to TribulationStaff
There are no serverr.variables in that script....
__________________


Help me keep scripting
Reply With Quote
  #23  
Old 08-06-2003, 05:21 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
dude, I was just saying it as an example x_X not as if it was actually that way
Reply With Quote
  #24  
Old 08-06-2003, 05:36 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Python523
Just becuase the run time isn't big, doesn't mean it isn't lagging the server technically
Okay. Then how will it lag the server?


Quote:
why shouldn't you run a timeout loop? Because the Control-NPC already gets a ton of actions, everytime a projectile lands it gets an event, for an example I mean, why but unneeded stuff on it, it's just distracting the NPC from doing other functions
'Distracting'? You realise that it's all handled by one processing unit? The processor has to do just as much work whichever NPC contains the code. The CNPC only needs to do stuff when it is being called. If something else is being processed during that call then it doesn't matter which NPC is doing the processing.

Quote:
also, everytime the control-npc is called with a trigger, it 'warps' to the point that called the trigger
1) The warping is only a way to describe its behaviour, it doesn't actually warp anywhere because it doesn't have a physical presence.
2) The 'warping' isn't processor-intensive.
3) Giltwist's script doesn't involve triggering the server.
__________________
Reply With Quote
  #25  
Old 08-06-2003, 08:35 AM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
Quote:
Originally posted by Kaimetsu
Giltwist+Kai > Jagen+Zega
What a modest comment...

Quote:
Originally posted by Kaimetsu
1) The warping is only a way to describe its behaviour, it doesn't actually warp anywhere because it doesn't have a physical presence.
2) The 'warping' isn't processor-intensive.
Correct me if I'm wrong, but I was pretty sure that everytime a serverside script is called, it tecnically "warps" the CNPC to that location and runs the script. The "warping" is only as processor intensive as the serverside script itself. And what do you mean by "physical presence"? None of the components of software necessarily have a "phyiscal presence", but the Control-NPC exists in/as the server itself, rather than in a level, but it does "warp" to serverside scripts constantly.
---Shifter
__________________
Who has time for life these days?
Reply With Quote
  #26  
Old 08-06-2003, 08:47 AM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
I made an RC Login system myself. I made a seperate database NPC for it, RC Login System. It runs on a timeout of 1 (I did use a timeout of 5, but timeout of 1 creates SLIGHTLY more lag, and it's microseconds). Just every timeout loop, have it check this.newrcs to this.oldrcs and make sure the strings are the same (strequals). If they are, then just ignore it and have it reset the timeout. BUT if it is different, check the strings to find what is new. I have my automatically PM Updates and personal messages to them. /npc messages new 'account' 'message' is how I'm using it to send messages. It just stores a string and sends to the RC when he gets on.
BTW, using a timeout on the Control-NPC is just something that isn't done. The reasons are limitless as to WHY you shouldn't use them, but it's just kind of one of those things. It's just like telling people to not use a .1 timeout serverside if they don't have to, or not to run pointless timeouts in every NPC. It is just something that scripters should know (no offense, everyone has to learn some time or another). If you have the RC chat do a with(getnpc(RC Login Sys)) and have it set a string, then just transferring and a small edit of the script would make it work just fine, and would also help reduce lag (should be one of the greatest concerns when coding).
---Shifter
__________________
Who has time for life these days?
Reply With Quote
  #27  
Old 08-06-2003, 08:56 AM
TribulationStaff TribulationStaff is offline
Registered User
Join Date: Jul 2003
Location: Pennsylvania
Posts: 368
TribulationStaff is on a distinguished road
Send a message via AIM to TribulationStaff
But then it doesn't blink the tray icon which was the whole idea of using sendpm. I run my RC minimized while working on other things, I need a way to not miss people.
__________________


Help me keep scripting
Reply With Quote
  #28  
Old 08-06-2003, 09:26 AM
voicedcow6666 voicedcow6666 is offline
Registered User
Join Date: May 2002
Location: Texas
Posts: 182
voicedcow6666 is on a distinguished road
Quote:
Originally posted by TribulationStaff
But then it doesn't blink the tray icon which was the whole idea of using sendpm. I run my RC minimized while working on other things, I need a way to not miss people.
You can still use sendpm, that doesn't have to be in the Control-NPC.
__________________
-Zega, Staff Advisor of Delteria
Reply With Quote
  #29  
Old 08-06-2003, 09:46 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Projectshifter
What a modest comment...
It wasn't modest, but it was pertinent.

Quote:
Correct me if I'm wrong, but I was pretty sure that everytime a serverside script is called, it tecnically "warps" the CNPC to that location and runs the script.
The CNPC is just a collection of code, it doesn't run anything. It might be involved in the running of scripts, but I doubt it.

Quote:
The "warping" is only as processor intensive as the serverside script itself.
Nonsense. The two are unconnected; the script's size and processor demands are not linked to the necessary computation in moving the CNPC.

Quote:
And what do you mean by "physical presence"? None of the components of software necessarily have a "phyiscal presence"
Indeed, which implies that I wasn't talking about physical presences in the real world. A character NPC in a level has a physical presence. Every player has a physical presence. The CNPC has no physical presence.

Quote:
Originally posted by Projectshifter
BTW, using a timeout on the Control-NPC is just something that isn't done. The reasons are limitless as to WHY you shouldn't use them
Cool. Then name ONE.
__________________
Reply With Quote
  #30  
Old 08-06-2003, 10:32 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Kaimetsu


It wasn't modest, but it was pertinent.

I'd say without a doubt you and giltwist would be better than zega and I in the area of say...eye candy, but you've admitted before that you aren't the best in the area of serverside scripting and things like that, well you didn't word it that way but I don't have logs of chatrooms, so I apologize if I say something inaccurate, but I think I got the main point of it, but anyway, I think I could say
zega + jagen > kaimetsu + giltwist
in the area of serverside scripting, I'm not saying you can't or couldn't, I'm just saying both of you without a doubt have the potential to, but gilt is still learning most of it, and I've never really seen you script much serverside-wise, but then again, I'm just stating my opinion, so I could be wrong
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 03:41 PM.


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