Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-20-2018, 08:59 PM
Figback65
Discordant
 
Join Date: Aug 2009
Location: 2131231231
Posts: 255
Default HP/END Regen Bug or Feature?

Hey all,

Having some issues and questions reguarding the default HP regen and endurance.

HP Regen, When you are in combat you get more than the default 2 hp per tick regen, it looks like its atleast 5hp regen and then also you can notice a 2 hp tick as well. This only happens in combat.

When you enter into combat your endurance regen drops.

and....

While sitting to regen hp, your hp regen scales up every minute after 1-2 minutes. At level 1 it goes from 2, 3, 6, 9, 12, 15, and stopped at 27. At level 50 it went above 100 and scaled by 8-16 per minute drasticly reducing the sit time for hp regen.

I did not see anything affect mana regen.

Latest build
RoF2
Character:RestRegenEnabled False

I played around with changing some ruleslike HPRegenMultiplier from 180 to 120 or other numbers and it didnt change anything.

Is it something in the client_mods.cpp around line 236 CalcHPRegen?

I would love to get rid of that combat boost hp regen and the sitting bug.

Thanks!
__________________
Reply With Quote
  #2  
Old 05-20-2018, 10:25 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,165
Default

HP/mana/end regens should match what the clients report when you have food (the UI actually lies about food/water having an affect, I wasn't getting 0 regen on live when I was starved and UI said I was getting 0) and you do not have a bard regen song on you (since the UI lies there too)

You can check with #showstats if the server matches the UI. (with the caveats above) if this isn't matching, there is something wrong. (there is also the possibility that the server and client's basedata do not match, you would have to make the client and server match in that case with export_client_files utility)
Reply With Quote
  #3  
Old 05-20-2018, 10:52 PM
Figback65
Discordant
 
Join Date: Aug 2009
Location: 2131231231
Posts: 255
Default

Exported and replaced base data and skills caps in client resources. Inventory Stats tab and#showstats both show exact same regen scaling every 1 minute on the dot.

I have food and water on. just a naked gnome warrior sitting all alone with no buffs. Also made a few more characters for testing purposes. All have the same situation.

I havent messed with any coding other than default bind locations. Rule value default is 1, zone is set to 1, all the regen stuff is valueset 1 defaults.

EDIT : Forgot to mention, that as soon as you stand up. It resets back to normal.

EDIT : Standing with attack on the regen matches inventory and #showstats and hp value is the same.
Standing, npc attacking me, attack on, regen value matches inventory and #showstats but actual hp total value is different.
and yes, i am hiting the update button on the #showstats window lol
Covering all bases here.

EDIT : And if you stay seated and let the hp regen multiply over at say level 1, while sitting, change your level with #level, the hp regen values and the total hp value between inventory window and #showstats gets all off sync.
__________________
Reply With Quote
  #4  
Old 05-21-2018, 01:31 AM
Nightrider84's Avatar
Nightrider84
Discordant
 
Join Date: Aug 2010
Location: Colorado
Posts: 410
Default

You might try this Character:SoDClientUseSoDHPManaEnd under rule_values it fixes alot of the hp regen issues with the new clients. I had to enable it to fix a couple of issues on my server.
__________________
__________________
Supernova - GM/Developer
"Secrets of Faydwer"
Reply With Quote
  #5  
Old 05-21-2018, 01:50 AM
GRUMPY
Discordant
 
Join Date: Oct 2016
Posts: 445
Default

Quote:
Originally Posted by Nightrider84 View Post
You might try this Character:SoDClientUseSoDHPManaEnd under rule_values it fixes alot of the hp regen issues with the new clients. I had to enable it to fix a couple of issues on my server.
I agree with Nightrider. I keep that enabled too, seems to help a lot.
Reply With Quote
  #6  
Old 05-21-2018, 08:29 AM
Figback65
Discordant
 
Join Date: Aug 2009
Location: 2131231231
Posts: 255
Default

Quote:
Originally Posted by GRUMPY View Post
I agree with Nightrider. I keep that enabled too, seems to help a lot.
Mine is already enabled by default. I will try to disable and see if it effects anything.
__________________
Reply With Quote
  #7  
Old 05-21-2018, 10:01 AM
Figback65
Discordant
 
Join Date: Aug 2009
Location: 2131231231
Posts: 255
Default

Changing Character:SoDClientUseSoDHPManaEnd did nothing so i put it back to true.

I also just built a fresh unmolested server, completely untouched binaries and database. updated via world.exe, ran server, logged in, made a character, NO gm status, hp regen still does same thing, after 1 minute it goes from 2 to 3, then 3 to 6, 9, 12, and so on lol
__________________
Reply With Quote
  #8  
Old 05-21-2018, 10:59 AM
Thalix's Avatar
Thalix
Sarnak
 
Join Date: Sep 2016
Posts: 91
Default

Can't repro this. Fresh install, Ubuntu, RoF2, default Ruleset. Works perfectly.
Reply With Quote
  #9  
Old 05-21-2018, 11:41 AM
Figback65
Discordant
 
Join Date: Aug 2009
Location: 2131231231
Posts: 255
Default

Quote:
Originally Posted by Thalix View Post
Can't repro this. Fresh install, Ubuntu, RoF2, default Ruleset. Works perfectly.
So when you sit down and stay sitting for about 5 minutes, your hp regen under the stats tab and the #showstats doesnt keep going up?
I am also not on linux though, using win10 and the x86 build
__________________
Reply With Quote
  #10  
Old 05-21-2018, 12:11 PM
Figback65
Discordant
 
Join Date: Aug 2009
Location: 2131231231
Posts: 255
Default

Ok next i tried a fresh copy of RoF2, still did the same thing. Although my version of RoF2 is from ez.wiki. So I used the fresh RoF2 and logged into EZserver and it does it there also. Made a lvl 1, sat down, hp regen went from 2,3,6,9,12, etc.

EDIT : Just the RoF2 download, NOT the custom file install.

EDIT : Also this is a compile build, not a windows installer. But if it happens to me on other servers......
__________________
Reply With Quote
  #11  
Old 05-23-2018, 09:28 PM
Figback65
Discordant
 
Join Date: Aug 2009
Location: 2131231231
Posts: 255
Default

Now have tried fresh copies of rof2, multiple different PCs, multiple servers. ALL do the same thing. I am really confused. Being on multiple servers shows its not my server/build and leads me to think its the client.

So to test futher, I logged in 2 accounts and did show stats on the other and watched the hp regen rise every minute through #showstats. to cancel out the client lying to me directly but it shows it client to client.

I don't get it, I cant believe I am the only person that has this issue with all the variables being covered.
__________________
Reply With Quote
  #12  
Old 05-23-2018, 09:33 PM
Figback65
Discordant
 
Join Date: Aug 2009
Location: 2131231231
Posts: 255
Default



https://1drv.ms/u/s!AlyrODn6uFfmjpF_SpC_NFzDlHqpxA

after afk sitting about 7 minutes
__________________
Reply With Quote
  #13  
Old 05-24-2018, 05:53 PM
Nightrider84's Avatar
Nightrider84
Discordant
 
Join Date: Aug 2010
Location: Colorado
Posts: 410
Default

Maybe it has something to do with rested hp regen? only thing I can think of instead of stopping at point X it keeps going on to infinity lol. Game might think you sitting and resting all the time or something.

Edit:1 So I think whats going on is there isn't really a standard Regen stat anymore. Its basically combat regen all the time. So what happens is you have a base regen of lets say 11 and you have 4000 hp's and your down to 500. What the game does is it increases it in small doses to help you regen back to your full health.
So the longer it takes to get to full health the more regen you get. I remember them introducing that early on into a few expansions because people were literally "warriors" sitting for FOREVER to get their hp back without a healer or bandages. You should notice as soon as you move your regen stat drops back to default.

Edit:2 So I just tested this on a 12 frog necro, And my base hp regen was 11 and it increased to 15,20,26 ect over time. So its increasing "based on my characters regen" by 1 point every minute or so.
__________________
__________________
Supernova - GM/Developer
"Secrets of Faydwer"
Reply With Quote
  #14  
Old 05-24-2018, 11:30 PM
Figback65
Discordant
 
Join Date: Aug 2009
Location: 2131231231
Posts: 255
Default

Sweet, im glad im not alone and its actually something in the game and nobody knew? lol Question now is how to turn that feature off. Glad it isnt a bug. I just want base hp regen all the time like classic. I tried messing around with the function regenhp but no success yet, it keeps going up in increments.

Code:
if (IsSitting()) {
		if (level >= 50) {
			base++;
			if (level >= 65)
				base++;
		}

		if ((Timer::GetCurrentTime() - tmSitting) > 60000) {
			if (!IsAffectedByBuffByGlobalGroup(GlobalGroup::Lich)) {
				auto tic_diff = std::min((Timer::GetCurrentTime() - tmSitting) / 60000, static_cast<uint32>(9));
				if (tic_diff != 1) { // starts at 2 minutes
					int tic_bonus = tic_diff * 1.5 * base; // default is * 1.5 *
					if (m_pp.InnateSkills[InnateRegen] != InnateDisabled)
						tic_bonus = tic_bonus * 1.2;
					base = tic_bonus;
					skip_innate = true;
				} else if (m_pp.InnateSkills[InnateRegen] == InnateDisabled) { // no innate regen gets first tick
					int tic_bonus = base * 1.5;
					base = tic_bonus;
				}
			}
		}
	}
__________________
Reply With Quote
  #15  
Old 05-25-2018, 02:20 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,165
Default

The client doesn't have anyway to turn this off, so I didn't bother including a way to turn it off. If you don't want the sit bonus then you will have to either write up a way to disable it with a rule and submit a PR or just edit the code out. (This feature was added some time during GoD)

There is no way to make the client sync up with the server if you remove this feature, the client will always lie.
Reply With Quote
Reply

Thread Tools
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 -4. The time now is 02:57 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3