I've been working on a game and just the last few times I've tried compiling and running it nothing happens. When I open task manager it shows that Dream Seeker is running but the actual game I'm making doesn't appear. Rebooting my computer doesn't work. Is there something I can do to fix this?
| |
#1 Aug 11 2012, 4:36 pm
|
|
Does this happen with all projects you have compiled and ran from Dream Maker, or just a specific one?
| |
#3 Aug 11 2012, 4:39 pm
|
|
I'll move this to developer help, as I think it's actually a programming issue with that specific game. Can you shows us your code for world/New(), and describe what kind of things you've changed in world/New() recently?
| |
#5 Aug 11 2012, 4:43 pm
|
|
Well, presumably you were changing something, as you were re-compiling the world and re-running it.
"I've been working on a game and just the last few times I've tried compiling and running it nothing happens." What did you change just before this started happening? | |
#7 Aug 11 2012, 4:56 pm
|
|
I'd think the problem is in that proc then. Can you show us that proc?
| |
#8 Aug 11 2012, 4:59 pm (Edited by moderator on Aug 11 2012, 5:02 pm)
|
||
| ||
#9 Aug 11 2012, 5:00 pm (Edited on Aug 11 2012, 5:14 pm)
|
||
Remove NPC AI and compile and run again, at least you can then narrow it down to being for sure in NPC AI somewhere.
Seems to me though, if it was working before and doesn't throw a compile error, perhaps a run-time one?
Sorry, you must have posted as I was posting, try to use the dm tags <> as indention matters and makes it easier to read. Try another break before the else? Though I don't see why that would stop the whole program but perhaps it is locking up immediately in the for loop. As far as I can tell this would only happen if you start the program within 1 of src,M | ||
#11 Aug 11 2012, 5:03 pm
|
|
I tried removing that portion of coding and it still didn't work, so I un-checked the .dm file it was in from the entire source and still nothing happened when I ran it.
| |
#12 Aug 11 2012, 5:03 pm
|
|
Can you show me where ai() is called? I guess it's called in New() for your NPC enemies?
| |
#13 Aug 11 2012, 5:05 pm (Edited by moderator on Aug 11 2012, 5:06 pm)
|
||
| ||
#14 Aug 11 2012, 5:05 pm
|
|
I have used that exact same AI system in other environments before though and ran in to no problems at all.
| |
Infinite loop without delay, put sleep(rand(6,8)) in instead of spawn.
| |
#17 Aug 11 2012, 5:12 pm
|
|
That goes a bit better with what I'm trying to do actually, thanks.
| |