us3r

the name stuck sorry

  • he/him

professional procrastinator. computer enjoyer. 1-800-didge.


From what I've seen some languages like Python (I think) let you do, I don't know the proper word, 'live' debugging by keeping a little window of what you're working on open as it's been written.

SO: I was wondering if it was possible with ss13/dream maker, but I'm too afraid to ask and make a fool of myself in a discord I'm in.

I don't think you can because the game is sort of instanced with one thing running at the beginning of every round. So you'd need to compile the whole thing each time anyway, I think?


You must log in to comment.

in reply to @us3r's post:

you can absolutely do live debugging with dream maker if you use vscode! you can even run arbitrary(ish) code in the debug console. unfortunately, what you can't do is hot reloading, so if you want to edit the code you have to restart, and i think that's what you meant? (personally i use conditional breakpoints with && FALSE at the end as a substitute for some use cases of hot reloading during testing, but that's really advanced and also a pain)

That is what I meant, thank you! I'm having to search a few of these terms up here but I imagine a conditional breakpoint is almost like a quicksave in a game minus the QoL.

Sort of? It's more like telling the debugger to stop on a line of code when a condition is true—and since that condition is, itself, code that gets run when that line is reached, I'm able to temporarily fix things like "oh no, I forgot to call this function in this place" or "I forgot to set this variable." It's also really useful even if you just use it normally for debugging. You can stop right before a runtime error would happen and see where it went wrong.

Huh. That's pretty neat. A bit out of my league still but I can understand "I want outcome x to happen and if anything outside of x happens stop and report back."

It's lightyears away but I guess sifting through error messages when modding games to figure out what fucked up, when and where is the only thing I can vaguely sort of relate?

it's exactly that sort of thing, not that far off at all! it's just a tool so you can do that investigation while it happens rather than having to piece things together from error messages after the fact

If you see this, then thank you for responding to my small brain understanding of coding and logic. As of right now I've been distracted but this has reminded me. Maybe I'll try again now.