Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. Portpoise
    3. Topics
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    Topics created by Portpoise

    • ID of object in inspector
      General Discussion • • Portpoise

      2
      2
      Posts
      3085
      Views

      Indeed, very nice!
    • Creeps have conflicting names
      Technical Issues and Bugs • • Portpoise

      1
      1
      Posts
      2594
      Views

      No one has replied

    • Custom memory inspector widget(s)
      Feature Requests • • Portpoise

      4
      4
      Posts
      5543
      Views

      oh god, yes. I meant to suggest something similar! This would be so nice...  though I'd go for this to add a nice label as well:   Game.inspectors = { "creep": { "role": "Current <b>Role</b>", "foo": "<i>Bar</i>" }, "spawn": { "foo": '<span style="color:red">Bar</span>' }] This way we can make it fancy ourselves. Even better might be:   Game.inspectors = { "creep": [ { value: "role", prefix: '<span style="color:green">', suffix: '</span>', label: "Current <b>Role</b>" }, ... ], "spawn": [ ... ]]
    • Separate "code spaces"
      Feature Requests • • Portpoise

      5
      5
      Posts
      5974
      Views

      UPDATE: This has been implemented as per this post: http://support.screeps.com/hc/en-us/articles/203852251-New-feature-code-branches?page=1#comment_200263891 Thanks Screeps Team! You guys rock!
    • Tear-off button should be disabled when there are unsaved changes
      Technical Issues and Bugs • • Portpoise

      1
      1
      Posts
      2574
      Views

      No one has replied

    • creep.harvest fails when used with Source from memory
      Technical Issues and Bugs • • Portpoise

      2
      2
      Posts
      5077
      Views

      This happens because you can only store JSON data in Memory. Live game objects can not be stored directly. Instead, you should store their id and retrieve the game object using Game.getObjectById method: function do_harvester(creep) { var sources = creep.room.find(FIND_SOURCES); if (creep.memory.sourceId === undefined) { creep.memory.sourceId = sources[0].id; return; } var source = Game.getObjectById(creep.memory.sourceId); if(creep.energy < creep.energyCapacity) { creep.moveTo(source); creep.harvest(source); } }
    • Overview screen - Exiting should return you to where you started from
      Technical Issues and Bugs • • Portpoise

      1
      1
      Posts
      2747
      Views

      No one has replied

    • First Time Use - Choosing your location
      Technical Issues and Bugs • • Portpoise

      3
      3
      Posts
      6054
      Views

      When I first started, I found a sweet room, that I really wanted, but placing the spawn failed quietly - inspecting the game comms revealed the actual error - this was one of the "closed" rooms - dimmed on the world map. So the error code is actually available, for those who want to know what happened, it's just not displayed in the UI.