HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
Making threads to link to banned members content grants an automatic ban
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 Cannot revive?

View previous topic View next topic Go down 
AuthorMessage
Vιrus
Very Helpful
Very Helpful
avatar

Game username : Virus
Server : Miskai
Female Posts : 486
Join date : 2014-09-05
Age : 17
Location : deep in an existential crisis

PostSubject: Cannot revive?   Sat Mar 21, 2015 9:53 pm

So, basically, what happened was this-
I was testing the health and wound bar for my server, so to do this, I got some prey to attack my test character and that was that. I went back to Default to "revive" myself, so-to-speak, or basically just bring my health back, by laying in the water and all.
However, when I do that, the wound bar won't reduce whatsoever.
Like this:
Spoiler:
 

(Sorry the quality is that of a potato's, Lightshot sometimes doesn't like me.)
I'd appreciate if someone would be able to help, thank you. <3
Back to top Go down
GlaciaTheWolf
®
®
avatar

Game username : Glacia, GlaciaIceWolf, GlaciaTheWolf
Server : Canis lupus (Owner/creator) DD (member)
Female Posts : 977
Join date : 2013-12-09
Age : 21
Location : Ohio

PostSubject: Re: Cannot revive?   Sun Mar 22, 2015 12:17 am

I just had this problem! Let me bring up my source..

Code:
      //Recover from wound
      if(woundRecoveryTimer>0)
      {
         Real rate = 1;
         if(isSitting()||isLaying()||isSideLaying())rate = 25;
         if(isRolledOver()||isPlopped()||isLeaning()||isCurled())rate = 50;
         if(isInWater)rate *= 2;
         woundRecoveryTimer -= rate*evt.timeSinceLastFrame;
      }
      if(woundRecoveryTimer>0)return;
      woundRecoveryTimer += 0.100;
See the timer? that is how fast it goes down, mine was at a solid number like:


Code:
woundRecoveryTimer += 300;

but then changed it to:

Code:
woundRecoveryTimer += 0.100;

worked like a charm Smile and you increase the timer number if you want it to go faster
Back to top Go down
Vιrus
Very Helpful
Very Helpful
avatar

Game username : Virus
Server : Miskai
Female Posts : 486
Join date : 2014-09-05
Age : 17
Location : deep in an existential crisis

PostSubject: Re: Cannot revive?   Sun Mar 22, 2015 1:47 am

Thanks friend, but I suppose that isn't the resolution, as I'm still having the problem occur apparently.
Back to top Go down
GlaciaTheWolf
®
®
avatar

Game username : Glacia, GlaciaIceWolf, GlaciaTheWolf
Server : Canis lupus (Owner/creator) DD (member)
Female Posts : 977
Join date : 2013-12-09
Age : 21
Location : Ohio

PostSubject: Re: Cannot revive?   Sun Mar 22, 2015 2:30 am

Hmm..If it isn't the timer idk what it can be...what did you edit hat may effected it?
Back to top Go down
Vιrus
Very Helpful
Very Helpful
avatar

Game username : Virus
Server : Miskai
Female Posts : 486
Join date : 2014-09-05
Age : 17
Location : deep in an existential crisis

PostSubject: Re: Cannot revive?   Sun Mar 22, 2015 3:49 am

I didn't edit much; of course, I added things in, but never toyed with the main files at all, other than the solution which I doubt has anything to do with it.
I found this problem out at the very start, but never addressed it until now since I had to prioritize.
Back to top Go down
GlaciaTheWolf
®
®
avatar

Game username : Glacia, GlaciaIceWolf, GlaciaTheWolf
Server : Canis lupus (Owner/creator) DD (member)
Female Posts : 977
Join date : 2013-12-09
Age : 21
Location : Ohio

PostSubject: Re: Cannot revive?   Sun Mar 22, 2015 5:09 am

Let me see your codes of the ones i posted. the:

Code:
      //Recover from wound
      if(woundRecoveryTimer>0)
      {
        Real rate = 1;
        if(isSitting()||isLaying()||isSideLaying())rate = 25;
        if(isRolledOver()||isPlopped()||isLeaning()||isCurled())rate = 50;
        if(isInWater)rate *= 2;
        woundRecoveryTimer -= rate*evt.timeSinceLastFrame;
      }
      if(woundRecoveryTimer>0)return;
      woundRecoveryTimer += 0.100;
Back to top Go down
andeton

avatar

Posts : 3
Join date : 2015-06-20

PostSubject: Re: Cannot revive?   Thu Jul 02, 2015 5:38 pm

where is the code?
Back to top Go down
chikabom112

avatar

Posts : 1
Join date : 2015-06-27

PostSubject: Re: Cannot revive?   Mon Jul 06, 2015 3:16 am

Back to top Go down
KyenTheDragon

avatar

Game username : Kyen
Server : Kybrid Pawz
Posts : 43
Join date : 2015-09-06
Location : Puerto Rico

PostSubject: Re: Cannot revive?   Thu Jun 30, 2016 8:11 pm

Where i have to put the code?
Back to top Go down
Witacha
3D Modeler
3D Modeler
avatar

Game username : Witacha
Server : Land Of The Wolves(Owner)
Female Posts : 1198
Join date : 2012-06-15
Age : 18
Location : France

PostSubject: Re: Cannot revive?   Thu Jun 30, 2016 8:20 pm

CTRL+F to search a code
Back to top Go down
http://witacha-asukata.deviantart.com/
Hyper
Admin
avatar

Game username : Hyper
Server : Azoptaos
Male Posts : 483
Join date : 2014-02-09
Age : 19

PostSubject: Re: Cannot revive?   Thu Jun 30, 2016 8:42 pm

Hyper wrote:
Thank you nakti. Didn't find that exact code but it pointed me to the difference between 5.5 and 6.0

hp = (short)(ratio*maxHP) in Player and Living's HP functions

Changed it to hp = ratio*maxHP as it was in the old source. It garners data loss warnings, but it works :B

________________________________
Back to top Go down
http://azoptaos.boards.net/
 
Cannot revive?
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Keeping I.T. Open :: SUPPORT :: Support-
Jump to: