Java Game- Game can't find it's graphics jar file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • BlackHawke

    #16
    Problem Solved!

    Thank you all!

    Based on a suggestion made her, I looked over the code and found the
    problem. In 600x800 settings, a different folder was used to store the
    graphics. We disabled 600x800 support, but that line was never commented
    out.

    Thank's all for helping. It's so incredible that there is the resource of
    people like you taking this kind of time. Thank you, thank you, thank you.

    Sincerely

    Nick Soutter
    Aepox Games

    "BlackHawke " <blackhawke@leg acygames.net> wrote in message
    news:r6qPb.1980 0$1e.15881@news read2.news.pas. earthlink.net.. .[color=blue]
    > My name is Nick Soutter, I own a small game development company
    > (www.aepoxgames.net) making our first game (www.andromedaonline.net) in
    > java.
    >
    >
    >
    > I am writing because we are having a very serious problem, and I was[/color]
    hoping[color=blue]
    > someone might have thoughts.
    >
    >
    >
    > Our game has 2 main programs- one is an updater, the other is the game
    > client. The updater (AndromedaOnlin e.jar) checks for updates to the
    > graphics, sound, client, and of course itself. After applying any updates,
    > the updater runs the client (AndromedaClien t.jar) for people to play with.
    >
    >
    >
    > When players install this program on their systems with pre-existing
    > versions of JAVA, it runs fine. When they try to install it after[/color]
    installing[color=blue]
    > a fresh, new Java JRE, however, it fails.
    >
    >
    >
    > I am running Java 1.4.1_05 on my system. This runs fine. After some Alpha
    > testers reported client problems, we brought up a test computer, installed[/color]
    a[color=blue]
    > fresh Windows XP, installed Java 1.4.1_05 on the system, then installed[/color]
    the[color=blue]
    > game. The updater ran fine, but the client failed to run. It threw null
    > pointer exceptions when it tried to load the graphics from the graphics[/color]
    jar[color=blue]
    > file (AndromedaGFX.j ar)
    >
    >
    >
    > Strange as this may sound, this problem SEEMS to only to occur on newly
    > installed JRE's.
    >
    >
    >
    > The problem appears to be that the client is not reading graphics from the
    > associated graphics jar. The updater is small, so we were able to include
    > its graphics with the updater, instead of in a separate jar, which is
    > probably why the updater works fine.
    >
    >
    >
    > If we take the bad Andromeda game folder, copy it to another computer[/color]
    with[color=blue]
    > Java on it, the game works fine. But copy the folder back to the freshly
    > installed computer, and it won't work.
    >
    >
    >
    > We suspected a classpath issue, but there's a classpath info in the client
    > jar which should prevent this. Further, we've updated all the classpath
    > information on the new installation, aswel as path, and JAVA_HOME
    > environmental variables. None of it worked (it is interesting to note that
    > classpath isn't set on the working machine, it gets that from the client
    > manifest).
    >
    >
    >
    > We've had this problem reported on three windows machines and have been
    > unable to fix it. On at least 5 machines it appears to runs fine. We[/color]
    haven't[color=blue]
    > a clue what is causing this problem. It does not appear to be the game or
    > the code, as copying the game folder from a "bad" machine to a "good" one
    > allows the client within the folder to work.
    >
    >
    >
    > It's very strange, and ALL of us here are stumped. We go to beta soon, and
    > obviously this is a serious problem. Again, as strange as it sounds, the
    > only common thread is new installs of java where none existed. Install[/color]
    java[color=blue]
    > on your machine (any 1.4.1 or higher), and the client can't load it's own
    > graphics files (copy of client manifest below).
    >
    >
    >
    > If you'd like to see the basic files, they can be found at
    > http://www.aepox.net/andromeda/Downl...omedaBasic.zip. This includes
    > the updater and client, as well as the libraries. If you run the updater
    > (AndromedaOnlin e.jar) it will attempt to download the graphics package
    > (AndromedaGFX.j ar). If you want to download the entire package (graphics[/color]
    and[color=blue]
    > everything) it's at
    > http://www.aepox.net/andromeda/Downl...medaOnline.zip
    >
    >
    >
    > Thank you for your time. Any thoughts as to the cause of this troublesome
    > problem would be MUCH appreciated.
    >
    >
    >
    > Nick Soutter
    >
    > Aepox Games
    >
    >
    >
    > Manifest-Version: Version 1.0
    >
    > Specification-Title: Andromeda GameClient Classes
    >
    > Class-Path: lib/jmf.jar;Androme daGFX.jar;Andro medaSFX.jar;
    >
    > Main-Class: com.andromeda.g ameclient.PreGa meClient
    >
    > Implementation-Title: com.andromeda.g ameclient
    >
    > Specification-Vendor: Aepox Games
    >
    > Specification-Version: 1.0
    >
    > Implementation-Version: 40119
    >
    > Name: com/andromeda/gameclient
    >
    > Implementation-Vendor: Aepox Games
    >
    >[/color]


    Comment

    • hiwa

      #17
      Re: Problem Solved!

      "BlackHawke " <blackhawke@leg acygames.net> wrote in message news:<h%3Qb.232 19$1e.2838@news read2.news.pas. earthlink.net>. ..

      That's not worth posting on a public forum because you have
      not shown the relevant code.

      Comment

      • hiwa

        #18
        Re: Problem Solved!

        "BlackHawke " <blackhawke@leg acygames.net> wrote in message news:<h%3Qb.232 19$1e.2838@news read2.news.pas. earthlink.net>. ..

        That's not worth posting on a public forum because you have
        not shown the relevant code.

        Comment

        • PerfectDayToChaseTornados

          #19
          Re: Problem Solved!



          "hiwa" <HGA03630@nifty .ne.jp> wrote in message
          news:6869384d.0 401230208.26f9f 42a@posting.goo gle.com...
          | "BlackHawke " <blackhawke@leg acygames.net> wrote in message
          news:<h%3Qb.232 19$1e.2838@news read2.news.pas. earthlink.net>. ..
          |
          | That's not worth posting on a public forum because you have
          | not shown the relevant code.

          I disagree, I think it is good manners to say thanks for the help which you
          have received :-)
          --
          -P


          Comment

          • PerfectDayToChaseTornados

            #20
            Re: Problem Solved!



            "hiwa" <HGA03630@nifty .ne.jp> wrote in message
            news:6869384d.0 401230208.26f9f 42a@posting.goo gle.com...
            | "BlackHawke " <blackhawke@leg acygames.net> wrote in message
            news:<h%3Qb.232 19$1e.2838@news read2.news.pas. earthlink.net>. ..
            |
            | That's not worth posting on a public forum because you have
            | not shown the relevant code.

            I disagree, I think it is good manners to say thanks for the help which you
            have received :-)
            --
            -P


            Comment

            • BlackHawke

              #21
              Re: Problem Solved!

              Well PerfectDay, I think perhaps hiwa meant the problem was not worth
              posting, not the "Thanks" (though I appreciate your defense).

              I do disagree with hiwa, however.

              I thought the issue would be a classpath issue or something else someone
              might have seen before. I didn't post the relative code because, well, I
              didn't know what the relevant code might be. The errors were in multiple
              class files. I had no way of knowing it was the loader. If I did, I'd have
              posted the loader code, but I'd also have known what the problem was, so I
              wouldn't have had to post.

              When someone requested a segment (the runtime.exe code), I happily posted
              it.

              And I would not have found the problem had I not seen the post (which I
              can't seem to find now) which recommended checking the loader code. That
              post lead directly to us finding the problem, and was a huge help (all the
              suggestions were great, and one was right!)

              So I will respectfully have to disagree with hiwa.

              Nick Soutter


              Comment

              • BlackHawke

                #22
                Re: Problem Solved!

                Well PerfectDay, I think perhaps hiwa meant the problem was not worth
                posting, not the "Thanks" (though I appreciate your defense).

                I do disagree with hiwa, however.

                I thought the issue would be a classpath issue or something else someone
                might have seen before. I didn't post the relative code because, well, I
                didn't know what the relevant code might be. The errors were in multiple
                class files. I had no way of knowing it was the loader. If I did, I'd have
                posted the loader code, but I'd also have known what the problem was, so I
                wouldn't have had to post.

                When someone requested a segment (the runtime.exe code), I happily posted
                it.

                And I would not have found the problem had I not seen the post (which I
                can't seem to find now) which recommended checking the loader code. That
                post lead directly to us finding the problem, and was a huge help (all the
                suggestions were great, and one was right!)

                So I will respectfully have to disagree with hiwa.

                Nick Soutter


                Comment

                Working...