PTR stops running my code as soon as I close the tab
-
So as the topic says, as long as I keep the tab open in my browser, the code is being run (albeit in a very super slow and jittery manner). As long as I close the tab all creep activity just stops. They just sit there, ticking down their TTL, until they die. No activity, no respawning, no anything.
What gives?
-
@orlet Did you activate CPU there?
-
@o4kapuk said in PTR stops running my code as soon as I close the tab:
@orlet Did you activate CPU there?
OMG that did the trick. Thank you!
-
I'm glad that worked. Now I'm a little confused. Is it supposed to be possible to give your scripts some runtime CPU by opening the room? E.g. could I migrate through a shard by keeping a tab open on the portal room?
-
@deft-code The expected behavior (as far as I know) is that your code is running but your CPU isn't being replenished so you'll be disabled as soon as your bucket is empty. Please report if you see something else.
-
@o4kapuk said in PTR stops running my code as soon as I close the tab:
@deft-code The expected behavior (as far as I know) is that your code is running but your CPU isn't being replenished so you'll be disabled as soon as your bucket is empty. Please report if you see something else.
This is the case for MMO server shards, yes. Though IIRC you currently start with zero buckets on shards you don't have any owned objects on, and the buckets won't regenerate if you don't have anything on the shard even with CPU assigned.