What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

getAuctionBuyList returning a null List?

Phelon

Well-Known Member
Joined
Jan 15, 2010
Messages
2,591
Reaction score
134
I am getting a weird null error when I try to Count the number of the getAuctionBuyList. For some reason it is not letting me count it and it also contains no values. Anyone have any possible reason as to WHY this is happening? To give this in context: I am trying to scan the WHOLE of the auction house via AuctionCategory.



Code:
                    var req = new AuctionRequestParams(AuctionCategory.Off, 0, 0);
                    main.Log("AuctionRequestParams");
                    List<AuctionItem> items = main.getAuctionBuyList(req);
                    main.Log("Items: " + main.getAuctionBuyList(req).Count);
 
The same problem.
getAuctionBuyList returns nothing.
 
Maybe to much results, did you tried load on category after another ?
 
What doesn't work:
ArcheBuddy.Bot.Classes.AuctionRequestParams.AuctionRequestParams()
ArcheBuddy.Bot.Classes.AuctionRequestParams.AuctionRequestParams(ArcheBuddy.Bot.Classes.AuctionCategory)
ArcheBuddy.Bot.Classes.AuctionRequestParams.AuctionRequestParams(ArcheBuddy.Bot.Classes.AuctionCategory, ArcheBuddy.Bot.Classes.ItemGrade)
ArcheBuddy.Bot.Classes.AuctionRequestParams.AuctionRequestParams(ArcheBuddy.Bot.Classes.AuctionCategory, byte, byte)


What works:
ArcheBuddy.Bot.Classes.AuctionRequestParams.AuctionRequestParams(string, [bool])
ArcheBuddy.Bot.Classes.AuctionRequestParams.AuctionRequestParams(ArcheBuddy.Bot.Classes.AuctionCategory, byte, byte, string, bool, ArcheBuddy.Bot.Classes.ItemGrade, ArcheBuddy.Bot.Classes.AuctionSortType, ArcheBuddy.Bot.Classes.SortOrder)

I even made the string "a" and it worked and pulled 450 results (Which is what I am guessing the max is).
 
Last edited:
If getAuctionBuyList returns null - check GetLastError(). And post results here
 
ClearLogs();
Log("begin");
var searchString = "keyword";
var list = getAuctionBuyList(new AuctionRequestParams(searchString));
Log(list.Count.ToString());
list.ForEach(i => Log(i.sellerName));
Log("end: " + GetLastError());

Output:
Am I doing wrong?
 
I think I had that too once, I was right at the auctioneer and also had the house opened when I got a NullReferenceException with Lasterror: ComeToFailed
But I could not reproduce the error.
 
The result isn't null when the character is near the auctioneer npc.
Is it still necessary? The 1.2 client allows to use auction at any place.
 
The result isn't null when the character is near the auctioneer npc.
Is it still necessary? The 1.2 client allows to use auction at any place.
on RU? I dont see this ability on EU\NA
 
there's a server-side limit if you request data too often, I even get this with manual searches and sell auctions.

and some times the game just won't return any results ( it may be related to above), and re-logging fixes this issue.

@Phelon

I'm built something similar(it's only for farm related items), I feel it may be better if we have a central REST api somewhere for this and each player only updates certain items, it is too much for one account to update the entire auction house if that's what you are thinking about doing.
 
there's a server-side limit if you request data too often, I even get this with manual searches and sell auctions.

and some times the game just won't return any results ( it may be related to above), and re-logging fixes this issue.

@Phelon

I'm built something similar(it's only for farm related items), I feel it may be better if we have a central REST api somewhere for this and each player only updates certain items, it is too much for one account to update the entire auction house if that's what you are thinking about doing.

n2ation - That is exactly what I was thinking about doing. Scanning the whole auction house by category over the course of about an hour as to spread it out a bit and make it look less like someone smashing the AH for Data. I do like idea of using REST for a centralized data location, although there could be potential problems with too many people having access to it as too many hands in the cookie jar never works out. As for my abuse of the auctionhouse: I use 2 different scans. 1. is my Crawler which, as stated before, crawls the auction house gradually. 2. is for quick scans based on auctions that meet my criteria for purchasing or bidding.

What I need is the ability to search by auctiontype to make my auction crawler work which will be the missing piece in the whole situation.
 
I fixed it, problem with my code. Thanks Out!
 
Back
Top