screeps-game-api icon indicating copy to clipboard operation
screeps-game-api copied to clipboard

CPU functions broken in sim

Open shanemadden opened this issue 2 years ago • 1 comments

possibly add alternate handling with the sim feature enabled? cpu::halt() is unavailable, and cpu::limit() and cpu::bucket() have also beed reported to be unavailable. Coalescing to 0 is likely preventing this from causing problems unless in dev mode.

shanemadden avatar Oct 09 '23 01:10 shanemadden

I'm personally always of the opinion "if it's not meaningful, don't let the user even try", so I would disable those functions entirely on sim. I can put up a PR to do this if that's what we want.

asquared31415 avatar Jan 13 '24 00:01 asquared31415