Find the owner of a room
-
I'm using the market but I have some trouble to find who is behind an offer.
In using market.getAllOrders(), we know for each offer the "roomName" of the offer, but not the owner.
I wouldn't deliver boosts to my ennemies!
In the same way, I would like to emphasize my allies.
Is there a way to know the owner of a room with a "roomName"?
-
The only way I find to do this, is to use the map, and fill an array with all rooms with the owner, but I wouldn't ask a day off to fill this array...
And good luck to keep it up to date.
-
Well for rooms in a radius of 10 you could use your observer structure before dealing. For far away enemies a blacklist could probably work, hopefully it's not a day off to fill the blacklist.
Nice looking badge btw
-
Oh I didn't think to the observer structure! Great idea, thanks you!
But I think it could be a great improvement to know the owner of an offer on the market.
(Yeaah nice badge xD)
-
Andhard: The room data can be downloaded here: http://www.leagueofautomatednations.com/map/rooms.js . It's updated daily. And if you haven't seen it yet, I'd recommend to check out http://www.leagueofautomatednations.com/map :-).
-
It updates every six hours now. If you do use it I highly recommend stripping it down though, as there's a lot of data in there you aren't going to care about and it'll just waste space and cpu for parsing.
-
Thanks you very much, I didn't know this website and it seems really usefull. However, I think that the observer should be enough for me.
-
Even if the workaround with the observer works, I suggested to add the owner of an offer : http://screeps.com/forum/topic/564/-Market-Know-the-owner-of-an-offer
It should be an easy improvement, and easier to find the owner of an offer.