screeps icon indicating copy to clipboard operation
screeps copied to clipboard

tower link placement mistakes

Open sparr opened this issue 8 years ago • 7 comments

two example so far. I'll try to debug the code when I get a base far enough to build links.

sparr avatar Sep 24 '17 06:09 sparr

sparr avatar Sep 25 '17 07:09 sparr

I guess you got the idea.

Anyway will explain the basic idea :-): Having links close to the entrances, so that carries from external rooms can drop energy into the links. Next to the link have a position for a towerfiller and next to that one the tower. link and tower should be adjacent to the path so that carries drop energy in both. When under attack a towerfiller should be spawn for each towerfiller position, transferring energy between link and tower. The filler creep at the storage starts to transfer energy from the storage to the link at that link starts to send energy to others.

TooAngel avatar Sep 25 '17 19:09 TooAngel

@TooAngel I understand the idea. The problem illustrated here is that the towerfiller (yellow "t") is being placed not-adjacent to the link (blue "Li") or the tower (blue "To") sometimes.

sparr avatar Sep 25 '17 20:09 sparr

Yes, agree, got it. Needs to be fixed :-) Good to have the issue ...

If you or someone else will look into it at some point, I just want to reference the base idea how it should have looked it. Fixing would be cool, improving the idea - even better ;-)

TooAngel avatar Sep 25 '17 20:09 TooAngel

Is it important to have one link and filler per tower? It seems like most layouts have two of the towers close together. Combining them to use one link and two fillers seems trivial. Using one link and one filler would be a little trickier, but not much.

sparr avatar Sep 25 '17 20:09 sparr

True, we could also do more tower.

Currently it iterates over all exit paths and places the combination on each. If there are less exits, we could extend the combination by more towers.

TooAngel avatar Sep 25 '17 20:09 TooAngel

https://github.com/TooAngel/screeps/blob/master/src/prototype_room_init.js#L192-L204

Problem is here. I'm going to re-work this.

sparr avatar Sep 28 '17 04:09 sparr