Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tower link placement mistakes #445

Open
sparr opened this issue Sep 24, 2017 · 7 comments · May be fixed by #451
Open

tower link placement mistakes #445

sparr opened this issue Sep 24, 2017 · 7 comments · May be fixed by #451

Comments

@sparr
Copy link
Contributor

sparr commented Sep 24, 2017


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

@sparr
Copy link
Contributor Author

sparr commented Sep 25, 2017

@TooAngel
Copy link
Owner

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.

@sparr
Copy link
Contributor Author

sparr commented Sep 25, 2017

@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.

@TooAngel
Copy link
Owner

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 ;-)

@sparr
Copy link
Contributor Author

sparr commented Sep 25, 2017

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.

@TooAngel
Copy link
Owner

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.

@sparr
Copy link
Contributor Author

sparr commented Sep 28, 2017

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants