Blog: 2024-10-22

From razwiki
Revision as of 20:07, 22 October 2024 by Razzi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

http://jsfiddle.net/uzMPU minecraft javascript rendering demo

Getting the java version to work was quite a journey...

Screen Shot 2024-10-22 at 7.22.59 PM.png

The final working command:

appletviewer applet.html

Where

hack $ cat applet.html 
<applet code="M" width="500" height="500"></applet>

And the M.class is in the directory.

Along the way, I:

tar -xvf Minecraft 4k.rar
  • learned how to use /usr/libexec/java_home to find the location of Java 1.8
  • recompiled the decompiled version but got an error because the new class file wasn't compatible with old jre
  • learned how to use the java debugger (from appletviewer)
hack $ appletviewer -debug M.class
Initializing jdb ...
> run
run sun.applet.Main M.class
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
> 
VM Started: 
The application exited

Feels like retro computing... code that should be in a museum ... something like that.

This is where I got the rar link (a dozen posts down from the top): https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/1290821-minecraft-4k-improved-by-crunchycat-download-now

---

Also got this 2d minecraft one working: https://github.com/MinicraftPlus/minicraft-plus-revived