screeps
screeps copied to clipboard
tower link placement mistakes

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

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 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.
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 ;-)
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.
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.
https://github.com/TooAngel/screeps/blob/master/src/prototype_room_init.js#L192-L204
Problem is here. I'm going to re-work this.