![screeps clear memory screeps clear memory](https://blog.screeps.com/2017/12/auth-tokens/token.png)
That's in Github settings just under repository name If not, report an issueĬhange default branch to develop. It should work out-of-box (content of master branch).Together build wonder worth 161.8mil energy in public server (focus on fun).Improvements and finish 100% expected functionality (focus on CPU and RAM efficiency).Improvements & make-it-work MUI - Memory based User Interface (focus on fun).Improvements & make-it-work Adis - Automatic Debugging & Isolation System (focus on error-prone).Make-it-work anything new (focus on scalability).Review & improve concepts (focus on conceptual effectiveness).Rewrite notes into documentation and inline comments (focus on understandable).Make-it-work diplomacy (focus on scalability).Make-it-work aggression & conquering (focus on scalability).Make-it-work scouting & expanding (focus on scalability).Make-it-work defending (focus on scalability).Make-it-work using infrastructure (focus on scalability).Make-it-work not to die off on its own (focus on scalability).Put down concepts into notes and probably test them (focus on conceptual effectiveness).
#Screeps clear memory free
I expect to move to organized developing somewhat soon, feel free to jump in to discuss concepts through issues or email.
#Screeps clear memory code
Also code contains unrelated basic logic to survive and make testing easier. Code mismatch with documentation in most parts, and there are several obsolete and broken parts. So let's make it easy and fun, too.Ĭurrently I am only putting down to text and testing all ideas. Devs and to-be-devs are here not onlyu to have fun, but also to learn something. Has good documentation, clear code, meaningful variable names, to-the-point comments and etc. It has the same code and works as well as just spawned or managing 10 rooms. The technical stuff under-the-hood has to be good also. It does things as caching, heuristics, function prioritizing and deferred tasks across ticks. AI shall never throw the same error twice. And if user messed up with Memory it may detect and solve it, or go crazy, give funny warnings and eventually deal with it. Nothing in world should surprise AI except API patches. It allies with other colonies that has the same script, cooperates with them economically and make joint military campaigns. It runs on ideas like decentralization, self-reflection, demand-supply market and more to come. Users can modify few memory variables to turn on/off whatever he want to focus on. It reports what it does so user can be aware of otherwise invisible decisions and actions. I imagine my pathfinding could be improved as well, as I'm relying entirely on moveTo( ) with the default 5-tick cache, but I'm not sure if it would be a big enough improvement to be worth rewriting all of that code too.Įdit: Well I totally missed that the Game object already has a hash of structures and constructionSites as well as rooms and creeps hashes I already use, so I would bet that'll be the ideal way of accessing all of those.At this moment all ideas ar work in progress and master contains quickfix-style scripts for creeps to be able to work for GCL.
![screeps clear memory screeps clear memory](https://res.cloudinary.com/lmn/image/upload/c_limit,e_sharpen:150,f_auto,fl_lossy,h_360,q_80,w_640/v1/gameskinnyc/2/0/1/20141120090154-script-sample-a7100.png)
Would it be more efficient to store an array of IDs and do a bunch of Game.getObjectById( ) calls instead of a couple room.find( ) calls? Currently I'm using room.find( ) to pull back all my extensions, containers, etc.
![screeps clear memory screeps clear memory](https://steamcdn-a.akamaihd.net/steam/apps/464350/ss_94f8270c8af95095e75ab2f9418388b74a6c201d.1920x1080.jpg)
It's definitely not super efficient right now often using about 3-4 CPU on one room with about 10 creeps, so I'm just starting to refactor a significant chunk of my codebase and was wondering if anyone knows any good tips for efficiency, and which API calls are more expensive than others?įor example, each tick my room will look for structures to determine what tasks need to be done. I'm fairly new to this game and have got an early-game AI working reasonably well.