OS2 World Community Forum
OS/2, eCS & ArcaOS - Technical => Games => Topic started 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
-
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
-
Hi
Also there is no Minecraft on the browser (Dooble), because we are missing WebGL.
https://classic.minecraft.net/ (https://classic.minecraft.net/)
Regards
-
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
-
Perhaps.
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
-
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.
-
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)
-
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.
-
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.
-
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
-
No, I could enter my ClassiCube credentials and got to the server list.
Movement is WASD.
Perhaps I should test this on another machine.
-
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
-
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
-
Anyone else testing ClassiCube?
-
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
-
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.
-
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
-
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.
-
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?
-
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.
-
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.
-
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
-
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,
-
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 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
-
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
-
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 ;-)
-
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.
-
Hi Jochen
Sent you a PM with my code.
Hope it is of help.
Pete
-
Thanks a lot. I will look into it, and try to code something from your example.
-
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?
-
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,
-
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.
-
Testing here, it opened SM fine, but only about: (http://about:) came up, like you're not passing the URL to the browser.
-
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 ;-)
-
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,
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.
-
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.
-
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.
-
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?
-
Hi Jochen,
This last version does open the browser on the register page - thanks!
Regards,
-
Hi Jochen,
This last version does open the browser on the register page - thanks!
Regards,
Same, opens fine.
Thanks