The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 94 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 573 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 752 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 892 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 892 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/showthread.php 28 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5327 - File: inc/functions.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions.php 5327 errorHandler->error
/global.php 1024 build_theme_select
/showthread.php 28 require_once
Warning [2] Trying to access array offset on null - Line: 480 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 480 errorHandler->error
Warning [2] Undefined array key "dateline" - Line: 481 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 481 errorHandler->error
Warning [2] Undefined array key "closed" - Line: 485 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 485 errorHandler->error
Warning [2] Undefined array key "pid" - Line: 505 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 505 errorHandler->error
Warning [2] Undefined array key "options" - Line: 512 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 512 errorHandler->error
Warning [2] Undefined array key "votes" - Line: 513 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 513 errorHandler->error
Warning [2] Undefined array key "question" - Line: 514 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 514 errorHandler->error
Warning [2] Undefined array key "numoptions" - Line: 519 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 519 errorHandler->error
Warning [2] Undefined array key "numoptions" - Line: 525 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 525 errorHandler->error
Warning [2] Undefined variable $alreadyvoted - Line: 611 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 611 errorHandler->error
Warning [2] Undefined variable $undovote - Line: 9 - File: showthread.php(631) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/showthread.php(631) : eval()'d code 9 errorHandler->error
/showthread.php 631 eval
Warning [2] Undefined array key "pid" - Line: 21 - File: showthread.php(631) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/showthread.php(631) : eval()'d code 21 errorHandler->error
/showthread.php 631 eval
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 811 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 811 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 811 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 811 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 811 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 811 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "invisible" - Line: 1568 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 1568 errorHandler->error
Warning [2] Undefined variable $threadnotesbox - Line: 33 - File: showthread.php(1600) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 33 errorHandler->error
/showthread.php 1600 eval
Warning [2] Undefined variable $ratethread - Line: 41 - File: showthread.php(1600) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 41 errorHandler->error
/showthread.php 1600 eval
Warning [2] Undefined variable $addremovesubscription - Line: 82 - File: showthread.php(1600) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 82 errorHandler->error
/showthread.php 1600 eval
Warning [2] Undefined variable $thread_deleted - Line: 104 - File: showthread.php(1600) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 104 errorHandler->error
/showthread.php 1600 eval




Poll:
You do not have permission to vote in this poll.
Total 0 vote(s) 0%
* You voted for this item. [Show Results]

This game is crashing after the first round in the editor.
#1
It's basically a remake of my old Asteroid Dodgers (or Meteor Shower or whatever I called it) from the old site, totally redone from scratch.

I need to work on adding the final touches and some balancing to make it actually survivable, but it should be working just fine.

However, when I load it in the editor and hit play, after it completes the first round, I get a NegativeArrayException.

Code:
java.lang.NegativeArraySizeException
org.jbox2d.dynamics.Island.init(Island.java:118)
org.jbox2d.dynamics.PhysicsWorld.solve(PhysicsWorld.java:669)
org.jbox2d.dynamics.PhysicsWorld.step(PhysicsWorld.java:572)
net.worlds.World.step(World.java:736)
net.worlds.Game.step(Game.java:295)
net.worlds.Main.gameStep(Main.java:657)
net.worlds.MainApplet.run(MainApplet.java:236)
java.lang.Thread.run(Unknown Source)

Any ideas why? I'm going to try to debug it some more later, but if anyone else can help that'd be great.

http://2dworlds.org/game.php?id=31

Here's the script I believe to be the problem:

Code:
function checkWhoSurvived()
local players = game.Players:getChildren()
for q = 1, #players do
players[q].Stats.Played.Value = players[q].Stats.Played.Value + 1
if players[q].Alive.Value == true then
players[q].Stats.Survived.Value = players[q].Stats.Survived.Value + 1
else
players[q].Alive.Value = true
end
end
end

function redoWorld()
local spawn = game.World:getChild("Spawn")
local players = game.Players:getChildren()
for w = 1, #players do
if players[w].Character ~= nil then
players[w].Character.Body.Position = spawn.Position
end
end
game.Terrain:generate()
end

function ticky(top, num)
for z = 1, num do
local players = game.Players:getChildren()
for x = 1, #players do
players[x]:message(tostring(top - z))
end
sleep(1)
end
local players = game.Players:getChildren()
for c = 1, #players do
players[c]:message()
end
end

function cleanup()
local parts = game.World:getChildren()
for y = 1, #parts do
if parts[y]:isA("Circle") and string.sub(parts[y].Name, 1, 6) == "Meteor" then
parts[y]:remove()
end
end
end

while true do
game.World.BGM:stop()
game.World.Meteors.Create.Value = false
cleanup()
redoWorld()
local players = game.Players:getChildren()
for e = 1, #players do
players[e]:message("Beginning new round!")
players[e].Alive.Value = true
end
sleep(4)
for r = 1, #players do
players[r]:message()
end
game.World.BGM:play()
game.World.Meteors.Create.Value = true
ticky(140, 140)
checkWhoSurvived()
end

The game freezes, and then the music begins to play again. So I suspect the problem is somewhere here:


game.World.BGM:play()
game.World.Meteors.Create.Value = true
ticky(140, 140)



EDIT: It is also now crashing with this error at other times as well.
[Image: iwn8gk.gif]
Reply
#2
At some point in the past week or two, this bug seems to have been fixed. Thanks, Jacob!
[Image: iwn8gk.gif]
Reply
#3
It's back. :/ Same error, and like before, only happens at the end of the first round.
[Image: iwn8gk.gif]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)