Changelog 2017-02-06

We introduced an exciting new major feature - RoomVisual API. Now you can draw simple shapes (lines, circles, rectangles, polygons, text labels) right at the game field in any room to debug your code and/or display arbitrary info. For example, you can visualize your creep path (using the new visualizePathStyle move option), plan your future structures placement, display debugging text messages including Unicode emoji, and many more. These visuals are visible only to you, and all API calls have no added CPU cost.

API Changelog

These features are supported in private server v2.3.0.

Have more questions? Submit a request

Comments

  • Amadox

    awesome! :O

  • TheJP

    Hei, new player here :)

    Looks great. Those new visual features seem to throw an error in the tutorial:

    [8:43:04 PM]

    TypeError: Cannot read property 'text' of undefined
    at Object.module.exports.loop:16:42
    at __mainLoop:1:15387
    at eval:2:4
    at Object.c.runCode:6:14122
    Game.spawns['Spawn1'].room.visual.text(
    ...)
    Edited by TheJP
  • shockfist

    A. this is fscking great!

    B. does the visuals not being saved to the Database mean that they will not be viewable in the room replay mode?

  • Avatar
    Artem from Screeps

    Looks great. Those new visual features seem to throw an error in the tutorial:

    This issue should have been fixed yesterday, please try to refresh your client.

    B. does the visuals not being saved to the Database mean that they will not be viewable in the room replay mode?

    Correct.

Powered by Zendesk