Bug after rev448
Bug after rev448
Hello, after the update of rev448 my bot wait's now after every fight for 85-93 seconds.
my HP Rest value:
<option name="HP_REST" value="20" />
<option name="MP_REST" value="20" />
also when it goes to the next waypoints it will pause until the HP is full
i also can not use rev 447, when i download it from http://code.google.com/p/rom-bot/source/list
the I got this error message: scripts\rom\bot.lua:5: //micromacro.../classes/player.lua:4:unexpected symbol near "<"
my HP Rest value:
<option name="HP_REST" value="20" />
<option name="MP_REST" value="20" />
also when it goes to the next waypoints it will pause until the HP is full
i also can not use rev 447, when i download it from http://code.google.com/p/rom-bot/source/list
the I got this error message: scripts\rom\bot.lua:5: //micromacro.../classes/player.lua:4:unexpected symbol near "<"
- Administrator
- Site Admin
- Posts: 5353
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Bug after rev448
Probably a bad update. Delete any bot.lua and the whole 'classes' folder, then run the update again.
Re: Bug after rev448
i still deleted all files and updated the complete bot with svn.
If I start the bot it begins with pause for xx seconds for manaregeneration, because it cast at the beginning enhanced armor an Holy Seal buff.
Then I had one fight and it paused for XX seconds for mana regeneration.
Update: I found another indicator. The bot paused directly after micromacro gives the massage stop waypoint, because another target has been found, then it paused for regeneration.
If I start the bot it begins with pause for xx seconds for manaregeneration, because it cast at the beginning enhanced armor an Holy Seal buff.
Then I had one fight and it paused for XX seconds for mana regeneration.
Update: I found another indicator. The bot paused directly after micromacro gives the massage stop waypoint, because another target has been found, then it paused for regeneration.
Last edited by Starrider on Sun May 30, 2010 2:17 pm, edited 1 time in total.
Re: Bug after rev448
Now that I've updated to 448 I noticed this problem too.
It says "Resting up to nn to fill up mana and HP." even though my health and mana are 100 percent.
nn is always a big number about 50-90 but only rests for about 5 seconds
It always follows "Stopping waypoint: Target acquired" type message and before it starts to attack.
It says "Resting up to nn to fill up mana and HP." even though my health and mana are 100 percent.
nn is always a big number about 50-90 but only rests for about 5 seconds
It always follows "Stopping waypoint: Target acquired" type message and before it starts to attack.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Bug after rev448
i added manually this code from the documentation in the player.lua where it was before the release and it works again.
fast fix for all:
open player.lua
search for
after add:
so the update rev448 is still buggy
fast fix for all:
open player.lua
search for
Code: Select all
local hf_hp_rest = (player.MaxHP * settings.profile.options.HP_REST / 100); -- rest if HP is lower thenCode: Select all
if( player.Mana >= hf_mana_rest and player.HP >= hf_hp_rest and
_resttype == 'full' ) then -- nothing to do
return; --go back
end;Re: Bug after rev448
Yep, this fix worked for me. Thanks.Starrider wrote:i added manually this code from the documentation in the player.lua where it was before the release and it works again.
fast fix for all:
open player.lua
search forafter add:Code: Select all
local hf_hp_rest = (player.MaxHP * settings.profile.options.HP_REST / 100); -- rest if HP is lower then
so the update rev448 is still buggyCode: Select all
if( player.Mana >= hf_mana_rest and player.HP >= hf_hp_rest and _resttype == 'full' ) then -- nothing to do return; --go back end;
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
- Administrator
- Site Admin
- Posts: 5353
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Bug after rev448
This should be fixed in r449. Revert the changes you've made (or just delete the file) and update again. Let me know how it works.
Re: Bug after rev448
Nope, still doesn't work. Does exactly the same thing.Administrator wrote:This should be fixed in r449. Revert the changes you've made (or just delete the file) and update again. Let me know how it works.
Do you realize that you are assigning values to hf_mana_rest and hf_hp_rest but don't use them anywhere in your code?
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
- Administrator
- Site Admin
- Posts: 5353
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Bug after rev448
The only change was to bot.lua. Specifically, this:
Don't know how I messed that up, but the '>'s should be '<'. Try that.
Code: Select all
if( player.Mana/player.MaxMana*100 >= settings.profile.options.MP_REST
and player.HP/player.MaxHP*100 >= settings.profile.options.HP_REST ) then
player:rest( 50, 99, "full", 10 ); -- rest befor next fight
end
Re: Bug after rev448
Seems to work correctly. I also changed the 'and' to an 'or' so the logic is correct.Administrator wrote:The only change was to bot.lua. Specifically, this:Don't know how I messed that up, but the '>'s should be '<'. Try that.Code: Select all
if( player.Mana/player.MaxMana*100 >= settings.profile.options.MP_REST and player.HP/player.MaxHP*100 >= settings.profile.options.HP_REST ) then player:rest( 50, 99, "full", 10 ); -- rest befor next fight end
The question remains, though, why do you assign values to 'hf_mana_rest' and 'hf_hp_rest' if you don't use them anywhere?
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
- Administrator
- Site Admin
- Posts: 5353
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Bug after rev448
I've changed the code some more to prevent problems with dividing by zero.
I didn't even check if those variables were used. I had assumed they were used even if the "full" option wasn't given. I'm actually not sure why that code was in the rest function.
Code: Select all
local manaRest, healthRest = false, false;
if( player.MaxMana > 0 ) then
manaRest = (player.Mana / player.MaxMana * 100) <= settings.profile.options.MP_REST;
end
healthRest = (player.HP / player.MaxHP * 100) <= settings.profile.options.HP_REST;
if( manaRest or healthRest ) then
player:rest( 50, 99, "full", 10 ); -- rest before next fight
endRe: Bug after rev448
new version or where I have to change this code now?
Re: Bug after rev448
I believe it hasn't been updated yet.Starrider wrote:new version or where I have to change this code now?
Find around line 464 of bot.lua
Code: Select all
if( player.Mana/player.MaxMana*100 >= settings.profile.options.MP_REST
and player.HP/player.MaxHP*100 >= settings.profile.options.HP_REST ) then
player:rest( 50, 99, "full", 10 ); -- rest befor next fight
endCode: Select all
local manaRest, healthRest = false, false;
if( player.MaxMana > 0 ) then
manaRest = (player.Mana / player.MaxMana * 100) <= settings.profile.options.MP_REST;
end
healthRest = (player.HP / player.MaxHP * 100) <= settings.profile.options.HP_REST;
if( manaRest or healthRest ) then
player:rest( 50, 99, "full", 10 ); -- rest before next fight
end- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
- Administrator
- Site Admin
- Posts: 5353
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Bug after rev448
Can you confirm this change to be working properly? Once you do, I'll commit the change.
Re: Bug after rev448
Yes, working for me.Administrator wrote:Can you confirm this change to be working properly? Once you do, I'll commit the change.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Bug after rev448
I can also confirm that this code works with the new player.lua for me