Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bots

Development::Bots Forum for bots.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-14-2014, 05:02 PM
akathanam
Fire Beetle
 
Join Date: Feb 2014
Posts: 3
Default Yet another Bot problem

Lately, my bots stop attacking mobs. (Casters still cast spells, it is just the melee ones that do). My (uneducated) guess it happened after one of the commits which changed int to int32, as the HP (and MP, sometimes Haste) of newly created bots show a large, negative number.

That is with the latest git pull, and latest (freshly created) database with patches.

Reverting to the last commit before the int/int32 change (https://github.com/EQEmu/Server/comm...ded967d3ccb1a0) fixes that problem.
Reply With Quote
  #2  
Old 11-14-2014, 05:20 PM
Burningsoul
Discordant
 
Join Date: Oct 2009
Posts: 312
Default

As has been stated numerous times by Akka the last few weeks, bots are FUBAR'd right now. Best to hang with an old version if you want botly goodness for the time being.
Reply With Quote
  #3  
Old 11-15-2014, 12:03 AM
Furniture
Hill Giant
 
Join Date: Aug 2012
Posts: 205
Default

I created a fresh server with bots recently and wasnt aware that they were broken so when i came across my bots having 700K hp, i went and fixed it in my code. Ill post it here if anyone wants it, as well as post more fixes if there are more problems with bots.

Note: I dont use the SoD client so i omitted the SoD client hp rules completely.

Code:
int32 Bot::GenerateBaseHitPoints()
{
	// Calc Base Hit Points
	int new_base_hp = 0;
	uint32 lm = GetClassLevelFactor();
	uint32 Post255;

	if ((GetSTA() - 255) / 2 > 0)
		Post255 = (GetSTA() - 255) / 2;
	else
		Post255 = 0;

	new_base_hp = (5) + (GetLevel()*lm / 10) + (((GetSTA() - Post255)*GetLevel()*lm / 3000)) + ((Post255*GetLevel())*lm / 6000);
	return new_base_hp;
}
this gives bots same hp as a player of that lvl/class in titanium, when i have some time and bots arent fixed yet ill post my fixes as i do them
Reply With Quote
  #4  
Old 11-19-2014, 09:02 PM
ionhsmith
Discordant
 
Join Date: Jun 2014
Posts: 284
Default

I run my server with bots ... for the most part they do what they are suppose to ... I really like playing with them especially on a lower player base server... I wish they were 100% because raiding with them would be a fun idea... I tried to start a raid group with them to see what happens but they will not group and show up in the raid ... If there is anyway to fix them I would be happy to help.
Reply With Quote
  #5  
Old 12-25-2014, 01:40 PM
werebat's Avatar
werebat
Hill Giant
 
Join Date: Oct 2010
Posts: 143
Default

Yeah, my bots HP is -629928384. She is a caster and heals and buffs like she is supposed to, but dies on the first hit. I did notice that her STR is 1. Maybe that is related?
Reply With Quote
  #6  
Old 12-25-2014, 07:02 PM
atrayas
Hill Giant
 
Join Date: Jun 2010
Posts: 105
Default

Iv'e noticed as well that when a melee bot gets slowed or if it dies and is respawned, that they attack like they have 0 delay. It is quite insane lol.
Reply With Quote
  #7  
Old 12-26-2014, 02:54 PM
werebat's Avatar
werebat
Hill Giant
 
Join Date: Oct 2010
Posts: 143
Default

After more testing on latest build from this morning 12/26/14, it appears the bot HP is still messed up as above. Also the merc heal spells are not working properly. For mercs they are healing 0 hp, you see the spell effect on the character, but the HP bar does not move. All probably related to the int32 change.
Reply With Quote
  #8  
Old 01-04-2015, 05:37 PM
ionhsmith
Discordant
 
Join Date: Jun 2014
Posts: 284
Default

I just did latest build and Enchanter bot despawns soon as you start attacking something ... so i made a ranger bot and it doesnt attack ... I wish i knew how to fix them because they are a great asset to low volume servers.
Reply With Quote
  #9  
Old 01-05-2015, 10:36 AM
zeldik's Avatar
zeldik
Sarnak
 
Join Date: Feb 2009
Location: London,Ky
Posts: 46
Default

yeah ive had problems as well seems only mages and clerics working for me berzerker,monk,and other melee just stand there and do nothing havent tested any others lately.
Reply With Quote
  #10  
Old 01-07-2015, 01:41 AM
Riklin
Hill Giant
 
Join Date: May 2003
Location: Tacoma, WA
Posts: 220
Default

I am also having merc issues on HallsHavoc. Sometimes when you load or zone, the stances disappear and the merc stops doing anything. The only ways I have found to fix it are to either dismiss the merc and get another, or to suspend the merc, wait for the time to stop then zone then bring up the merc and pray. This is readily repeatable...

Rick
Reply With Quote
  #11  
Old 01-10-2015, 11:14 AM
werebat's Avatar
werebat
Hill Giant
 
Join Date: Oct 2010
Posts: 143
Default

As of latest build yesterday, I too can confirm what Riklin stated. Just suspend and unsuspend to get them active again.
Reply With Quote
  #12  
Old 01-21-2015, 09:26 AM
werebat's Avatar
werebat
Hill Giant
 
Join Date: Oct 2010
Posts: 143
Default

As of yesterdays build, the bot STR issue is resolved. In previous builds, bots had an STR of 1 but now its back to normal. The HP problem still exists. So there is some progress.
Reply With Quote
  #13  
Old 01-24-2015, 04:54 PM
dfusion111
Fire Beetle
 
Join Date: Jun 2010
Posts: 15
Default

The code Furniture provided fixed the melee bots not attacking issue. However it needs 1 extra line to fix some other problems with the bots base_hp, the modified complete working function is here: in bot.cpp replace>
Code:
int32 Bot::GenerateBaseHitPoints()
{
	// Calc Base Hit Points
	int new_base_hp = 0;
	uint32 lm = GetClassLevelFactor();
	uint32 Post255;

	if ((GetSTA() - 255) / 2 > 0)
		Post255 = (GetSTA() - 255) / 2;
	else
		Post255 = 0;

	new_base_hp = (5) + (GetLevel()*lm / 10) + (((GetSTA() - Post255)*GetLevel()*lm / 3000)) + ((Post255*GetLevel())*lm / 6000);

	this->base_hp = new_base_hp;

	return new_base_hp;
}
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 -4. The time now is 02:21 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