Comments (1)
Here is what seems to work as a fix:
registerLogisticsRequests(colony) {
// Register logistics requests for all dropped resources and tombstones
for (let room of colony.rooms) {
// Pick up all nontrivial dropped resources
console.log("drops ALL:", JSON.stringify(room.drops,null,4) );
for (let dropIdx in room.drops) { // <--- Added new level of room.drops
for (let resourceType in room.drops[dropIdx]) {
try {
for (let drop of room.drops[dropIdx][resourceType]) {
if (drop.amount > LogisticsNetwork.settings.droppedEnergyThreshold
|| drop.resourceType != RESOURCE_ENERGY) {
colony.logisticsNetwork.requestOutput(drop);
console.log("process drop: ", JSON.stringify(drop.pos), drop.amount );
}
}
} catch (error) {
console.log("drops-error:", dropIdx, resourceType, error);
}
}
}
}
// Place a logistics request directive for every tombstone with non-empty store that isn't on a container
from overmind.
Related Issues (20)
- Missing Energy Trade History
- Colony tries to repeatedly expanded into owned room
- PowerMining Directive Exception HOT 3
- Problem Compiling HOT 8
- Critical, ignoring InviderCores in the outpost rooms
- Ruins in new Spawn room not being emptied HOT 1
- Move visualization CPU bucket checks to unobfuscated code HOT 2
- Upcoming deprecation: Game.map.isRoomAvailable causing console spam HOT 1
- Deprication of isRoomAvailable
- Low RCL issues
- Walls in neutral rooms
- Respawn/Newbie zone borders not respected
- creeps going back and forward between 2 route HOT 1
- fillers of "BootstrappingOverlord" get stuck at filled extension HOT 1
- Overmind is Trying to Colonize Reserved Room HOT 1
- Overmind not spawning transports to retrieve mined energy
- Overmind completes its own terminal orders
- Overmind not spawning melee defenders for colony defence
- Numerous errors in console
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from overmind.