2DWorlds Forums
Error & crash when script ran... - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Bug Reports (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=23)
+--- Thread: Error & crash when script ran... (/showthread.php?tid=7638)



Error & crash when script ran... - CoderRyne - 08-03-2011

Hello,

I don't believe that this is normal, so I will post error here:

java.util.ConcurrentModificationException
java.util.AbstractList$Itr.checkForComodification(Unknown Source)
java.util.AbstractList$Itr.next(Unknown Source)
net.buildism.b.a.a(Event.java:61)
net.buildism.c.b.a(DefaultInputProcessor.java:142)
net.buildism.f.p(Main.java:687)
net.buildism.MainApplet.run(MainApplet.java:214)
java.lang.Thread.run(Unknown Source)

Whenever I run my explosion on click script, my world seems to always crash with this error message. I've already had someone check my quick script, and it works fine.

Code:
--Parameters you can use: player (GameObject), button (integer)
function click(player)
    local e = create("Explosion")
    e.Name = "explosion"
    e.Position = script.Parent.Position
    e.Radius = 10.5
    e.Parent = game.World
end
link(script.Parent.Clicked, click)

Please do keep in mind that I'm a Java programmer; I have not touched Lua in a few years. Let me know what the issue is.

Thank you!


RE: Error & crash when script ran... - Jacob__mybb_import1 - 08-03-2011

Looks like a bug, I'll fix it when I get back on Friday.


RE: Error & crash when script ran... - Jacob__mybb_import1 - 08-03-2011

Did you make this wwith the events menu? You only need the code, not the link line.


RE: Error & crash when script ran... - CoderRyne - 08-03-2011

(08-03-2011, 05:13 PM)Jacob_ Wrote: Looks like a bug, I'll fix it when I get back on Friday.

Thank you for letting me know, Jacob. If you have the time, please check my message, but please don't rush if you don't.
(08-03-2011, 05:16 PM)Jacob_ Wrote: Did you make this wwith the events menu? You only need the code, not the link line.

Oh, yes, I did script that with the event menu. Let me see what I can do...


RE: Error & crash when script ran... - Nice - 08-03-2011

(08-03-2011, 05:16 PM)Jacob_ Wrote: Did you make this wwith the events menu? You only need the code, not the link line.

I can't believ this!!! OOOoooOOO Typing fail!!!! Nah... just a Joke. ^_^