Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-22-2008, 02:50 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
A loop instead of a gani!

Well, yea, maybe some of you saw my other thread, my nickname gani which is eating waaaaay too much CPU. So Dusty said doing that in a loop is probably better. Ok, cool, I thought, let's just do that.
But now I got the problem I always had with this kinda stuff. The nicks are basically "lagging" behind, if you know what I mean. They got a small moving delay when the others move. Well, sure thing, lets just stuff it into the movement, either before or after any x/y changes, I don't remember.
Next problem arises. I never ever had a solution for this, and that's why I'm making this thread. When normally moving it works just fine. But when others are moved by scripts that don't use the movement system to move the player, KAPOOF, the nicknames got a delay again. How the hell do I fix this madness? :/
Reply With Quote
  #2  
Old 08-22-2008, 04:16 PM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Try just dealing with it. How annoying is it?
Reply With Quote
  #3  
Old 08-22-2008, 04:18 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Pretty damn annoying.
Reply With Quote
  #4  
Old 08-22-2008, 05:19 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Quote:
Originally Posted by DrakilorP2P View Post
Try just dealing with it. How annoying is it?
Not helpful.


Crow, would you mind posting the snippet that you're having problems with?
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #5  
Old 08-22-2008, 05:47 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Not needed anymore I suppose. Thanks to Hell Raven I got it fixed. I basically have to call a function that updates your own nick when you are moved by something that isn't the movement system. Only happens to yourself, sooo
Reply With Quote
  #6  
Old 08-22-2008, 08:14 PM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Quote:
Originally Posted by Crow View Post
Not needed anymore I suppose. Thanks to Hell Raven I got it fixed. I basically have to call a function that updates your own nick when you are moved by something that isn't the movement system. Only happens to yourself, sooo
Just for knowledge, the reason this was happening: when the nicks were updated, the nick script kicked in before the script that was moving the player's x/y, so the movement happened then the nicks did not update until the next .05 tick.

So, the solution is to call the drawing update from the script that is doing the moving right after the moving. (which he did now)
__________________
Reply With Quote
  #7  
Old 08-23-2008, 01:31 AM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Quote:
Originally Posted by Tigairius View Post
Not helpful.
Really? Sometimes I see people waste a lot of time trying to do something without stepping back and considering why they're doing it in the first place.
Reply With Quote
  #8  
Old 08-23-2008, 03:21 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Also, I posted in the other thread that hiding and showing images constantly in a loop will have some bad CPU usage. Only hide when needed(current playercount < last playercount). I don't know if you do this, but someone mentioned it so I thought I'd throw that in.
Reply With Quote
  #9  
Old 08-23-2008, 12:38 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by DustyPorViva View Post
Also, I posted in the other thread that hiding and showing images constantly in a loop will have some bad CPU usage. Only hide when needed(current playercount < last playercount). I don't know if you do this, but someone mentioned it so I thought I'd throw that in.
Hmm, so basically only hide when it's needed, and adjust the x, y and other things anyway? I will try that.

Edit: Done, and it helped. Neato!

Last edited by Crow; 08-23-2008 at 01:57 PM..
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:44 PM.


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