@Fgura: Thanks a lot for your advice. However, I tried and it did not work for me. I guess the reason is that because I am logging out because of Input limit?
@Fgura: Thanks a lot for your advice. However, I tried and it did not work for me. I guess the reason is that because I am logging out because of Input limit?
Same here. I tried to set the xEventLogout() function when it reaches input limit but didn't work. I think the reason is xEventLogout() and xLocate only works well if it detects haLogout() called in my script.
I hope ChuiChu will fix it because it works in HA41 perfectly.
Last edited by Fgura; 07-29-2013 at 03:39 PM.
Hmm, if I do
item = xGetSearchItem(1, true)
xMessage (item.name)
I get a black space because it doesn't read the item's name.
If I do
item = xGetSearchItem(1)
xMessage (item.name)
It works.
Is there something I'm missing?
Oh I'm an idiot, just read the api.doc. You use the fast paramter only if you don't want to display the object, if you know the item is a sure buyout. Nice one. Now go search for those 190/6/8(because you cant select 9 nor look at the stats) Mempos
![]()
re: fast parameter
it skips reading the tooltip so that information will not exist in the item object. some info is still read such as all auction related stuff (bid, xtime, etc) and dps (since thats ready from the list ui not tooltip). i can read the name from there as well if its important... but i dont think anyone using this care about item name
try running LogSearch(true) instead of LogSearch() to see difference (i added fast parameter to that which is passed on to xGetSearchItem())
re: relogin problems
it sounds like the relogin issue is now just limited to sitting at lobby after relogin. to help me debug this one for your case by changing Core/Events.lua to the following:
and let me know what the popup # is when the issue occurs. if it happens to succeed because of this change you probably need to add a xSleep() in the place of xMessage(2). if you happen see a 4 then xReset is broken.Code:-- These are called when stuff happens. Edit as needed. -- globals event_login_delay = 0 -- A logout has occurred function xEventLogout() xMessage(1) -- login loop while xLogin() == false do xSleep(event_login_delay) end -- locate AH xMessage(2) xLocate('auction') xMessage(3) -- reset old api state CoreOldReset() -- reset script xReset() xMessage(4) end
also note that
xLogout does not work like haLogout such that it doesnt trigger the logout event. this is intended to give you more manual control of the login process. you can simply call xEventLogout() directly after xLogout to duplicate the same effect (which is how haLogout is currently implemented: see Core/Old.lua:haLogout())
re: HA not exiting from process list. let me know if you always see this or just for a particular script.
updates i made for 48 so far:
- FIX: xLocate('lobby') now works from AH
- UPDATE: pausing the script will reallow mouse control of the D3 window
Last edited by ChuiChu; 07-29-2013 at 10:32 PM.
How many of my private 0day exploits did you use in this?
I'm coming for you ******s in court.
Be prepared for the most violent and satisfying butt ****ing that you have ever experienced in your life.
master Chui,
when will the v48 come out?
cuz I need... "UPDATE: pausing the script will reallow mouse control of the D3 window" so much![]()
I get popup 1#, 2#, 3# and stucks at the lobby screen and no more popups. (and HA icon changes to green) The problem exists only if I get input limit reached popup because I don't call haLogout() in my script.
EDIT: If I use haLogout() in my script I have to add this line to Events.Lua (and the bot works well). Without xSetLogin added I get the same result. (popup 3# and lobby screen)
Please notice xSetLogin added to Events.lua doesn't change anything if I get input limit reached popup.
function xEventLogout()
xSetLogin('xxxxxx','yyyyy')
Last edited by Fgura; 07-30-2013 at 05:29 AM.
@ChuiChu Thanks! But without the stats I can't do anythingI though you implemented another way to read the stats (that is besides the one from the packets)
So awesome you work so hard on the bot ChuiChu, really appreciated! I tested the new version for bugs, here's what I've got:
Relogin-issues:
- Bot is sometimes stuck at the login screen after 20+ minutes if vsync is off and fps is >150
Issues while searching:
- Bot sometimes "forgets" to write a stat if more than 3 stats as search criteria which makes the bot buyout unwanted items if vsync is off and fps >150
I used V47 only thing I added was login + password in main.lua. I used the SnipeBuyout script to test it. Logged in and out automaticly every 10th second for 1 hour to check the relogin sequence and used a search parameter for 4+ stats to see if it worked proper.
Hope you can use the bugreport if not I'll try to specify more
Last edited by CHandest; 07-30-2013 at 05:04 PM.
Read my ultimate guide on how to AH bot in the guide section here at ownedcore :-)
UPDATE: 48
thanks to the last few reports i narrowed down an issue where xLocate can lose track of where it is. hopefully this fixes the relogin issue folks have. note that ive been fixing this blindly since i cant get input limit to occur myself... and instead i tested with forced disconnect errors (have bot doing stuff, then disable that network adapter). notes:
- FIX: xLocate('lobby') now works from AH
- FIX: issue with xLocate() losing track of where it currently is
- UPDATE: pausing the script will reallow mouse control of the D3 window
- UPDATE: Bots.LogSearch: to also log a benchmark in seconds
@Chand
i tested with the following and it seemed to fill in the stats fine. or are you saying it doesnt include them in the search results?
just a reminder i have not tested with vsync off since i ran into timing issues with it in the past.Code:while true do xClearAllStats() xSetPrimary('armor') xSetStat(1,'dext',10) xSetStat(2,'stren',10) xSetStat(3,'vital',10) xSetStat(4,'intellig',10) xSetStat(5,'magic find',5) xSetStat(6,'gold find',5) xSleep(1000) end
see if adding xSleep(1) or even (0) between each xSetStat improves it. 0 just means forced thread context switch.
Last edited by ChuiChu; 07-30-2013 at 07:20 PM.
Hi Chuichu,
Thanks for the update. The relogin issue is fixed for me. I am going to test other new features later.
Edit: Oops, sorry, I was an idiot, I ran the old bot and I thought I was running the new one. The new bot now could open the AH after relogging but then it stopped there (HA icon turned green).
Last edited by RodeoRaider; 07-30-2013 at 09:23 PM.
Tested. Results:
I'm getting popup 1# 2# then 3# and the bot entering to the AH. But there isn't more popups and as RodeoRaider said it stopped work and waiting for input (maybe xReset() doesn't work correctly)
But I can solve this problem for myself.
@RodeoRaider: I don't know how your script works but if you add your own filters to your own Events.Lua you can force your script to continues work. This isn't the most perfect method, but it seems it's working well for me.
EDIT:
I have tested it for 3 hours. This version made it possible to I'm able to solve all my login issues. Thank you ChuiChu, great work!
Last edited by Fgura; 07-31-2013 at 10:43 AM.
V48:
Some of my bots are still stuck in the lobby
It didn't include them in the search results sometimes. It's better when using xSleep(500) between each XSetStat as you suggested but it occurs sometimes that the bot wont include one stat in the search result. Also tried with vsync on
EDIT: Nvm - works!
Last edited by CHandest; 08-01-2013 at 03:27 AM.
Read my ultimate guide on how to AH bot in the guide section here at ownedcore :-)