Dragnerok X Posted September 22, 2007 Share Posted September 22, 2007 Recently, I've been trying to integrate jStella into my Geocities website in order to play a few of the homebrew games I offer there. I'm able to get the java window up and visible, but the problem is, I get a red "x" on the upper left hand corner of the java window and this error message when trying to run it: JStella - detected cartridge type: F6 JStella display: YStart=37, DisplayHeight=196 Loaded : Cartridge : CartridgeF6; md5=de7bca4e569ad9d3fd08ff1395e53d2d load: class jstella.runner.JStellaApplet.class not found. java.lang.ClassNotFoundException: jstella.runner.JStellaApplet.class at sun.applet.AppletClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadCode(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: open HTTP connection failed. at sun.applet.AppletClassLoader.getBytes(Unknown Source) at sun.applet.AppletClassLoader.access$100(Unknown Source) at sun.applet.AppletClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) ... 10 more load: class jstella.runner.JStellaApplet.class not found. java.lang.ClassNotFoundException: jstella.runner.JStellaApplet.class at sun.applet.AppletClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadCode(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: open HTTP connection failed. at sun.applet.AppletClassLoader.getBytes(Unknown Source) at sun.applet.AppletClassLoader.access$100(Unknown Source) at sun.applet.AppletClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) ... 10 more ...and if this means anything, here's the code I've placed in for jStella. <applet archive="jstella.jar" code="jstella.runner.JStellaApplet.class" height="436" width="640"> <PARAM NAME=ROM VALUE="Combat_DX_-_Demo_6.bin"> Your browser doesn't seem to support applets. </applet> Any help would be appreciated. Quote Link to comment Share on other sites More sharing options...
Gregory DG Posted September 22, 2007 Share Posted September 22, 2007 Sorry for the dumb question, but you do have the "jstella.jar" in the same directory, right? And it's actually called "jstealla.jar?" Quote Link to comment Share on other sites More sharing options...
Dragnerok X Posted September 22, 2007 Author Share Posted September 22, 2007 (edited) Sorry for the dumb question, but you do have the "jstella.jar" in the same directory, right? And it's actually called "jstealla.jar?" Yes, I just named the .75 release jstella.jar for convenience sake. Edited September 22, 2007 by Dragnerok X Quote Link to comment Share on other sites More sharing options...
Dragnerok X Posted September 22, 2007 Author Share Posted September 22, 2007 If anything, here's a link to the page where I'm working on it. Perhaps someone else may have better luck. Quote Link to comment Share on other sites More sharing options...
+batari Posted September 22, 2007 Share Posted September 22, 2007 If anything, here's a link to the page where I'm working on it. Perhaps someone else may have better luck. Must be a browser problem or old version of Java on your end, since the game comes up just fine on my computer when I click the link. Quote Link to comment Share on other sites More sharing options...
Dragnerok X Posted September 22, 2007 Author Share Posted September 22, 2007 (edited) If anything, here's a link to the page where I'm working on it. Perhaps someone else may have better luck. Must be a browser problem or old version of Java on your end, since the game comes up just fine on my computer when I click the link. Good to hear. I'll finish this as soon as I can (it will probably be up tomorrow), and will take a look at my computer... EDIT: Just discovered what it was, the applet doesn't load properly when I access it from the "preview" mode of my webpage. Almost done setting it up, though. Edited September 22, 2007 by Dragnerok X Quote Link to comment Share on other sites More sharing options...
Dragnerok X Posted September 22, 2007 Author Share Posted September 22, 2007 (edited) The page is up. Edited September 22, 2007 by Dragnerok X Quote Link to comment Share on other sites More sharing options...
Mauvila Posted September 24, 2007 Share Posted September 24, 2007 Yes, it works for me too, at least the whole combat motif comes up...I don't know what stage of development the ROM is, but it wasn't able to move the tanks... JLA Quote Link to comment Share on other sites More sharing options...
Dragnerok X Posted September 24, 2007 Author Share Posted September 24, 2007 Yes, it works for me too, at least the whole combat motif comes up...I don't know what stage of development the ROM is, but it wasn't able to move the tanks...JLA It's almost done, actually. SeaGtGruff and I just need to add AI and Sound. The red tank moves, if you press F5 as I documented with "press F5 to activate manual tank control", in that once AI is added it would technically be "manual" tank control. Maybe I need to re-word that. Oh, BTW, Is there a way allow 2-player support over the applet? Quote Link to comment Share on other sites More sharing options...
Mauvila Posted September 24, 2007 Share Posted September 24, 2007 Yes, it works for me too, at least the whole combat motif comes up...I don't know what stage of development the ROM is, but it wasn't able to move the tanks...JLA It's almost done, actually. SeaGtGruff and I just need to add AI and Sound. The red tank moves, if you press F5 as I documented with "press F5 to activate manual tank control", in that once AI is added it would technically be "manual" tank control. Maybe I need to re-word that. Oh, BTW, Is there a way allow 2-player support over the applet? Sorry, it works fine. I didn't read carefully. There will be support for 2 (local) players...it's actually almost there now, but there just isn't a convenient way to establish control config via Applet parameters. Assuming we are discussing 2 LOCAL players (using the same keyboard), what does everyone think the default keyboard arrangement should be for both player 1 and player 2? JLA Quote Link to comment Share on other sites More sharing options...
Dragnerok X Posted September 24, 2007 Author Share Posted September 24, 2007 Sorry, it works fine. I didn't read carefully.There will be support for 2 (local) players...it's actually almost there now, but there just isn't a convenient way to establish control config via Applet parameters. Assuming we are discussing 2 LOCAL players (using the same keyboard), what does everyone think the default keyboard arrangement should be for both player 1 and player 2? JLA Yes, that's what I was referring to. My suggestion is.... Player 1: Arrow keys, space bar. Player 2: (W, S, A, D), left control Quote Link to comment Share on other sites More sharing options...
Mauvila Posted September 24, 2007 Share Posted September 24, 2007 Sorry, it works fine. I didn't read carefully.There will be support for 2 (local) players...it's actually almost there now, but there just isn't a convenient way to establish control config via Applet parameters. Assuming we are discussing 2 LOCAL players (using the same keyboard), what does everyone think the default keyboard arrangement should be for both player 1 and player 2? JLA Yes, that's what I was referring to. My suggestion is.... Player 1: Arrow keys, space bar. Player 2: (W, S, A, D), left control I've added some default keys for player B...since this is technically version 0.81, it isn't yet available as a JAR, but it is available in source code form on the CVS. Both space bar and enter will work as Player A buttons. Player B buttons are WSAD and Control to fire. Also, Y will fire as well. JLA Quote Link to comment Share on other sites More sharing options...
Dragnerok X Posted September 24, 2007 Author Share Posted September 24, 2007 I've added some default keys for player B...since this is technically version 0.81, it isn't yet available as a JAR, but it is available in source code form on the CVS.Both space bar and enter will work as Player A buttons. Player B buttons are WSAD and Control to fire. Also, Y will fire as well. JLA Good to know. I'll gladly update whenever you have the .jar ready. Quote Link to comment Share on other sites More sharing options...
Mauvila Posted September 25, 2007 Share Posted September 25, 2007 I've added some default keys for player B...since this is technically version 0.81, it isn't yet available as a JAR, but it is available in source code form on the CVS.Both space bar and enter will work as Player A buttons. Player B buttons are WSAD and Control to fire. Also, Y will fire as well. JLA Good to know. I'll gladly update whenever you have the .jar ready. I went ahead and built 0.81. You can download it from the following link: jstella_0_81.jar JLA Quote Link to comment Share on other sites More sharing options...
Dragnerok X Posted September 25, 2007 Author Share Posted September 25, 2007 (edited) Got it. It took me about an hour to re-document the controls but I'd say the feature was well worth it. Edit: I hate to give you more features to add; but is there any way someone could "preset" a difficulty switch setting for a particular game? I say this because with the way my (not yet existant) AI works, it might confuse people. Edited September 25, 2007 by Dragnerok X Quote Link to comment Share on other sites More sharing options...
Mauvila Posted September 25, 2007 Share Posted September 25, 2007 Got it. It took me about an hour to re-document the controls but I'd say the feature was well worth it. Edit: I hate to give you more features to add; but is there any way someone could "preset" a difficulty switch setting for a particular game? I say this because with the way my (not yet existant) AI works, it might confuse people. Go back to jstella.mauvila.com and get the jstella_0_82.jar file, and also the jstella.cfg file. The cfg file can be edited with a text editor (should be self-explanatory), and should be placed in the same directory as your jar and ROM. In your HTML applet tag, add the following parameter : <param name="CONFIGFILE" value="jstella.cfg"> This is new as of 10 minutes ago (version 0.82). JLA Quote Link to comment Share on other sites More sharing options...
Dragnerok X Posted September 26, 2007 Author Share Posted September 26, 2007 (edited) Thanks for the update. Combat DX Online is updated and couldn't be much better. Edited September 26, 2007 by Dragnerok X Quote Link to comment Share on other sites More sharing options...
+SpiceWare Posted September 26, 2007 Share Posted September 26, 2007 cool - is there a configfile setting for stereo? I tried parsing the source in CVS, but couldn't tell. Quote Link to comment Share on other sites More sharing options...
Mauvila Posted September 26, 2007 Share Posted September 26, 2007 cool - is there a configfile setting for stereo? I tried parsing the source in CVS, but couldn't tell. Not yet, but it may be possible to do right now using JavaScript... Quote Link to comment Share on other sites More sharing options...
Mauvila Posted September 27, 2007 Share Posted September 27, 2007 cool - is there a configfile setting for stereo? I tried parsing the source in CVS, but couldn't tell. If you build from the most recent code (JStella 0.83) via the CVS, you can use the following config item: jstella.stereomode=true Also, I made a getIntercessor() method, which should open up a whole lot to JavaScript. (There is now also a direct setStereoSound(boolean aEnabled) method that can be called directly on the applet from JavaScript). JLA Quote Link to comment Share on other sites More sharing options...
+SpiceWare Posted September 27, 2007 Share Posted September 27, 2007 Cool - I'll see if I can figure out how to do that this weekend. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.