Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Swimming (https://forums.graalonline.com/forums/showthread.php?t=80189)

xXziroXx 06-22-2008 03:56 AM

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.

DustyPorViva 06-22-2008 04:15 AM

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.

xXziroXx 06-22-2008 04:22 AM

Quote:

Originally Posted by DustyPorViva (Post 1398596)
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.

DustyPorViva 06-22-2008 04:32 AM

Eh, may as well try it. I just found no matter what, setting ani's in timeouts can cause the same problem.

cbk1994 06-22-2008 05:41 AM

You're not making a custom movement system? :eek:

I find the default one rather lacking.

DustyPorViva 06-22-2008 05:55 AM

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.

PrinceOfKenshin 06-22-2008 07:09 AM

Quote:

Originally Posted by DustyPorViva (Post 1398596)
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

xXziroXx 06-22-2008 12:21 PM

Quote:

Originally Posted by cbk1994 (Post 1398601)
You're not making a custom movement system? :eek:

Why would I? Custom movement systems are almost only used for combat related things, and combat is done in Turn Based style on Mythic.

cbk1994 06-22-2008 08:08 PM

Quote:

Originally Posted by xXziroXx (Post 1398617)
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.

Crow 06-22-2008 09:05 PM

Quote:

Originally Posted by cbk1994 (Post 1398676)
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 :p
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.

xXziroXx 06-22-2008 09:40 PM

Quote:

Originally Posted by cbk1994 (Post 1398676)
  • 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?

cbk1994 06-22-2008 10:43 PM

Quote:

Originally Posted by xXziroXx (Post 1398709)
As Crow said, it's doable.

Yes, with some hackish ways, but it's better to just rescript it x_x
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.

Crow 06-22-2008 11:08 PM

Quote:

Originally Posted by cbk1994 (Post 1398718)
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.

xXziroXx 06-23-2008 12:07 AM

Quote:

Originally Posted by cbk1994 (Post 1398718)
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.

zokemon 06-23-2008 03:36 AM

Custom movement systems are oh so much better :[

xXziroXx 06-23-2008 06:10 AM

Quote:

Originally Posted by zokemon (Post 1398800)
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. x_x

DustyPorViva 06-23-2008 06:12 AM

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.

Crow 06-23-2008 02:38 PM

Quote:

Originally Posted by DustyPorViva (Post 1398813)
There's also another post just made recently about step sounds and such.

I got that fixed 2 minutes after posting the thread ;f

DustyPorViva 06-23-2008 05:34 PM

Still you had to do so in a hackish way.

Crow 06-23-2008 06:37 PM

Quote:

Originally Posted by DustyPorViva (Post 1398850)
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.


All times are GMT +2. The time now is 06:43 AM.

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