Re: Inexperienced Knights [Update #5]
Posted: Fri May 02, 2014 10:39 pm
davisdude: Thanks for continuing to check out the project! I've been using http://www.daveconservatoire.org/ to learn some music theory, and it's going pretty well.
As expected, I did a lot of gameplay work this month. Things are much more playable, and I've started working on some of the other levels. There is actually less share-able news than I expected, because now everything becomes either a bit spoilery or sort of boring. (e.g. I made health pickups bounce off walls! wohoo!) At any rate, progress is always slower than I'd like, but it is steady and positive.
However, I've run into a nasty bug I thought I would share (how generous of me). I stripped a lot out for this demo, and I've tested it on Linux, Mac OS, and Windoes 8. The issue is, as nearly as I can tell, that body:getPosition() is returning NaN coordinates. Trying to index map data with NaN doesn't really work, and that's usually where it crashes. These bad coordinates seem to be returned when bodies are created at the same x/y coords, and the obvious solution would be to make sure I don't do that. I feel there's enough of a risk of that being a recurring issue, though, that I'd like to find out why it happens and fix that rather than constantly have to think about where things are spawning. I do intend to make things spawn in different locations eventually, though. ; )
DISCLAIMER! THIS .LOVE IS INTENDED TO CRASH AND DEMONSTRATE THE BUG I'M WORKING THROUGH. ON WINDOWS 8, THIS .LOVE CAUSED MY COMPUTER TO BECOME UNRESPONSIVE, AND I HAD TO KILL THE PROCESS. IF YOU RUN THIS FILE, YOU ACCEPT THE CONSEQUENCES!
Download
(Sorry, I read somewhere that disclaimers had to be capitalized and I'm paranoid about it.)
What to expect / Instructions
The game will crash as soon as the character and goblins drop in. If this doesn't happen, X activates your attack item (a broom), and arrow keys move your character. Alt+F4 will kill the process if it hasn't frozen. Y toggles an inventory view, but I'm planning to get rid of it eventually. Following the path will cause the game to crash because of the sections I stripped out. Pressing ESC will let you pause and quit the game. And crash it. Please don't judge the quality of the full game by this crashy .love - it really does work better when I haven't deleted a bunch of files!
Anyway, if any of you have insights about why body:getPosition() would return NaN I would very much appreciate hearing them. If you'd rather just wait for a working demo, I am working on it. The current holdup is the necessity of registering and setting up the development company, but that needs to happen soon if I want to launch by my current target date!
As expected, I did a lot of gameplay work this month. Things are much more playable, and I've started working on some of the other levels. There is actually less share-able news than I expected, because now everything becomes either a bit spoilery or sort of boring. (e.g. I made health pickups bounce off walls! wohoo!) At any rate, progress is always slower than I'd like, but it is steady and positive.
However, I've run into a nasty bug I thought I would share (how generous of me). I stripped a lot out for this demo, and I've tested it on Linux, Mac OS, and Windoes 8. The issue is, as nearly as I can tell, that body:getPosition() is returning NaN coordinates. Trying to index map data with NaN doesn't really work, and that's usually where it crashes. These bad coordinates seem to be returned when bodies are created at the same x/y coords, and the obvious solution would be to make sure I don't do that. I feel there's enough of a risk of that being a recurring issue, though, that I'd like to find out why it happens and fix that rather than constantly have to think about where things are spawning. I do intend to make things spawn in different locations eventually, though. ; )
DISCLAIMER! THIS .LOVE IS INTENDED TO CRASH AND DEMONSTRATE THE BUG I'M WORKING THROUGH. ON WINDOWS 8, THIS .LOVE CAUSED MY COMPUTER TO BECOME UNRESPONSIVE, AND I HAD TO KILL THE PROCESS. IF YOU RUN THIS FILE, YOU ACCEPT THE CONSEQUENCES!
Download
(Sorry, I read somewhere that disclaimers had to be capitalized and I'm paranoid about it.)
What to expect / Instructions
The game will crash as soon as the character and goblins drop in. If this doesn't happen, X activates your attack item (a broom), and arrow keys move your character. Alt+F4 will kill the process if it hasn't frozen. Y toggles an inventory view, but I'm planning to get rid of it eventually. Following the path will cause the game to crash because of the sections I stripped out. Pressing ESC will let you pause and quit the game. And crash it. Please don't judge the quality of the full game by this crashy .love - it really does work better when I haven't deleted a bunch of files!
Anyway, if any of you have insights about why body:getPosition() would return NaN I would very much appreciate hearing them. If you'd rather just wait for a working demo, I am working on it. The current holdup is the necessity of registering and setting up the development company, but that needs to happen soon if I want to launch by my current target date!