This.createConstructionSite(loc.x, loc.y, STRUCTURE_CONTAINER)
Screeps controller upgrade#
From there just harvest energy and move back to the controller and upgrade it. It would use findExit () to get into the next room, then just go to the room controller and claim it. How can I get the same result every time, not three different points? =function() The only special task you need is to move a creep into another room and claim the controller. Failure to achieve themfailure to control completely, and ultimately to eliminate tuberculosisis unpardonable. The closest point between the spawn and the controller that is one unit away from the controllerįor some reason it appears to give me multiple values (possibly due to the pathing algorithm) which is Jump Point according to the API. I am trying to calculate the location to place a container as: When the CARRY is empty, it doesn't weight them down anyway so "off roading" would only delay you a tick on the return if it happened.I have a prototype to create a room layout. Even if your MOVE/CARRY creeps step off roads sometimes, it's not the end of the world. 2:1 ratio is what you want for creeps who move on roads. Depending on your road network, you could start dropping MOVEs from creeps you know will always be on roads. Then have them repair the roads they walk on.Ĥ. Get rid of the cross room builders, and put a WORK on your gatherers that will go to the remote rooms. Hi Guys So if you want auto-safemode, heres what I did: If a wall or rampart looses all its hitpoints down to five (change the numbe rif you like), activate the safemode. You could also have the remote miner creeps repair their own container.ģ. Next 2 Me, Next 2 Me, Himself, James Alexander Gutch. Instead of having the miners in remote rooms also return the energy, have gatherer creeps pick up the energy and return it, so the actual harvesters are stationary (build a container). I'd consider exactly what your NN outputs are though, and maybe have screeps operate with different modes that the NN can switch between, so they can typically operate at full-speed, and only context-switch when the NN determines so. Control, Control (stripped version), Himself, Nicole Cohen, Natania Lalwani, Wayne Wilkins, Solo. Reserve/mine more once you hit RCL 7 and get a second spawn in the room.Ģ. Remotely mine nearby rooms, and reserve any room that has 2 sources in it adjacent to your core room. I'm in room W77S32 if you have any tips on positioning.ġ. When rampart is fully repaired, and still above 50% energy, will repair spawn's rampart. Towers repair their own rampart when above 50% energy.
These rooms come with between one to two sources, which if unclaimed start at. They can also be reserved by a user using a creep with claim parts. RoomLevel : I define a level for each room so that different level creeps can be spawned and different parts per creep. SpawName : Name of the spawn, used for regeneration. Moves energy to link (link transfers to other link by controller) Controller Room edit edit source The main type of room in Screeps, these rooms have a controller that can be claimed by a user with enough spare GCL and allow for the building of owned structures. WaitFlag : I define a flag somewhere in the room so that creeps that dont have anything to do can go wait there. Your available CPU is limited, so you have to write an AI that is both powerful and efficient. over a broad range of there is also screeps if anyone wants the MMO experience.
Screeps controller code#
Mines sources in neighbouring rooms and brings to storage.īuilds and maintains roads in neighbouring rooms. Screeps is an MMORTS (massively multiplayer online real-time strategy game) with a unique twist: instead of controlling your units directly, you write code in Javascript to build and manage them. CGMiner includes overclocking, monitoring, fan speed control and remote. Takes energy from link and upgrades controller. Transfers energy from storage to extensions/towers. Transfers energy from containers to storage. I'm currently putting ~200k energy into my controller a day, however that still seems slow in comparison to some other players.