PDA

View Full Version : Alice - Error during simulation


thirdflare
01-14-2012, 05:54 PM
I've been working on a FPS Survival Game for my final project, and for whatever reason, I've started getting an "Error during simulation" when I start playing my world on my home computer. Can anyone help me with this? I'm using Alice 2.2. The error is as follows:


Error during simulation.




Alice version: 2.2 12/01/2011



Throwable that caused the error:

java.lang.RuntimeException

at edu.cmu.cs.stage3.alice.core.question.PropertyValu e.getValue(PropertyValue.java:102)
at edu.cmu.cs.stage3.alice.core.Property.evaluateIfNe cessary(Property.java:380)
at edu.cmu.cs.stage3.alice.core.Property.getValue(Pro perty.java:407)
at edu.cmu.cs.stage3.alice.core.property.BooleanPrope rty.getValue(BooleanProperty.java:34)
at edu.cmu.cs.stage3.alice.core.property.BooleanPrope rty.getBooleanValue(BooleanProperty.java:46)
at edu.cmu.cs.stage3.alice.core.property.BooleanPrope rty.booleanValue(BooleanProperty.java:49)
at edu.cmu.cs.stage3.alice.core.property.BooleanPrope rty.booleanValue(BooleanProperty.java:57)
at edu.cmu.cs.stage3.alice.core.response.IfElseInOrde r$RuntimeIfElseInOrder.prologue(IfElseInOrder.java :54)
at edu.cmu.cs.stage3.alice.core.response.DoInOrder$Ru ntimeDoInOrder.childPrologueIfNecessary(DoInOrder. java:53)
at edu.cmu.cs.stage3.alice.core.response.DoInOrder$Ru ntimeDoInOrder.update(DoInOrder.java:100)
at edu.cmu.cs.stage3.alice.core.response.CallToUserDe finedResponse$RuntimeCallToUserDefinedResponse.upd ate(CallToUserDefinedResponse.java:89)
at edu.cmu.cs.stage3.alice.core.behavior.TriggerBehav ior.internalSchedule(TriggerBehavior.java:70)
at edu.cmu.cs.stage3.alice.core.Behavior.schedule(Beh avior.java:233)
at edu.cmu.cs.stage3.alice.core.Sandbox.scheduleBehav iors(Sandbox.java:70)
at edu.cmu.cs.stage3.alice.core.World.scheduleBehavio rs(World.java:457)
at edu.cmu.cs.stage3.alice.core.World.schedule(World. java:499)
at edu.cmu.cs.stage3.alice.core.clock.DefaultClock.sc hedule(DefaultClock.java:99)
at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l$7.run(AuthoringTool.java:693)
at edu.cmu.cs.stage3.alice.authoringtool.util.Default Scheduler.simulateOnce(DefaultScheduler.java:115)
at edu.cmu.cs.stage3.alice.authoringtool.util.Default Scheduler.run(DefaultScheduler.java:76)
at edu.cmu.cs.stage3.scheduler.AbstractScheduler.run( AbstractScheduler.java:45)
at java.awt.event.InvocationEvent.dispatch(Invocation Event.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:641)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:602)
at java.awt.EventQueue$1.run(EventQueue.java:600)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 611)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:178)
at java.awt.Dialog$1.run(Dialog.java:1046)
at java.awt.Dialog$3.run(Dialog.java:1098)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1096)
at java.awt.Component.show(Component.java:1584)
at java.awt.Component.setVisible(Component.java:1536)
at java.awt.Window.setVisible(Window.java:842)
at java.awt.Dialog.setVisible(Dialog.java:986)
at edu.cmu.cs.stage3.swing.DialogManager.showModalDia log(DialogManager.java:61)
at edu.cmu.cs.stage3.swing.DialogManager.showDialog(D ialogManager.java:131)
at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.play(AuthoringTool.java:5229)
at edu.cmu.cs.stage3.alice.authoringtool.Actions$16.a ctionPerformed(Actions.java:177)
at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEven tMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.jav a:6288)
at javax.swing.JComponent.processMouseEvent(JComponen t.java:3267)
at java.awt.Component.processEvent(Component.java:605 3)
at java.awt.Container.processEvent(Container.java:204 1)
at java.awt.Component.dispatchEventImpl(Component.jav a:4651)
at java.awt.Container.dispatchEventImpl(Container.jav a:2099)
at java.awt.Component.dispatchEvent(Component.java:44 81)
at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:4168)
at java.awt.Container.dispatchEventImpl(Container.jav a:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478 )
at java.awt.Component.dispatchEvent(Component.java:44 81)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:643)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:602)
at java.awt.EventQueue$1.run(EventQueue.java:600)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:616)
at java.awt.EventQueue$2.run(EventQueue.java:614)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 613)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:122)





Please note that I was working on my project at two different computers - One with Windows XP (at school) and Windows 7 (at home). Also, my .a2w file exceeds 20MB, and Wikisend is being stupid. A .zip file won't work either. So until I find an alternative means of attaching the file, I can't provide my actual game for you to look at.

**EDIT: Link for game is below.**
http://www.mediafire.com/?f0to8p79g6hg4zu


Cheers.

Mr Kidnapper
01-14-2012, 06:08 PM
Try Mediafire or something.

thirdflare
01-15-2012, 02:25 PM
There's a link above now. Please take a look.

Mr Kidnapper
01-15-2012, 09:04 PM
Fixed to an extent. I fixed most of your problems, except for an Array Index Out of Bounds error which seems to be primarily Alice's fault. Seems Alice is bad at detecting indexes for objects.
At any rate, what you should be using with lists is "For All In Order" or "For All Together", not this random business.
http://www.mediafire.com/?hf8wax087cscfte (www.mediafire.com/?hf8wax087cscfte)
I also fixed your world's size. I have no idea why it's so large, but now it's only 20MB.

thirdflare
01-16-2012, 10:41 AM
Fixed to an extent. I fixed most of your problems, except for an Array Index Out of Bounds error which seems to be primarily Alice's fault. Seems Alice is bad at detecting indexes for objects.
At any rate, what you should be using with lists is "For All In Order" or "For All Together", not this random business.
I also fixed your world's size. I have no idea why it's so large, but now it's only 20MB.

Thanks a lot! I really appreciate everything you've done, and I'll be sure to try following your advice.

arty-fishL
01-16-2012, 01:34 PM
Fixed to an extent. I fixed most of your problems, except for an Array Index Out of Bounds error which seems to be primarily Alice's fault. Seems Alice is bad at detecting indexes for objects.
At any rate, what you should be using with lists is "For All In Order" or "For All Together", not this random business.
http://www.mediafire.com/?hf8wax087cscfte
I also fixed your world's size. I have no idea why it's so large, but now it's only 20MB.You sir, are a genius when it comes to this subject.