Comments (8)
Proposal: move most of the relevant code to RoomPosition.createFlag() and have Room.createFlag() call that, instead of vice versa?
from engine.
You cannot perform any operations on a room in which you have no visibility (creeps or structures).
from engine.
You can create flags in rooms without vision through the GUI, thus the reasoning why the code should perhaps be able to as well.
Currently your code has to create the flag in a room with vision and then move it to the room that has no vision on the next tick.
from engine.
from engine.
@TheRealMaxion I did not know about that trick. Thanks!
@ags131 RoomPosition.createFlag() sounds like a good idea. Any idea why it doesn't already exist?
from engine.
@sparr it exists but it uses the room object internally
from engine.
Any update? The inability to create flags in remote rooms is very annoying.
from engine.
@Strikeeaglechase Contribution to my PR may help move this along. I wasn't able to get it working before I stopped playing, but it was really close.
from engine.
Related Issues (20)
- Engine using newly deprecated method HOT 1
- Engine uses a *slightly* older version of lodash than the rest of Screeps HOT 1
- Spawn.spawning.setDirections() unable to change number of directions HOT 6
- TypeScript?
- Unclaim doesn't remove room from user's list of rooms HOT 1
- inactive orders (amount = 0) have wrong price
- Spawning not being set to null after spawning HOT 2
- RoomPosition.findClosestByPath ignores range option - always uses range 1
- [Optimization] processor/roads/tick HOT 1
- Creep.prototype.attackController wastes CPU using _getActiveBodyparts
- creep.moveTo calculates new Path when creep fatigued and reusePath and visualizePathStyle is used HOT 1
- How to debug VMs
- Upgrade to Latest Node Versions HOT 2
- Destroying structure by invoking `Structure#destroy` is not logged by `Room#getEventLog`
- Refactor recommendation for Structure.isActive
- Increase creep.say character limit
- Request: Remove minimum resource amount for StructureTerminal.send() HOT 4
- RoomPosition#createConstructionSite needs supports for name parameter HOT 2
- Construction site removal broken, completely locking up rooms on IVM private servers. HOT 2
- Creep.moveTo tries to path through walls where there is no room exit HOT 1
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 engine.