Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-22-2008, 03:56 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
Swimming

While trying to add a custom swim animation on Mythic, I noticed something annoying.

If it has more then one frame, it'll keep repeating the first frame over and over again. Why? My conclusion is that Graal keeps checking if the player is swimming, and if he is, it sets his animation to swim.gani.

PHP Code:
function onCreated() setTimer(.05);
function 
onTimeOut()
{
  echo(
"1:" SPC player.ani);
  
setAni("mythic_swim""");
  echo(
"2:" SPC player.ani);
  
setTimer(.05);

That input's a whole lot of this in your F2 log:

PHP Code:
1swim
2
mythic_swim
1
swim
2
mythic_swim
1
swim
2
mythic_swim
1
swim
2
mythic_swim 
Now it's time for my humble request to you, Stefan, and that is... can you pretty please make the client only set the players animation to default swim animation (replaceAni() friendly is a must!) while swimming if its NOT already that animation? I really want multi-frame swim gani without having to script a custom movement system.


EDIT: Forgot to mention that if you do replaceAni("swim", "yourswimani"); - it'll do the same thing and repeat the first frame of your animation over and over again.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #2  
Old 06-22-2008, 04:15 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
Hmm, is the continuous option for the gani set to true or false? I found that you'll encounter this problem if the option is false, and you set the gani in a loop.
Reply With Quote
  #3  
Old 06-22-2008, 04:22 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
Quote:
Originally Posted by DustyPorViva View Post
Hmm, is the continuous option for the gani set to true or false? I found that you'll encounter this problem if the option is false, and you set the gani in a loop.
That has nothing to do with this issue, most likely, considering it keeps setting the animation to the default swim animation every 0.05 seconds no matter if I try to add a custom animation or not.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #4  
Old 06-22-2008, 04:32 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
Eh, may as well try it. I just found no matter what, setting ani's in timeouts can cause the same problem.
Reply With Quote
  #5  
Old 06-22-2008, 05:41 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
You're not making a custom movement system?

I find the default one rather lacking.
__________________
Reply With Quote
  #6  
Old 06-22-2008, 05:55 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
Hmm, well I reread and I guess you're right. There's a lot that needs to be redone in the default system... including this, there is also removing of the swim and swamp effects from the player. These show no matter what, and it's pretty annoying to see this show up even when you use a custom system.
Reply With Quote
  #7  
Old 06-22-2008, 07:09 AM
PrinceOfKenshin PrinceOfKenshin is offline
That guy with a beard
PrinceOfKenshin's Avatar
Join Date: May 2004
Location: Ontario, Canada
Posts: 819
PrinceOfKenshin has a spectacular aura aboutPrinceOfKenshin has a spectacular aura about
Quote:
Originally Posted by DustyPorViva View Post
Hmm, is the continuous option for the gani set to true or false? I found that you'll encounter this problem if the option is false, and you set the gani in a loop.
Doesn't make a difference i tried that and still didn't work
__________________


Quote:
Game Master (Server): Greetings PrinceOfKenshin, there are new posts on the forums that demand your urgent attention! God speed, the fate of the world is in your hands. If you fail, middle earth will forever be in the darkness and your children will be enslaved by McKain.
Reply With Quote
  #8  
Old 06-22-2008, 12:21 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 cbk1994 View Post
You're not making a custom movement system?
Why would I? Custom movement systems are almost only used for combat related things, and combat is done in Turn Based style on Mythic.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #9  
Old 06-22-2008, 08:08 PM
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 xXziroXx View Post
Why would I? Custom movement systems are almost only used for combat related things, and combat is done in Turn Based style on Mythic.
I find the default one quite lacking.
  • Can't change the speed.
  • The wall detection is a bit ... unrealistic.
  • It's WAY too damn slow.
  • Problems like the one you are having.
  • replaceAni is lacking when using ganis with params.
  • You can't disable the sword ... replaceAni( "sword", "idle" ); doesn't stop it; it still slices bushes and pauses the player, just no gani.
  • Hard to make gun systems, weapon systems, etc since there are few freeze options.
__________________
Reply With Quote
  #10  
Old 06-22-2008, 09:05 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 cbk1994 View Post
I find the default one quite lacking.
  • Can't change the speed.
  • The wall detection is a bit ... unrealistic.
  • It's WAY too damn slow.
  • Problems like the one you are having.
  • replaceAni is lacking when using ganis with params.
  • You can't disable the sword ... replaceAni( "sword", "idle" ); doesn't stop it; it still slices bushes and pauses the player, just no gani.
  • Hard to make gun systems, weapon systems, etc since there are few freeze options.
1. You can in some hackish way. I already did
2. It works.
3. See number 1.
4. Errr...what problems?! ;D
5. Well..yea.
6. disableWeapons()?
7. player.freezetime, and you could probably use disableDefMovement() aswell.
Reply With Quote
  #11  
Old 06-22-2008, 09:40 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 cbk1994 View Post
  • Can't change the speed.
  • The wall detection is a bit ... unrealistic.
  • It's WAY too damn slow.
  • Problems like the one you are having.
  • replaceAni is lacking when using ganis with params.
  • You can't disable the sword ... replaceAni( "sword", "idle" ); doesn't stop it; it still slices bushes and pauses the player, just no gani.
  • Hard to make gun systems, weapon systems, etc since there are few freeze options.
  • As Crow said, it's doable.
  • So? I don't have anything that depends on onwall checking.
  • See point 1.
  • Mmm, true.
  • If you know how to script replaceAni() becomes obsolete.
  • Yes you can, it's currently disabled on Mythic with disableWeapons();
  • Do you even know how my combat system work?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #12  
Old 06-22-2008, 10:43 PM
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 xXziroXx View Post
As Crow said, it's doable.
Yes, with some hackish ways, but it's better to just rescript it
Quote:
If you know how to script replaceAni() becomes obsolete.
Yes, you can script a custom movement system
Quote:
Yes you can, it's currently disabled on Mythic with disableWeapons();
But then my weapons don't work, and I have to rescript that.
Quote:
Do you even know how my combat system work?
Not really, but I wasn't just aiming the list towards you.
__________________
Reply With Quote
  #13  
Old 06-22-2008, 11:08 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 cbk1994 View Post
But then my weapons don't work, and I have to rescript that.
Easier than coding a whole new movement, at least if you are new to GScript.
Reply With Quote
  #14  
Old 06-23-2008, 12:07 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
Quote:
Originally Posted by cbk1994 View Post
Yes, you can script a custom movement system
No? I'm already doing it and I don't have a custom movement system.


Anyways, stop derailing this thread please, hopefully Stefan will be arsed to share his wisdom supreme in this thread.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #15  
Old 06-23-2008, 03:36 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Custom movement systems are oh so much better :[
__________________
Do it with a DON!
Reply With Quote
  #16  
Old 06-23-2008, 06:10 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
Quote:
Originally Posted by zokemon View Post
Custom movement systems are oh so much better :[
My point is that I don't want to script one just to be able to have a multi frame swim animation.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #17  
Old 06-23-2008, 06:12 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
Well there's always my barebones system
But ya... like I said, lots of default stuff needs to be fixed to not interfere with scripted systems. There's also another post just made recently about step sounds and such.
Reply With Quote
  #18  
Old 06-23-2008, 02: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
There's also another post just made recently about step sounds and such.
I got that fixed 2 minutes after posting the thread ;f
Reply With Quote
  #19  
Old 06-23-2008, 05:34 PM
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
Still you had to do so in a hackish way.
Reply With Quote
  #20  
Old 06-23-2008, 06:37 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
Still you had to do so in a hackish way.
I planned to prefix all the ganis anyway, so it would have been fixed later.
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:45 PM.


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