JavaGaming.org

March 21, 2010, 05:05:52 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
Advanced search  
Pages: [1] 2   Go Down
Print
Author Topic: Holy Shit! Mario 64 works on Java  (Read 2865 times)
0 Members and 1 Guest are viewing this topic.
kapta
Showcase Moderator
JGO Neuromancer
*****
Offline Offline

Gender: Male
Posts: 1223


★★★★★


View Profile
« on: November 20, 2009, 04:54:29 pm »

As so happens someone somewhere wrote an n64 emulator known as Project64, then dooglamoo ported it to java. I thought it'd be an interesting experiment to see if it could be run in a browser. So i've spent some time porting it to LWJGL and making it work as an applet.

Which gives you Super Mario 64 in your browser, complete with ingame saving so you can come back to it later and continue where you left off. Pretty impressive huh?



You can play here

note - its still pretty experimental and sound is borked, also reports of flickering on ATI cards (crappy drivers?).

p.s. sorry for the title it was a reference to the Holy shit! They made the flash version of DOOM!! post Wink

« Last Edit: November 20, 2009, 05:05:40 pm by kapta » Logged
xinaesthetic
Full Member
***
Offline Offline

Posts: 148



View Profile WWW
« Reply #1 on: November 20, 2009, 05:05:03 pm »

note - its still pretty experimental and sound is borked, also reports of flickering on ATI cards (crappy drivers?).
You can add to that a report from me of flickering on an nVidia 8600M GT in Vista, driver 190.89
Logged
i30817
Full Member
***
Offline Offline

Posts: 166


View Profile
« Reply #2 on: November 20, 2009, 06:03:06 pm »

How do they do the dynarec that the original does?
(whatever - to - 86x assembly)
Logged
CommanderKeith
JGO Neuromancer
*******
Offline Offline

Gender: Male
Posts: 1147


View Profile
« Reply #3 on: November 20, 2009, 06:23:33 pm »

That is amazing! Great work with the port to LWJGL.

I saw some pretty serious flicker as well, it seemed like there were 2 versions of the game running - one that ran fine and another that would display white frames or old previousluy shown frames. As soon as you see it happening you'll probably know what the reason is straight away.
Logged

ewjordan
Full Member
***
Offline Offline

Posts: 230


View Profile
« Reply #4 on: November 20, 2009, 06:26:32 pm »

Crashing Safari and Firefox on OS X:

Code:
11/20/09 9:22:49 PM Safari[3812] *** Assertion failure in -[NSMenu removeItem:], /SourceCache/AppKit/AppKit-949.54/Menus.subproj/NSMenu.m:702
11/20/09 9:22:49 PM Safari[3812] *** CPerformer: ignoring exception 'Invalid parameter not satisfying: item != nil' raised during perform of selector 'sharedDelegate' on target 'ApplicationDelegate' with args '(null)'
11/20/09 9:22:49 PM Safari[3812] *** Assertion failure in -[NSMenu removeItem:], /SourceCache/AppKit/AppKit-949.54/Menus.subproj/NSMenu.m:702
11/20/09 9:22:53 PM [0x0-0x17b17b].com.apple.Safari[3812] Invalid memory access of location 0x1 eip=0x2b50a12e
11/20/09 9:22:59 PM com.apple.launchd[164] ([0x0-0x17b17b].com.apple.Safari[3812]) Exited abnormally: Bus error
Logged
kapta
Showcase Moderator
JGO Neuromancer
*****
Offline Offline

Gender: Male
Posts: 1223


★★★★★


View Profile
« Reply #5 on: November 20, 2009, 06:28:47 pm »

That is amazing! Great work with the port to LWJGL.

I saw some pretty serious flicker as well, it seemed like there were 2 versions of the game running - one that ran fine and another that would display white frames or old previousluy shown frames. As soon as you see it happening you'll probably know what the reason is straight away.

ah could explain the flickering will have a look at that, thx for the observation.
« Last Edit: November 20, 2009, 06:33:08 pm by kapta » Logged
kapta
Showcase Moderator
JGO Neuromancer
*****
Offline Offline

Gender: Male
Posts: 1223


★★★★★


View Profile
« Reply #6 on: November 20, 2009, 06:41:10 pm »

@CommanderKeith I've added a small fix, it might fix the flickering, could you try again? thanks


Crashing Safari and Firefox on OS X:
eww that looks like a nasty error.
Logged
CommanderKeith
JGO Neuromancer
*******
Offline Offline

Gender: Male
Posts: 1147


View Profile
« Reply #7 on: November 20, 2009, 06:48:02 pm »

Nice, that did the trick! Graphics are 100% smooth.

Wish I had those secret magic codes to fix my bugs so quickly  Cool
Logged

JL235
Full Member
***
Offline Offline

Gender: Male
Posts: 197



View Profile WWW
« Reply #8 on: November 20, 2009, 07:19:07 pm »

Graphics don't flicker for me, it all runs fine. However the sound is a complete mess. That's where the flickering occures for me.
Logged

StudioFortress.com - OpenGL games in your browser, Blog, Twitter.
TheAnalogKid
JGO Neuromancer
*******
Offline Offline

Gender: Male
Posts: 1214



View Profile WWW
« Reply #9 on: November 20, 2009, 07:22:07 pm »

Graphics don't flicker for me, it all runs fine. However the sound is a complete mess. That's where the flickering occures for me.
Same thing here. Great job kapta! That's so cool!
Logged

i30817
Full Member
***
Offline Offline

Posts: 166


View Profile
« Reply #10 on: November 20, 2009, 09:23:48 pm »

That fixed the flickering for me too.  Cool

So it was actually two apps?

And you might want to tell him you've ported his software to use LWJGL if he doesn't already know.
« Last Edit: November 20, 2009, 10:51:36 pm by i30817 » Logged
Demonpants
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2247


Looking For Work


View Profile WWW
« Reply #11 on: November 20, 2009, 10:12:13 pm »

Very very cool. Well done. Smiley Works better than the best Mac OS X N64 emulator.
Logged

See my work:
OTC Software


Current Project(s):
Agent: 00PK
Voodoo Vendetta
lhkbob
JGO Ninja
*****
Offline Offline

Gender: Male
Posts: 687



View Profile
« Reply #12 on: November 20, 2009, 10:15:09 pm »

Worked without nasty exceptions on Mac OS X on Safari for me.  Way to go!
Logged

xinaesthetic
Full Member
***
Offline Offline

Posts: 148



View Profile WWW
« Reply #13 on: November 21, 2009, 02:29:19 am »

Well done, the flickering seems to be fixed now, but I'm still having problems with the sound as well (didn't mention that before).
Logged
h3ckboy
JGO Wizard
********
Offline Offline

Posts: 1340


View Profile WWW
« Reply #14 on: November 21, 2009, 03:50:55 am »

NICE!

that is amazing.

did yuo port the emulator or the game?

by that I mean, how much effort would it take you to change it to another game?
Logged
xinaesthetic
Full Member
***
Offline Offline

Posts: 148



View Profile WWW
« Reply #15 on: November 21, 2009, 04:32:18 am »

I presume the emulator was ported.

Incidentally, I tried dooglamoo; it didn't seem to load Mario by default so I loaded a Zelda rom I had lying around, and it had similar problems with audio.
Logged
gouessej
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 2219


TUER


View Profile WWW
« Reply #16 on: November 21, 2009, 04:36:49 am »

It works fine, it is a bit slow on my machine but quite playable. I get this when I leave the game:
Quote
java.lang.InterruptedException
   at java.lang.Object.wait(Native Method)
   at java.lang.Thread.join(Thread.java:1143)
   at java.lang.Thread.join(Thread.java:1196)
   at jario64.AppletMain.stopLWJGL(Unknown Source)
   at jario64.AppletMain.access$0(Unknown Source)
   at jario64.AppletMain$2.removeNotify(Unknown Source)
   at java.awt.Container.removeNotify(Container.java:2591)
   at java.awt.Container.removeNotify(Container.java:2591)
   at java.awt.Container.removeNotify(Container.java:2591)
   at java.awt.Container.removeAll(Container.java:1197)
   at sun.plugin.viewer.frame.XNetscapeEmbeddedFrame.windowClosing(XNetscapeEmbeddedFrame.java:31)
   at java.awt.Window.processWindowEvent(Window.java:1845)
   at java.awt.Window.processEvent(Window.java:1803)
   at java.awt.Component.dispatchEventImpl(Component.java:4501)
   at java.awt.Container.dispatchEventImpl(Container.java:2081)
   at java.awt.Window.dispatchEventImpl(Window.java:2458)
   at java.awt.Component.dispatchEvent(Component.java:4331)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Clear up
org.lwjgl.LWJGLException: X Error - disp: 0x811cbe8 serial: 18460 error: BadValue (integer parameter out of range for operation) request_code: 145 minor_code: 9
   at org.lwjgl.opengl.LinuxDisplay.globalErrorHandler(LinuxDisplay.java:284)
   at org.lwjgl.opengl.GL11.nglClear(Native Method)
   at org.lwjgl.opengl.GL11.glClear(GL11.java:584)
   at lwjglgfx.OpenGlGdp.OGL_ClearDepthBuffer(Unknown Source)
   at lwjglgfx.rdp.Gdp.gDPFillRectangle(Unknown Source)
   at lwjglgfx.opcodes.Rdpfuncs2$12.exec(Unknown Source)
   at lwjglgfx.rsp.Gsp.RSP_ProcessDList(Unknown Source)
   at lwjglgfx.OpenGl.display(Unknown Source)
   at lwjglgfx.GLN64jPlugin.processDList(Unknown Source)
   at jario64.Rsp.runRsp(Unknown Source)
   at jario64.Memory.swNonMemory(Unknown Source)
   at jario64.Memory.storeWord(Unknown Source)
   at jario64.Cpu$45.run(Unknown Source)
   at jario64.Cpu.executeInstruction(Unknown Source)
   at jario64.Cpu.access$16(Unknown Source)
   at jario64.Cpu$64.run(Unknown Source)
   at jario64.Cpu$3.run(Unknown Source)
   at jario64.Cpu.startInterpreterCPU(Unknown Source)
   at jario64.Cpu.startEmulation(Unknown Source)
   at jario64.Main.startRom(Unknown Source)
   at jario64.Main.initApplet(Unknown Source)
   at jario64.AppletMain$1.run(Unknown Source)
Exception in thread "pool-1-thread-1" java.lang.IllegalMonitorStateException
   at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:127)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1175)
   at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:431)
   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:369)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
   at java.lang.Thread.run(Thread.java:619)
Logged

kapta
Showcase Moderator
JGO Neuromancer
*****
Offline Offline

Gender: Male
Posts: 1223


★★★★★


View Profile
« Reply #17 on: November 21, 2009, 05:11:07 am »

Graphics don't flicker for me, it all runs fine. However the sound is a complete mess. That's where the flickering occures for me.

Unfortunately can't do much about the sound, It uses the original JavaSound Implementation which is a pretty poorly implemented. It'd probably run alot smoother using OpenAL but currently the sound code is a mess and i don't have the time or experience with OpenAL to port that part. However do note its only dooglamoo's first attempt at the sound plugin so may improve in the future.

I presume the emulator was ported.

you presume correctly.

how much effort would it take you to change it to another game?

very little effort.

I get this when I leave the game:

Ah, doesn't look too serious, but thats one long exception paste Smiley
« Last Edit: November 21, 2009, 05:14:13 am by kapta » Logged
TheAnalogKid
JGO Neuromancer
*******
Offline Offline

Gender: Male
Posts: 1214



View Profile WWW
« Reply #18 on: November 21, 2009, 05:22:40 am »

Yes, it seems to be a bit slow or the frame rate a bit low. Can I display the fps? Doesn't seem to be a CPU issue since mine was used between 50% and 60%.

Othen then that, I hope Nintendo nevers learns about that, especially with the virtual console on wii.
Logged

zammbi
JGO Ninja
*****
Offline Offline

Posts: 675


View Profile
« Reply #19 on: November 21, 2009, 05:29:59 am »

Works fine here.
I also have the sounds problem.

Not sure if its the game itself, or that the game isn't made for a keyboard but I found its controls annoying to play heh.
Logged
Demonpants
Global Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 2247


Looking For Work


View Profile WWW
« Reply #20 on: November 21, 2009, 01:01:31 pm »

Yes, it seems to be a bit slow or the frame rate a bit low. Can I display the fps? Doesn't seem to be a CPU issue since mine was used between 50% and 60%.

Othen then that, I hope Nintendo nevers learns about that, especially with the virtual console on wii.
Well, he can always provide access to the emulator with no legal issues, the only problem is if he continues to keep a direct link to Mario 64. Otherwise people can go download the ROM from one of a bagillion sites and then just load it in manually.
Logged

See my work:
OTC Software


Current Project(s):
Agent: 00PK
Voodoo Vendetta
DzzD
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 1567



View Profile WWW
« Reply #21 on: November 22, 2009, 12:50:49 pm »

wow

work very well ( seems a little slow ) but not that much very playable with a nice experience ( CPU :  80% on one and 40% on the other ).

I got a sound issue : like if I was underwater

but wow Shocked really impressive for an emulator
Logged

JL235
Full Member
***
Offline Offline

Gender: Male
Posts: 197



View Profile WWW
« Reply #22 on: November 23, 2009, 01:21:45 pm »

I forgot to say before, I was very impressed by this. It really goes to show what is possible with Java.
Logged

StudioFortress.com - OpenGL games in your browser, Blog, Twitter.
DoubleBarrel
JGO n00b
*
Offline Offline

Gender: Male
Posts: 28



View Profile
« Reply #23 on: November 23, 2009, 02:23:21 pm »

Wow I love this   Cheesy
Is this only a demo of the game? I can t progress to anywhere in the game in terms of storyline ... Sad
With regards to technicalities I have to repeat what have been already said ... cool gameplay (most of) but poor sound.
Thanks for your work man  Cool
Logged
steveyO
Full Member
***
Offline Offline

Gender: Male
Posts: 221



View Profile WWW
« Reply #24 on: November 23, 2009, 03:01:49 pm »

Holy f'in Shit..  Thats impressive to say the least!!
No flicker,, just sound probs as mentioned by others..
Logged

www.bullsquared.com   Play games, make friends, talk Bull!
CyanPrime
Sr. Member
****
Offline Offline

Gender: Male
Posts: 376



View Profile WWW
« Reply #25 on: November 23, 2009, 04:34:03 pm »

Wow! This is fantastic!
I put it on my blog for you, too ^_^
http://prime.programming-designs.com/?p=40#more-40
Logged


ewjordan
Full Member
***
Offline Offline

Posts: 230


View Profile
« Reply #26 on: November 24, 2009, 08:42:02 am »

Worked without nasty exceptions on Mac OS X on Safari for me.  Way to go!

Might be a Java version thing or a graphics card issue, then, I'll look into it a little later today.
Logged
ChrisM
Administrator
JGO Neuromancer
*****
Offline Offline

Posts: 1102


END OF LINE.


View Profile WWW
« Reply #27 on: November 24, 2009, 09:39:08 am »

Very impressive, posted about it on my blog.  I wish the guys who did the PS1 emulator back in JavaOne 2006 would release their code as their emulator was smoking hot.  I believe they were running 3 PS1 games at 30FPS at the same time on their laptop.  Crazy!
Logged

TheAnalogKid
JGO Neuromancer
*******
Offline Offline

Gender: Male
Posts: 1214



View Profile WWW
« Reply #28 on: November 24, 2009, 10:01:48 am »

Too bad the sound is crappy. But what's so great is that it seems to run better than with Project64, apart the sound. If I remember correctly there was flickering issues on Project64.
Logged

i30817
Full Member
***
Offline Offline

Posts: 166


View Profile
« Reply #29 on: November 26, 2009, 11:14:20 am »

Its probably a good idea to ditch the game loading/download now and just popup a filechooser for people to play their (legally dumped of course) games.

Would make startup faster even right?
Logged
Pages: [1] 2   Go Up
Print
 
Jump to: