I just attempted to activate safe mode (on the s+ server), a few hundred ticks after my room had come out of the initial spawn safemode. There was no safemode cooldown, and no significant downgrade timer. The manual safemode attempts did not succeed. However a safemode generated by my bot shortly afterwards did succeed.
Posts made by wtfrank
Manual safemode application seems to be unreliable on private servers
RE: Class instance in creep memory forgets his members
Each tick, a creep's memory is serialised to JSON, stored in the server's database, and then at the start of the next tick it is loaded back from the database and an object is created.
I'm not sure what the technical term is, but JSON can only serialise "basic objects". So while it can serialise basic data members (number, string, array, object) it can't serialise functions. This is why you get the error "myObj.run" is not a function.
Another example, if you store a RoomPosition object in memory, what you get back the following tick is an object with a "roomName", "x", and "y" members, but the object is not "instanceof RoomPosition".
If you want to use a class with the creep's memory, you would have to assign the class to each creep every tick. Or find a different way of organising the creep's memory.
isRoomAvailable() not consistent with world map view
console.log("Result of isRoomAvailable:", Game.map.isRoomAvailable("E52N1"))
[09:29:56][shard3]Result of isRoomAvailable: true
RE: Typescript - adding to existing classes without duplication
FWIW I extend the type via Declaration merging, and it at least prevents me extending a the prototype without having declared it up front.
RE: PTR Changelog 2019-06-24: Store and market
Although it's "fair" to return unused fees, it discourages people pricing their orders "to sell" - so the spread will be wider, and less transactions will take place, as there's no penalty for having a sell order at such a high price that it never sells, or a buy order at such a low price that no-one sells into it.
RE: Using WebAssembly and C++
Yeah if what you like about C++ is the type-checking that catches errors early, then typescript is a strong recommendation. I also came from a C++ background and after getting endlessly frustrated with stupid errors making it onto the mmo server, I moved to typescript and never looked back. I found several serious bugs just by adding the types to my code to covert it from js to typescript.
RE: Ability to draw visuals on the map view (not just room view)
- map overlay to sketch approximate borders around players' or alliances' empires
RE: Move Tutorial Completion to Account Instead of Cookie
Technically I think it's local storage rather than cookies, but the effect is the same. It's annoying when a new browser logs you into the tutorial.