OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Games => Topic started by: Martin Iturbide on April 09, 2020, 02:55:11 am

Title: Java Games
Post by: Martin Iturbide on April 09, 2020, 02:55:11 am
Hi

Going on with the idea of updating the Gaming site, I want to check the Java Games.

I have the issue that some games where applets running on the browser (that used to have a Java plugin). Today we don't have that support anymore and I don't know if someone knows some technique to run those with java.exe in some way.

For example this 1999 Breakout (https://www.os2world.com/games/index.php/java-games/action-menu/345-breakout) game.  I want to try to include a .cmd files on those games to make it easier to run for the OS/2 users.

Regards
Title: Re: Java Games
Post by: Joop on April 09, 2020, 09:23:19 pm
The breakout game is written as an applet and not as a standalone java program. It has to do with the internal structure. You have to rewrite it for a part and compile it into a JAR file.
Title: Re: Java Games
Post by: Martin Iturbide on April 09, 2020, 11:06:56 pm
Hi Joop.

I was reading about it. I will give it a try to change the source code of breakout and see what happens.

What would be required today to run an applet on the browser? Use Netscape or IBM Browser and an old java version that has a plugin? Any other ideas?

Regards
Title: Re: Java Games
Post by: Pete on April 10, 2020, 01:34:19 am
Hi Martin

Did icedtea - I think that is what the openjava plugin is called - get dropped or is it still in development?

Last time I tried it was years ago and it did not work very well at all.


Regards

Pete
Title: Re: Java Games
Post by: Dave Yeo on April 10, 2020, 03:27:32 am
The icetea plugin will crash the 45.9 based browsers, I think it'll work in the 38ESR and maybe 45.5 ones but make sure to remove it if using newer after testing.
Title: Re: Java Games
Post by: Martin Iturbide on April 10, 2020, 03:23:04 pm
Hi

I want to give it a try to IceTea and see how far can I get with it on ArcaOS and Firefox. Do you remember where should I get it and which version used to work.

Regards
Title: Re: Java Games
Post by: Dave Yeo on April 10, 2020, 04:31:10 pm
It's been a long time since I installed it. Probably http://trac.netlabs.org/java (http://trac.netlabs.org/java).
Title: Re: Java Games
Post by: Martin Iturbide on April 10, 2020, 05:38:43 pm
Thanks for the link (http://trac.netlabs.org/java/wiki/IcedTea-Web). I'm just read how to install Icetea and I had tried it on Firefox 38 and Firefox 45.

Both gave me similar results. It asks me to enable the plugin, I give them access, but it does not run.

Maybe breakout is too old. I will look for other applets to try it out.

Regards
Title: Re: Java Games
Post by: Joop on April 11, 2020, 06:42:54 pm
I was unable to find or download the source for building a new breakout. There is source for breakout games, but (very) different with the picture you have. There is a "manual" on the Oracle site how to rewrite this kind of applets because the function of building applets is withdrawn from Java. So there are hints and tips with how to, but you need at the bottom line the source, otherwise its a dead end.

Regards,
Joop
Title: Re: Java Games
Post by: Martin Iturbide on April 12, 2020, 02:15:14 am
Hi Joop

Which source code did you find? Here it is this one that is from the same author:
http://www.appletparadise.com/applets/Breakout/breakout.zip (http://www.appletparadise.com/applets/Breakout/breakout.zip)
Is that the one that you are trying?

Regards
Title: Re: Java Games
Post by: Joop on April 12, 2020, 01:55:26 pm
Hmm, mixed files, thought that the download was from this site, but its from your's. There is source in the file, ie java files. Have to look into, because it is not that simple to rewrite it in a fast way.
Title: Re: Java Games
Post by: Martin Iturbide on April 14, 2020, 12:01:22 am
Hi Joop.

Did you uploaded this on hobbes?
https://hobbes.nmsu.edu/.....breakout!-os2.zip (https://hobbes.nmsu.edu/?detail=%2Fpub%2Fjava%2Fgames%2Faction%2Fbreakout%21-os2.zip)

How does it works? There is one .exe there, but I don't understand how to make it work.

Regards
Title: Re: Java Games
Post by: Joop on April 14, 2020, 12:30:11 am
No, by the author. The difference is that there is an exe file for OS/2 which start the program and redirect to the browser. So not good news, won't work in most cases.
Tried to compile, first did change the awt calls to swing calls, swing version +100 errors, hybrid version +40 errors. As far as I can see it and reading the errors from the swing error log file I need to rewrite the complete program. This is more difficult then writing a program from the bottom up. I don't have the time now to do just that, moreover, need to investigate in some calls how to proceed on, it ain't be easy, special when it comes to "canvas".
Title: Re: Java Games
Post by: Joop on May 09, 2020, 08:53:47 pm
You can remove Wyvern from the list, program does install with some difficulty but it won't run because there is no server anymore and it needs the server to do something. The link is for sale so to speak.
Title: Re: Java Games
Post by: Martin Iturbide on May 09, 2020, 09:33:06 pm
Ohh, too bad for Wyvern. I just removed it.

Regards