screeps icon indicating copy to clipboard operation
screeps copied to clipboard

some issue with distance to rooms not being counted from all owned rooms?

Open Somotaw opened this issue 8 years ago • 5 comments

[22:36:01]16591357 W29N78 scoutnextroom-819 [room W29N78 pos 8,49] claim

I own room W29N77 and I set config.nextRoom.minNewRoomDistance = 2;

Somotaw avatar Jan 07 '17 22:01 Somotaw

I had the issue that only single source rooms were claimed. My gut feeling is that the creeps enters a hostile controlled room, but sets somehow the 'memory.claimRoom'. But moves back to the previous room and starts claiming. To validate the thesis we could set claiming to the roomName instead of true and check.

TooAngel avatar Jan 07 '17 22:01 TooAngel

I will check this, but im also suggesting making the room check if there are any rooms at minNewRoomDistance+value accessible and test those for claim before spawning a scoutnextroom. Still need to fix this though :)

Somotaw avatar Jan 08 '17 01:01 Somotaw

TL;DR I like the idea, much better than sending out scoutnextroom from each room.

I think this goes hand in hand with https://github.com/TooAngel/screeps/issues/88#issuecomment-270766474

So store in memory (room cache) a list of source IDs. In combination with the room state we can decide for a good new room to claim: `_filter(Memory.rooms, {return 2 sources && state.in(reservered, unreserved) && far away from existing room}.

Later on we could even rate the rooms based on the mineral available.

TooAngel avatar Jan 08 '17 09:01 TooAngel

Yes. Combining the two sounds perfect. We can have the regular scouting do the groundwork :)

Somotaw avatar Jan 08 '17 09:01 Somotaw

hehe just need to fix regular scouting first... #120

Somotaw avatar Jan 12 '17 21:01 Somotaw