OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Games => Topic started by: TNG999 on February 07, 2023, 04:55:13 pm

Title: Minecraft
Post by: TNG999 on February 07, 2023, 04:55:13 pm
Hi all,

Ok don't fire me...  does OS/2-ArcaOS have a new enough Java to run Minecraft?

I tried copying the jar file off but couldn't get the syntax to get it to try to run....

Thanks......  We play a lot of Minecraft at our house.  :)

-m
Title: Re: Minecraft
Post by: Martin Iturbide on February 07, 2023, 06:12:08 pm
Hi TNG999

Our Java level is 1.6.0_27 (OpenJDK). You can run a "java -version" to check it.  For what I read Minecraft required Java 1.8, but maybe some other components for graphics is required that we may not have ported to ArcaOS.

Regards
Title: Re: Minecraft
Post by: Martin Iturbide on February 07, 2023, 07:51:52 pm
Hi

Also there is no Minecraft on the browser (Dooble), because we are missing WebGL.

https://classic.minecraft.net/ (https://classic.minecraft.net/)

Regards
Title: Re: Minecraft
Post by: TNG999 on February 07, 2023, 11:37:38 pm
I found a tutorial..

javaw.exe -jar <minecraftfile.jar>

Gets error "Could not find the main class:  net.minecraft.client.Main.  Program will exit."

Ah well, had to try.  :)

Well, there's a whole bunch of other folders for it on my Windows machine... maybe I'll try copying all of it over and mess around a bit.  Will reply back later.

-m
Title: Re: Minecraft
Post by: Dave Yeo on February 08, 2023, 12:30:10 am
Perhaps.
Code: [Select]
SET CLASSPATH=
rem adjust to where you have openjdk6 installed
set PATH=x:\openjdk6\bin;%PATH%
javaw -Xmx400M -jar minecraftfile.jar
Also try java instead of javaw. IIRC, Java is case sensitive too.

Edit, added -Xmx400M, might only work with java, not javaw

Title: Re: Minecraft
Post by: Ibrahim Hakeem on February 08, 2023, 02:35:00 am
From personal memory, even the releases of Minecraft which can run under OpenJDK 6 will not start due to the OpenGL requirements.

The only 3D Java game I was ever able to run was Oldschool RS (Version of Runescape from 2007) until they increased the Java requirements a few years back. Keep in mind, that game runs entirely off a software renderer.
Title: Re: Minecraft
Post by: JPM on July 26, 2023, 05:53:34 pm
Would it be possible to compile and run ClassiCube for OS/2?

https://github.com/UnknownShadow200/ClassiCube#compiling---other-desktop-oses (https://github.com/UnknownShadow200/ClassiCube#compiling---other-desktop-oses)
Title: Re: Minecraft
Post by: Jochen Schäfer on July 26, 2023, 06:00:19 pm
Would it be possible to compile and run ClassiCube for OS/2?

https://github.com/UnknownShadow200/ClassiCube#compiling---other-desktop-oses (https://github.com/UnknownShadow200/ClassiCube#compiling---other-desktop-oses)
I'm working on it.
Title: Re: Minecraft
Post by: Jochen Schäfer on April 03, 2024, 11:31:16 pm
I have made an initial port of ClassiCube. You need to install libcurl to automatically download the assets be able to connect to servers.
Please unpack the exe in an separate directory because the assets will be created in the same directory where the exe is.
There is no sound ATM, and drawing is slow and buggy, but everything works,  including connecting to a server.
Have fun.
Title: Re: Minecraft
Post by: Martin Iturbide on April 04, 2024, 12:35:37 am
Thanks Joschen, it fun to try this things.

I did a "yum install SDL2 libcurl" and now I can run it.

The drawing is very buggy here. I can not move, I only see the hammer moving. I can not see the pointer or move at all with the mouse. I guess this is what you mean in your post.

But there is something else. I can not type my user name (not mandatory), it types any weird thing there, is that also happening to you?

But it is very fun to see that you were able to port it to this stage. Thanks.

Regards
Title: Re: Minecraft
Post by: Jochen Schäfer on April 04, 2024, 07:46:11 am
No, I could enter my ClassiCube credentials and got to the server list.
Movement is WASD.
Perhaps I should test this on another machine.
Title: Re: Minecraft
Post by: Martin Iturbide on April 04, 2024, 02:51:59 pm
Hi

I forget to tell you that I tried it first on a ArcaOS 5.1 VM. I will try it on real hardware.

Regards
Title: Re: Minecraft
Post by: Martin Iturbide on April 05, 2024, 03:51:49 am
Hi again

I got similar results on real hardware (Thinkpad T14s). It displays the same way. With the WASD keys I can not exactly notice movement, I think the hammers moves a little bit.
But it is nice to see progress.

Regards
Title: Re: Minecraft
Post by: Jochen Schäfer on April 05, 2024, 09:26:56 am
Anyone else testing ClassiCube?
Title: Re: Minecraft
Post by: TeLLie on April 05, 2024, 09:36:41 am
Anyone else testing ClassiCube?
Hi Jochem,

I just started it and ask for some updates,  i could fill in name and pass, only couldnot register.
When starting the game i had no mouse in the game.
Looks good ...
I run it in a VM with Arcanoae 5.0.1

Kinds regards, Tellie
Title: Re: Minecraft
Post by: Jochen Schäfer on April 05, 2024, 10:34:20 am
When you are saying "no mouse", do you mean a pointer?
The game captures the mouse and no pointer, and no crosshair is shown.
If you press ESC to get into the game menu, then you get a mouse pointer again.
Title: Re: Minecraft
Post by: Martin Iturbide on April 05, 2024, 02:24:39 pm
Hello
When you are saying "no mouse", do you mean a pointer?
The game captures the mouse and no pointer, and no crosshair is shown.
In my case, it is the behavior that you said.
The mouse does not produce any movement on the game. But I do see a white crosshair in the middle.
With ESC I can get the mouse pointer back.

Regards
Title: Re: Minecraft
Post by: Dave Yeo on April 05, 2024, 04:58:52 pm
I gave it a quick try. Seemed to work at about 12 fps, didn't try to register, mouse pointer seemed stuck in the middle though it seemed to work when I moved it.
No idea how to play the game.
Title: Re: Minecraft
Post by: David McKenna on April 07, 2024, 02:59:02 pm
Jochen,

 I gave ClassiCube a try and here I was able to run a single-player game - couldn't register for the server. Getting around 10fps, and can move the view by moving the mouse. Rendering is not very clear, I can't even tell what it is supposed to be showing - similar to what Martin shows. Sound and Music do not work (and can't be changed from a value of '0'). I tried all the setup parameters, but nothing helped. Not familiar with this game, so not sure how to play it...

Regards,

P.S. Did you ever finish PRBoom?
Title: Re: Minecraft
Post by: Jochen Schäfer on April 07, 2024, 11:05:08 pm
There is no sound support yet, and yes, the SoftGPU renderer is dog slow and buggy as hell. I had to fix a couple of bugs to get it running.
I haven't tested registration yet, but login should work, when you have a ClassiCube login (go to the website).

PS: PrBoom is finished, but I have problem with the packaging. Perhaps I should simply zip it, and be done with it.
Title: Re: Minecraft
Post by: Jochen Schäfer on April 08, 2024, 09:22:16 am
Re "Register": The Button only tries to execute an URL, which on other platforms opens the default browser with the URL. I don't know, how to fix that. Perhaps somebody has done something similar and can tell me.

Can somebody please test the open and save dialogs. You get there my starting a game and pressing ESC to get to the pause menu. There select "Load level" and click and down in the middle on "Load file".
As of today, the file dialogs are always crashing Classicube. I can't find any crash logs, and the IBM C debugger crashes, too.
I'm stumped, because I had it running.
Title: Re: Minecraft
Post by: Martin Iturbide on April 08, 2024, 02:15:35 pm
Hello.
PS: PrBoom is finished, but I have problem with the packaging. Perhaps I should simply zip it, and be done with it.
Is this a new build that haven't been posted. Just let it free to try it out :)

Regards
Title: Re: Minecraft
Post by: David McKenna on April 09, 2024, 12:25:55 am
Jochen,

  'Save' and 'Load' seems to work fine here as far as I can tell. I saved 2 different levels and restored them a couple of times each and it always worked.

Regards,
Title: Re: Minecraft
Post by: Martin Iturbide on April 09, 2024, 12:47:23 am
Hi David

Getting around 10fps, and can move the view by moving the mouse. ...
I think I have your same experience, with the exception of moving with the mouse. How do you know it is moving, does the image/background moves?

Do you use SNAP or Panorama. In my case I used Panorama on real hardware.

Regards
Title: Re: Minecraft
Post by: Pete on April 09, 2024, 01:15:10 am
Hi Jochen

Re "Register": The Button only tries to execute an URL, which on other platforms opens the default browser with the URL. I don't know, how to fix that. Perhaps somebody has done something similar and can tell me.



You need to read the os2.ini file to get default browser (and profile) data then use DosExecPgm to start browser with profile data and website url as parameter.

Happy to send you the code I used in USBcfg - it is in Pascal but that is not too different from c.


Regards

Pete
Title: Re: Minecraft
Post by: Dave Yeo on April 09, 2024, 01:19:34 am
Hi David

Getting around 10fps, and can move the view by moving the mouse. ...
I think I have your same experience, with the exception of moving with the mouse. How do you know it is moving, does the image/background moves?

Do you use SNAP or Panorama. In my case I used Panorama on real hardware.

Regards

Hi Martin, here the background/view changes when I move the mouse. Using Panorama on real hardware
Title: Re: Minecraft
Post by: Jochen Schäfer on April 09, 2024, 09:33:22 am
Hi Jochen

Re "Register": The Button only tries to execute an URL, which on other platforms opens the default browser with the URL. I don't know, how to fix that. Perhaps somebody has done something similar and can tell me.



You need to read the os2.ini file to get default browser (and profile) data then use DosExecPgm to start browser with profile data and website url as parameter.

Happy to send you the code I used in USBcfg - it is in Pascal but that is not too different from c.


Regards

Pete
Thanks, I'd like to have your code. I can read Pascal ;-)
Title: Re: Minecraft
Post by: Jochen Schäfer on April 09, 2024, 09:39:42 am
Hi David

Getting around 10fps, and can move the view by moving the mouse. ...
I think I have your same experience, with the exception of moving with the mouse. How do you know it is moving, does the image/background moves?

Do you use SNAP or Panorama. In my case I used Panorama on real hardware.

Regards

Hi Martin, here the background/view changes when I move the mouse. Using Panorama on real hardware
The frames are displayed one after another. So it can take some time until all mouse movements are worked through and get displayed. Sorry, SoftGPU is really really slow.
You can get some more frames out of it, when you set the view distance in the options menus.
Title: Re: Minecraft
Post by: Pete on April 09, 2024, 04:35:33 pm
Hi Jochen

Sent you a PM with my code.

Hope it is of help.


Pete

Title: Re: Minecraft
Post by: Jochen Schäfer on April 09, 2024, 06:10:26 pm
Thanks a lot. I will look into it, and try to code something from your example.
Title: Re: Minecraft
Post by: Jochen Schäfer on April 11, 2024, 09:22:35 am
I created a new version with support to open URLs. Can somebody please test it.
How would I change the default browser settings? Is there some frontend for that? Or do I have to use an Ini editor to do that?
Title: Re: Minecraft
Post by: David McKenna on April 11, 2024, 12:36:50 pm
Hi Jochen,

  Tried this new version of classicube, and trying to register, the web browser (SeaMonkey in this case) does open, but it opens on my home page, not the registration page.

  I use IAIUtil to edit the web apps in OS2.INI (IAI_1.0.9.2 on Hobbes). It requires the VPREXX.DLL runtime (found in VisiPro Rexx also on Hobbes).

Regards,

Title: Re: Minecraft
Post by: Jochen Schäfer on April 11, 2024, 12:56:50 pm
Hi Jochen,

  Tried this new version of classicube, and trying to register, the web browser (SeaMonkey in this case) does open, but it opens on my home page, not the registration page.
I saw that behaviour, too, but on my last test Firefox opened with a new window and the URL. Strange.

  I use IAIUtil to edit the web apps in OS2.INI (IAI_1.0.9.2 on Hobbes). It requires the VPREXX.DLL runtime (found in VisiPro Rexx also on Hobbes).

Regards,
Thanks for the tip, I will look into it.
Title: Re: Minecraft
Post by: Dave Yeo on April 11, 2024, 04:08:36 pm
Testing here, it opened SM fine, but only about: (http://about:) came up, like you're not passing the URL to the browser.
Title: Re: Minecraft
Post by: Jochen Schäfer on April 11, 2024, 05:33:23 pm
I'm absolutely positive, that I have a non-empty URL as an argument to the exe path, when calling DosExecPgm.
But, that's what's testing for ;-)
Title: Re: Minecraft
Post by: Dave Yeo on April 11, 2024, 06:40:47 pm
Tested again, this time with the browser shutdown. It worked, bringing up https://www.classicube.net/acc/register/ (https://www.classicube.net/acc/register/). Once SeaMonkey was running, tried again, new window with about: (http://about:) once again came up.
Noticed that when I started ClassicCube from a command prompt, the prompt output was,
Code: [Select]
F:\games\ClassiCube>ClassiCube.exe
Starting ClassiCube 1.3.6 ..
Adding http://cs.classicube.net/client/builds.json (type 0)
Fetching http://cs.classicube.net/client/builds.json (GET)
HTTP: result 0 (http 200) in 322 ms (94 bytes)
Going back to sleep...
Going back to sleep...
DIVE is disabled - Panorama's shadow-buffer is enabled
[calBackendLoader] Using libical backend at Z:\mozprofiles\Mozilla\SeaMonkey\Profiles\2nf8z26q.new\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}\components\libical-manifest
DIVE is disabled - Panorama's shadow-buffer is enabled
Closing ClassicCube left the cmd prompt looking like it was still open and when I pressed CTRL-C, not only did ClassicCube finish closing, so did SeaMonkey.
On the command line, entering "seamonkey https://www.classicube.net/acc/register/" works as expected, new window opens with the page loaded.
Seems like DosExecPgm needs something like "start" to have a new instance of the browser.
Title: Re: Minecraft
Post by: Dave Yeo on April 11, 2024, 06:51:41 pm
Looking at the documentation, I guess you need to pass one as the execFlag parameter instead of zero.
Edit: Remember to test both with the browser running and not running.
Edit2: or perhaps DosStartSession() would be better to use.
Title: Re: Minecraft
Post by: Rich Walsh on April 11, 2024, 07:52:17 pm
How would I change the default browser settings?

You don't need a third-party app. Open any URL object's Properties to the 'Browser' tab, fill in the details, then press the 'Set Default' button below.The info ends up in os2.ini->WPURLDEFAULTSETTINGS->DefaultBrowserExe and ->DefaultWorkingDir.

perhaps DosStartSession() would be better to use.

If this is linked as a PM app or gets morphed into one, use WinStartApp() - much easier.
Title: Re: Minecraft
Post by: Jochen Schäfer on April 12, 2024, 09:59:34 am
Well, I just got DosExecPgm working (added the exe name to the parameter list).

@Rich: Does WinStartApp detach from the parent (apart from the sending the termination message)? Other advantages over DosExecPgm?
Title: Re: Minecraft
Post by: David McKenna on April 12, 2024, 12:11:15 pm
Hi Jochen,

  This last version does open the browser on the register page - thanks!

Regards,
Title: Re: Minecraft
Post by: Dave Yeo on April 12, 2024, 04:13:08 pm
Hi Jochen,

  This last version does open the browser on the register page - thanks!

Regards,

Same, opens fine.
Thanks