Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Works-In-Progress (http://www.alice.org/community/forumdisplay.php?f=14)
-   -   My Newest Project That I Need Help With! (http://www.alice.org/community/showthread.php?t=2522)

("Robby") 04-14-2009 10:38 PM

My Newest Project That I Need Help With!
 
1 Attachment(s)
Ok so I'm making a plane game where you need to kill the other plane before it crashes into you but whenever it starts it says "Error During Simulation." Then it says "Error During World Stop."

Here It Is, Hope Someone Can Help!

lanceA 04-15-2009 12:06 PM

[quote=("Robby");9699]Ok so I'm making a plane game where you need to kill the other plane before it crashes into you but whenever it starts it says "Error During Simulation." Then it says "Error During World Stop."

Here It Is, Hope Someone Can Help![/quote]

Hi Robby,
Part of writing code is developing an ability to find the problems in the code you wrote (debugging). To find your problem the first thing I did was 'disable' all of your Events. By doing this I am narrowing down where the problem code might be located. I then enabled each event, one by one, and tried to run the application. Eventually, when I enabled your Event:[INDENT]While Fighter2.Condition Dead is true
[/INDENT]and I played the application I received the error message you reported. Therefore the error 'appears' to be caused by your code in the function Fighter2.Condition Dead. Take a look in that function and see if you can locate your problem.

Good luck and let us know if you need additional assistance.

("Robby") 04-15-2009 12:49 PM

[QUOTE=lanceA;9701]Hi Robby,
Part of writing code is developing an ability to find the problems in the code you wrote (debugging). To find your problem the first thing I did was 'disable' all of your Events. By doing this I am narrowing down where the problem code might be located. I then enabled each event, one by one, and tried to run the application. Eventually, when I enabled your Event:[INDENT]While Fighter2.Condition Dead is true
[/INDENT]and I played the application I received the error message you reported. Therefore the error 'appears' to be caused by your code in the function Fighter2.Condition Dead. Take a look in that function and see if you can locate your problem.

Good luck and let us know if you need additional assistance.[/QUOTE]



Ok I new it was the condition thing but I looked at it over like 30 times and I can't find the error.

lanceA 04-16-2009 10:37 AM

[quote=("Robby");9702]Ok I new it was the condition thing but I looked at it over like 30 times and I can't find the error.[/quote]
In your Event[INDENT]While fighter2.Condition Dead
[/INDENT]disable the call to the procedure fighter2.Die3 in the During: and place it in the End: portion of the event, i.e.,[INDENT]While fighter2.Condition Dead is true
Begin:
During:
End: fighter2.Die3
[/INDENT]This removes the error message you were getting, however I'm not sure if it has other implications for your game.

Good luck,[INDENT]
[/INDENT]

("Robby") 04-17-2009 01:56 PM

Thanks!


All times are GMT -5. The time now is 10:12 PM.

Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.