Changelog 2020-03-24
-

This is a minor update containing the following features and improvements:
Added new method StructureLab.reverseReactionto "break down" boosts to their components
Added new method Game.map.getRoomStatusto determine if the room located in Novice or Respawn Area.
Game.map.isRoomAvailableis deprecated now.
Game.map.isRoomProtectedhas been removed since it's been deprecated a long time ago.
Implemented system.getTickDurationandsystem.setTickDurationCLI commands for community servers.
Added UI option to hide the link to Steam profile
Default tick duration for community servers has been reverted back to 1000 ms.
Changed StructureController.activateSafeModeso it does not work at the same tick withCreep.attackController.
Changed error codes of StructureNuker.launchNuke: now it returnsERR_INVALID_TARGETif either source room or target room is in a Novice or Respawn Area
Changed error codes of Room.createConstructionSite: now it returnsERR_NOT_OWNERif the room is owned or reserved by another player.
Changed Creep.upgradeControllerso that controller level-up happens on the same tick whenStructureController.ticksToDowngradebecomes full.
Changed pathfinding default value of heuristicWeightfrom 1 to 1.2 for better performance. This affectsPathFinder.search,Room.findPath,RoomPosition.findPathTo,Creep.moveTo,PowerCreep.moveTo.
Room.nameproperty is now immutable.
Changed behavior or NPC invaders, now they shouldn't attack structures which are not on their way.
Added details to the EVENT_BUILDroom event.
Engine and driver internals have been significantly reworked to make them more reliable and secure.
Fixed structure of the EVENT_OBJECT_DESTROYEDroom event.
Fixed some edge case inconsistencies in Storemethods.
Fixed respawn areas for community servers.
UPD: This update is supported in private server version
4.1.1.
-
Seems that
system.setTickDurationandgetTickDurationare not working. My private server is running at a million miles a minute, the screeps-admin-utils turned off setTickRate and suggestedsystem.setTickRatewhich also is not a function.I've deleted the server folder and verified the install (from Steam). No dice.
halp
-
So, two things on this one, first, it looks like the screeps backend-local module hasn't been merged to master and published yet, so
system.setTickDurationdoesn't exist in the CLI. Second,screepsmod-admin-utilshas the wrong help text in it, I'll poke at it tomorrow and fix that text.As a workaround, for now, you can force an older version of screepsmod-admin-utils to get the tick rate function back.
if using
screeps-launcherjust add this to yourconfig.yml(keep it in the mods list too)extraPackages: screepsmod-admin-utils: '^1.13.0'or if using npm directly:
npm install --save screepsmod-admin-utils@^1.13.0
-
It seems that
spawnCreepis not working in the simulator and the tutorial after the update. Executing the command "Game.spawns['Spawn1'].spawnCreep( [WORK, CARRY, MOVE], 'Harvester1' );" in the tutorial don't return anything, does not spawn the creep and anything else does no work after that.
-
Tried again and it is working now!