HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
The domain www.kitopen.com will expire on 2018-08-17. Update your bookmarks to point at http://kito.forumotion.com/
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 Can't Cure/Regenerate Health

Go down 
AuthorMessage
AngelicFeather

avatar

Server : eh I'm not sure at this point
Female Posts : 59
Join date : 2016-03-28
Location : In a place.

PostSubject: Can't Cure/Regenerate Health   Tue May 22, 2018 12:33 am

I've looked around but nothing has worked so far. I know this has been posted already, but nothing has worked, so I figured it was okay to make my own since the topics are a couple years old or so.

Code:
//Recover from wound
 if (woundRecoveryTimer>0.100)
 {
 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;
 //Recovered
 if (addHP(-1))setWounded(false);

Please let me know if I need to change anything.
Back to top Go down
Prince Arcren

avatar

Server : Guardians Fate <Developer>
Male Posts : 19
Join date : 2018-05-10
Location : Raging in Space

PostSubject: Re: Can't Cure/Regenerate Health   Tue May 22, 2018 9:17 am

Which version of source code are ya usin? 5.5 or 6.0?
Try check out these topics,they might be older,but I hope they will help!


http://www.kitopen.com/t3159-cannot-revive?highlight=Unable+to+revive
http://www.kitopen.com/t3212-health-bar-doesn-t-load

6.0 source code -> Fourth problem

http://www.kitopen.com/t3467-a-few-problem-with-the-new-version-6-0-solved
Back to top Go down
AngelicFeather

avatar

Server : eh I'm not sure at this point
Female Posts : 59
Join date : 2016-03-28
Location : In a place.

PostSubject: Re: Can't Cure/Regenerate Health   Tue May 22, 2018 11:31 am

Prince Arcren wrote:
Which version of source code are ya usin? 5.5 or 6.0?
Try check out these topics,they might be older,but I hope they will help!


http://www.kitopen.com/t3159-cannot-revive?highlight=Unable+to+revive
http://www.kitopen.com/t3212-health-bar-doesn-t-load

6.0 source code -> Fourth problem

http://www.kitopen.com/t3467-a-few-problem-with-the-new-version-6-0-solved

I'm using 6, but I've tried all these earlier and it's not working.
Back to top Go down
Prince Arcren

avatar

Server : Guardians Fate <Developer>
Male Posts : 19
Join date : 2018-05-10
Location : Raging in Space

PostSubject: Re: Can't Cure/Regenerate Health   Wed May 23, 2018 10:15 am

Try to change this


Code:
if (woundRecoveryTimer>0.100)


to this


Code:
if(woundRecoveryTimer>0)


and this one


Code:
if (woundRecoveryTimer>0)return;
 woundRecoveryTimer += 0.100;
 //Recovered
 if (addHP(-1))setWounded(false);


to this one


Code:
if(woundRecoveryTimer>0)return;
 woundRecoveryTimer += 10;
 //Recovered
 if(addHPRatio(-0.001))setWounded(false);
Back to top Go down
AngelicFeather

avatar

Server : eh I'm not sure at this point
Female Posts : 59
Join date : 2016-03-28
Location : In a place.

PostSubject: Re: Can't Cure/Regenerate Health   Thu May 24, 2018 1:48 am

Prince Arcren wrote:
Try to change this


Code:
if (woundRecoveryTimer>0.100)


to this


Code:
if(woundRecoveryTimer>0)


and this one


Code:
if (woundRecoveryTimer>0)return;
 woundRecoveryTimer += 0.100;
 //Recovered
 if (addHP(-1))setWounded(false);


to this one


Code:
if(woundRecoveryTimer>0)return;
 woundRecoveryTimer += 10;
 //Recovered
 if(addHPRatio(-0.001))setWounded(false);

Still not working. If it helps, when I rebuilt the solution, I got some errors:

Code:
Error 28 error C2146: syntax error : missing ';' before identifier 'maxHPChanged' C:\KITO-6.0\src\client\src\MagixPlayer.cpp 560 1 game

Error 30 error C2146: syntax error : missing ';' before identifier 'hpChanged' C:\KITO-6.0\src\client\src\MagixPlayer.cpp 565 1 game

 33 IntelliSense: expected a ';' c:\KITO-6.0\src\client\src\MagixPlayer.cpp 560 2 game

 34 IntelliSense: expected a ';' c:\KITO-6.0\src\client\src\MagixPlayer.cpp 565 2 game

Edit: Looked at the errors and changed some things and now there are no errors during recompiling, but still no health regeneration.
Back to top Go down
Prince Arcren

avatar

Server : Guardians Fate <Developer>
Male Posts : 19
Join date : 2018-05-10
Location : Raging in Space

PostSubject: Re: Can't Cure/Regenerate Health   Wed May 30, 2018 7:20 pm

It seems like you are missing couple ; on the places where you changed the code.
Try this code below,and use it in place of your code,don't forget to re-build it.


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 += 10;
 //Recovered
 if (addHPRatio(-0.001))setWounded(false);
}
Back to top Go down
AngelicFeather

avatar

Server : eh I'm not sure at this point
Female Posts : 59
Join date : 2016-03-28
Location : In a place.

PostSubject: Re: Can't Cure/Regenerate Health   Fri Jun 01, 2018 12:19 pm

I rebuilt after replacing the code and went in game but still nothing.

I also tested a new character and was able to cure just fine, but once I fainted, that was it.
Back to top Go down
Sponsored content




PostSubject: Re: Can't Cure/Regenerate Health   

Back to top Go down
 
Can't Cure/Regenerate Health
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: