screeps-server-mockup icon indicating copy to clipboard operation
screeps-server-mockup copied to clipboard

improvements?

Open bastianh opened this issue 5 years ago • 3 comments

This is super great, but I'm a little bit disappointed ;)

I hoped it would be possible to use it to run the server in an editor like webstorm and set breakpoints in own code while running... but I guess that's not easy possible.

Another nice thing would be being able to get a list / test which intents where executed in the tick?

bastianh avatar Feb 27 '20 13:02 bastianh

I haven't tried hooking in breakpoints to VSCode or WebStorm, but that would indeed be useful.

I was wondering about getting a list of intents as well. Unfortunately right now db[users.intents] always returns empty and I haven't found a way to grab it out of the server. Does anyone else know the server code well enough for how to fetch the intent list?

brisberg avatar Feb 28 '20 03:02 brisberg

hmmm... is there an easy way to inject code for a user for the next tick? maybe like how the console of the client works ?

even better of course would be if you can get the response after the tick .)

bastianh avatar Feb 28 '20 14:02 bastianh

intents are only visible in between usersQueue.whenAllDone(); and roomsQueue.addMulti(rooms)

Boegie19 avatar Mar 07 '24 01:03 Boegie19