-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
The bot purchases large amounts of energy trying to fulfill a very high threshold #770
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The min energy is intentionally very high. Right now I'm planning on adding more nuance to resource targets and how they determine when to purchase vs when to just internally request. I don't expect this to be done until after Season 6. |
This comment has been minimized.
This comment has been minimized.
I am running this version myself. The lack of energy usage is likely due to a known logistics but that I have nearly resolved. As for credits usage, please consider using the disable market usage setting of the not is using more credits than you are comfortable with. One option to make this more pleasant might be to allow a setting for disabling market for certain resources. For example, you could disable market logic for energy and batteries but not minerals, boosts, commodities, etc. Would that address your concerns? If you want a more stable version of the bot, the main branch was recently updated and is fairly efficient Help would be appreciated. I'm more busy now with University, and my plans for terminal resource sharing isn't as defined and dynamic as I'd like. If you have ideas on how to design the system I'd appreciate them. As for the unclaiming rooms, that definitely sounds like a bug. Can you make a separate issue describing what happened, what version you were on and the set of room RCLs you had? Thanks |
This comment has been minimized.
This comment has been minimized.
Then understand it, or stop offering to help. |
The-International-Open-Source/src/room/commune/commune.ts
Line 1154 in a0b7b98
I think that min shouldn't be there. Inside the max function are 3 parameters. This is supposed to get the highest amount between those three values. "min" is set to the max capacity of our storage and terminal combined I think. So we are using the highest value out of those three "20% of store structures capacity", "something around RCL * 6000 + threat level calculated energy" and last "max capacity of our storage + terminal". The last one isn't supposed to be there I believe. Or you meant to use the "min" instead of "max" function here.
Room Examples:
https://screeps.com/a/#!/history/shard1/W56N59?t=50929000
https://screeps.com/a/#!/history/shard1/W57N59?t=50929000
Let me know if you need some more debug information. I think I pointed directly at the broken code. But if you need memory stuff, I can provide you with it.
The text was updated successfully, but these errors were encountered: