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 02-13-2009, 05:29 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Could someone please explain move wallcheck to me?

Nearest I can figure it means, rather than "stop when you hit a wall", "when you hit a wall, stop a moment and teleport to the destination".

That about sum it up?
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #2  
Old 02-13-2009, 05:53 AM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
It does. Do you still think it's wonderful for baddy movement?
__________________
Kat
Reply With Quote
  #3  
Old 02-13-2009, 05:58 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Yes, I just have to take it into account.

I can't think of any circumstances under which this sort of wall check-and-ignore would be useful Stefan, but it's easy enough to write a "see if there's going to be a wall in your future and stop before you reach it" routine.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #4  
Old 02-13-2009, 06:18 AM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Quote:
Originally Posted by Tyhm View Post
but it's easy enough to write a "see if there's going to be a wall in your future and stop before you reach it" routine.
Which wastes more server CPU time as a result of being done via script, rather than native code. Sure, it works, but nobody should have to bother.

Have fun with sending multiple move() calls without previous ones finishing. It looks awesome, unless the pathetic skippiness has actually been fixed.
__________________
Kat
Reply With Quote
  #5  
Old 02-13-2009, 11:37 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Last time I checked, if wallcheck is enabled, and there's something blocking in the path, it completely halts all movement and the NPC is warped back to it's last used position before using move().

Quote:
Originally Posted by -Ramirez- View Post
unless the pathetic skippiness has actually been fixed.
That so called "skippiness" of yours only happens for clients with a poor connection speed, and is the direct result of server <--> client synchronization delay. You can even see the exact same effect in other very popular MMORPG's, including one made by Blizzard.
__________________
Follow my work on social media post-Graal:Updated august 2025.

Last edited by xXziroXx; 02-13-2009 at 01:41 PM..
Reply With Quote
  #6  
Old 02-13-2009, 12:20 PM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Quote:
Originally Posted by xXziroXx View Post
That so called "skippiness" of yours only happens for clients with a poor connection speed, and is the direct result of server <--> client synchronization delay. You can even see the exact same effect in other very popular MMORPG's, including one made by Blizzard.
The way you think you know definitively what I"m talking about is baffling. There can be multiple sources of what I'm referring to, one of which is what you're describing. However, I am fully aware of server/client communication and how it functions in general. That is not what I was referring to. I'm pretty sure Tyhm knows what I was talking about, and that's all I'm concerned with.
__________________
Kat
Reply With Quote
  #7  
Old 02-13-2009, 12:54 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by -Ramirez- View Post
The way you think you know definitively what I"m talking about is baffling.
What's your issue? It's not like we can read minds, you know, so stop being so defensive.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #8  
Old 02-13-2009, 06:40 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Tyhm View Post
Yes, I just have to take it into account.

I can't think of any circumstances under which this sort of wall check-and-ignore would be useful Stefan, but it's easy enough to write a "see if there's going to be a wall in your future and stop before you reach it" routine.
If you're going to do that, you should be sure to turn off the wall check in the move function. That way you aren't doing the work twice.
__________________
Reply With Quote
  #9  
Old 02-13-2009, 06:58 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Quote:
Originally Posted by cbk1994 View Post
If you're going to do that, you should be sure to turn off the wall check in the move function. That way you aren't doing the work twice.
Yes, of course.

Quote:
Originally Posted by -Ramirez- View Post
Which wastes more server CPU time as a result of being done via script, rather than native code. Sure, it works, but nobody should have to bother.

Have fun with sending multiple move() calls without previous ones finishing. It looks awesome, unless the pathetic skippiness has actually been fixed.
Yeah, and about a year after I do it the hard way, despite having said nothing the whole time I was working, Stefan will release move3, which does exactly what move said it would do.

In fact, the Multiple Move Calls seems to be what kills the Wallcheck: It sends a "Go from 10,10 to 30,30, and stop if you hit a wall." It hits a wall at 20,20, and runs a new move call: "Go from 30,30 to 40,10, and stop if you hit a wall", so it warps to 30,30 (never figuring it maybe stopped when it hit the wall?) and continues its route unimpeded...

It all sounds quite familiar...I think there was a mailman NPC on one of the servers that was always getting stuck behind players; it seems as though Move was rewritten so that NPC could go about its business regardless of impedence...though frankly they should have just turned off the wallcheck for that one NPC rather than destroying the move command...but maybe I'm wrong.

In any case, it's easy enough for me to use timeout for move-monitoring. The only downside is, of course, I've used the only timeout the NPC has.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
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 04:52 AM.


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