Page 1 of 1

How to debug a game

Posted: Sun Jul 27, 2014 7:57 pm
by mariofutire
Hi,

I am trying to find what goes wrong in my game.
But it is too fast for me to understand as normal speed.
When I reduce the overall speed things change a bit as steps are smaller, and it takes more iterations to do the same thing.

What I guess I am really after is some way of recording the dt of a run and replay them exactly in a second run, maybe adding some stepping each update, breakpoints after N updates...

Other than random.seed() and the actual "dt"s, what else is different between 2 runs?

Seems a simple thing to add on my side, maybe we have it already.

Re: How to debug a game

Posted: Mon Jul 28, 2014 8:57 am
by Plu
Maybe check out something like LoveDebug? That'll probably do all the things you want :)

http://love2d.org/forums/viewtopic.php?f=5&t=76742

Re: How to debug a game

Posted: Mon Jul 28, 2014 2:30 pm
by martov
maybe this will help you.
http://studio.zerobrane.com/

Re: How to debug a game

Posted: Wed Jul 30, 2014 8:18 pm
by mariofutire
mariofutire wrote:Hi,
What I guess I am really after is some way of recording the dt of a run and replay them exactly in a second run, maybe adding some stepping each update, breakpoints after N updates...
or maybe a lot simpler I just fix the dt to a fixed value.
in this case it is pc vs pc, so there is no input from the user.