Jump to content
IGNORED

jStella applet difficulties...


Dragnerok X

Recommended Posts

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. :)

Link to comment
Share on other sites

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. :thumbsup:

 

I'll finish this as soon as I can (it will probably be up tomorrow), and will take a look at my computer... :ponder:

 

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 by Dragnerok X
Link to comment
Share on other sites

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. :ponder:

 

Oh, BTW, Is there a way allow 2-player support over the applet?

Link to comment
Share on other sites

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. :ponder:

 

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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. :thumbsup:

 

I'll gladly update whenever you have the .jar ready.

Link to comment
Share on other sites

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. :thumbsup:

 

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

Link to comment
Share on other sites

Got it. It took me about an hour to re-document the controls but I'd say the feature was well worth it. :D

 

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 by Dragnerok X
Link to comment
Share on other sites

Got it. It took me about an hour to re-document the controls but I'd say the feature was well worth it. :D

 

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...