All flags in specific room became invisible



  • ...after creating and moving flag by script.

    I called this func for room with no vision.

    var createFlagAt = function(flagName, color1, color2, roomName) {
        for(let name in Game.rooms) {
            Game.flags[Game.rooms[name].createFlag(25, 25, flagName, color1, color2)].setPosition(new RoomPosition(25, 25, roomName));
            break;
        }
    }



  • No idea on dev response but a work around would be to check if:

    if(Game.rooms[roomName] != null)

    before executing this code and it will only run if you have sight on the room.



  • I need this func work in room without vision. Its the only way of placing flags in such rooms.

     

    About the bug: by invisible i mean that i dont see them visually in room, but they'r still here.


  • Dev Team

    Are you sure they are enabled in the room display preferences? Were there any errors in the browser console when you open this room?



  • "Are you sure they are enabled in the room display preferences?"

    Yes.

    "Were there any errors in the browser console when you open this room?"

    I don't know cause I'm using steam client. I can try to reproduce this in browser later.