Author Topic: Java Games  (Read 14042 times)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4937
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Java Games
« 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 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
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Java Games
« Reply #1 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.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4937
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Java Games
« Reply #2 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
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Pete

  • Hero Member
  • *****
  • Posts: 1331
  • Karma: +9/-0
    • View Profile
Re: Java Games
« Reply #3 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

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4982
  • Karma: +109/-1
    • View Profile
Re: Java Games
« Reply #4 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.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4937
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Java Games
« Reply #5 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
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4982
  • Karma: +109/-1
    • View Profile
Re: Java Games
« Reply #6 on: April 10, 2020, 04:31:10 pm »
It's been a long time since I installed it. Probably http://trac.netlabs.org/java.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4937
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Java Games
« Reply #7 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
« Last Edit: April 10, 2020, 05:40:37 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Java Games
« Reply #8 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

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4937
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Java Games
« Reply #9 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
Is that the one that you are trying?

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Java Games
« Reply #10 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.
« Last Edit: April 12, 2020, 02:02:57 pm by Joop »

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4937
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Java Games
« Reply #11 on: April 14, 2020, 12:01:22 am »
Hi Joop.

Did you uploaded this on hobbes?
https://hobbes.nmsu.edu/.....breakout!-os2.zip

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

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Java Games
« Reply #12 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".

Joop

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +5/-0
    • View Profile
Re: Java Games
« Reply #13 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.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4937
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Java Games
« Reply #14 on: May 09, 2020, 09:33:06 pm »
Ohh, too bad for Wyvern. I just removed it.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.