-
Notifications
You must be signed in to change notification settings - Fork 66
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
Can't create flag in room with no creeps in it. #24
Comments
You cannot perform any operations on a room in which you have no visibility (creeps or structures). |
You can create flags in rooms without vision through the GUI, thus the reasoning why the code should perhaps be able to as well. |
The intents allow for creating flags without vision, however, we can not
due to createFlag() only existing on the Room
objects.(RoomPosition.createFlag() would be an amazing fix for that)
…On Wed, Sep 27, 2017 at 6:30 PM TheRealMaxion ***@***.***> wrote:
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#24 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA93D9qIAHOsJI90vj0WvweBrTH6GD5Dks5smtqEgaJpZM4L-pxx>
.
|
@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? |
@sparr it exists but it uses the room object internally |
Proposal: move most of the relevant code to RoomPosition.createFlag() and have Room.createFlag() call that, instead of vice versa? |
Any update? The inability to create flags in remote rooms is very annoying. |
@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. |
Trying to create a flag using RoomPosition.createFlag in a room with no creeps in it fails.
Game console output:
Private server version is 2.3.0
The text was updated successfully, but these errors were encountered: