Game Exception with 1.91

Help
2008-01-01
2013-04-17
  • Nobody/Anonymous

    Tried to run moagg 1.91 and after setting the java_home variable, it blows up on me with:

    SET JAVA_HOME=D:\Program Files\Java\jre1.6.0_03

    Game Exception on moagg.game.MoaggGameEngine
    --------------------------------------------
    java.lang.ArrayIndexOutOfBoundsException: -85
        at moagg.model.object.sprite.Particle.render(Particle.java:78)
        at com.golden.gamedev.object.SpriteGroup.render(Unknown Source)
        at moagg.game.LevelGameObject.render(LevelGameObject.java:325)
        at com.golden.gamedev.GameObject.start(Unknown Source)
        at moagg.game.MissionGameObject.update(MissionGameObject.java:109)
        at com.golden.gamedev.GameObject.start(Unknown Source)
        at moagg.game.MissionMenu.enter(MissionMenu.java:48)
        at moagg.game.AbstractMenu.update(AbstractMenu.java:98)
        at com.golden.gamedev.GameObject.start(Unknown Source)
        at moagg.game.MainMenu.enter(MainMenu.java:40)
        at moagg.game.AbstractMenu.update(AbstractMenu.java:98)
        at com.golden.gamedev.GameObject.start(Unknown Source)
        at moagg.game.SplashScreen.update(SplashScreen.java:47)
        at com.golden.gamedev.GameObject.start(Unknown Source)
        at com.golden.gamedev.GameEngine.startGameLoop(Unknown Source)
        at com.golden.gamedev.Game.start(Unknown Source)
        at com.golden.gamedev.GameLoader.start(Unknown Source)
        at moagg.game.MoaggGameEngine.main(MoaggGameEngine.java:47)

    Game Environment
    ----------------
    Date/Time         : Tue, 01 Jan 2008 at 12:34
    Java Version      : 1.6.0_03-b05 Sun Microsystems Inc.
    GTGE Version      : 0.2.3
    Environment       : Windowed Mode [640x480] with BufferStrategy
    Operating System  : Windows 2000 5.0 Service Pack 4
    User Name         : xxx
    Working Directory : U:\moagg-1.91-bin\moagg-1.91

     
    • Bernhard Trummer

      Hi, I just took a look at the source code and I have no idea yet, how this ArrayIndexOutOfBoundsException can occur with a negative value (-85 in your case).
      I just tried out the game on my WinXP-laptop with Sun's jdk1.5.0_13, jdk1.6.0_02 and jre1.6.0_03, as well as on my girlfriend's Win2000-laptop with Sun's jre1.5.0_06. Unfortunately, I'm not able to reproduce this exception. :-(

      However, it would be nice if you could give me some additional information:
      * When does this exception occur?
        - In every mission/level?
        - Always directly after the ship takes off or at "unexpected" times during the game?
      * Is the index value of the exception always -85?
      * If no, could you please try to play the game several times and post the index values you get?
      * Do you have a different machine where the game shows the same behavior?

      Thanks in advance for your help.

       
    • Nobody/Anonymous

      Hi Bernhard,

      Thanks for your reply.  Strangely enough, I gave it another go today and it seems to be running fine.  Weird!  Maybe it needed a reboot or something.  Nice game, I like it!  I can see myself playing this one a bit!

      Many thanks,

      Don

       
    • Bernhard Trummer

      Hi Don.

      I don't believe that a reboot is required. But I'm glad to hear, that it's working now.
      Thanks and ciao.

      PS: 1.92 is out in the meantime...

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks