$10 for making a .class file usable

If nobody is able to help for free... let's try this way. No sellers allowed.
KWO1996
Posts: 2
Joined: Wed Jul 11, 2018 5:25 pm

$10 for making a .class file usable

Post by KWO1996 »

I know next to nothing about Java, but I found an old Java game made sometime between 1997-1999 called Rollerboy 1.

I managed to grab a .class file for it off of a site, but I have no idea how to make it playable.

If someone could help me, I'd be more than willing to pay using Paypal. Thanks a lot!
Liddius
Posts: 10
Joined: Tue Aug 14, 2018 10:36 pm

Re: $10 for making a .class file usable

Post by Liddius »

It's 1 month old but if you come back, post the .class file, I will see what I can do (and for free)
KWO1996
Posts: 2
Joined: Wed Jul 11, 2018 5:25 pm

Re: $10 for making a .class file usable

Post by KWO1996 »

Liddius wrote:It's 1 month old but if you come back, post the .class file, I will see what I can do (and for free)


Wow, thanks!

The forum wouldn't let me use the file uploader so I uploaded it to Google Drive.

https://drive.google.com/open?id=1FNetD ... A8N2AxbD3w
atom0s
Posts: 250
Joined: Sat Dec 27, 2014 8:49 pm

Re: $10 for making a .class file usable

Post by atom0s »

Biggest thing this looks to be missing is graphics files. It looks for a folder named /gfx/ which should hold the following images:
bgblock.gif, fgblock.gif, e0.gif, e1.gif, e2.gif, e3.gif, bajsmannen1.gif, bajsmannen2.gif, block-slime.gif, block-bush1.gif, block-bush2.gif, block-bush3.gif, block-bush4.gif, block-chrome.gif, block-black.gif, block-grad.gif, block-flower.gif, block-purple.gif, block-purple1.gif, block-purple2.gif, fire1.gif, fire2.gif, h0.gif, h1.gif, h2.gif, h3.gif, block-cloud1.gif, block-cloud2.gif, block-cloud3.gif, block-cloud4.gif, h-1.gif, h-2.gif, h-3.gif, h-4.gif, h-5.gif, h-6.gif, b-1.gif, b-2.gif, b-3.gif, b-4.gif, b-5.gif, b-6.gif, b-7.gif, b-8.gif, block-house.gif, block-housefade.gif, t0.gif, t1.gif, t2.gif, t3.gif, t4.gif, t5.gif, rollerboy.gif, arrow-right.gif, arrow-up.gif, arrow-down.gif, arrow-left.gif, ball.gif, brick-1.gif, brick-2.gif, fish.gif, bi1.gif, bi2.gif, pool.gif, heart.gif, p-rolll.gif, p-rollr.gif, p-breakl.gif, p-breakr.gif, p-jumpu.gif, p-jumpd.gif, eol.gif, bounce1.gif, bounce2.gif, water.gif, 1up.gif, nmiball.gif, boob.gif, gem0001.gif, gem0002.gif, gem0003.gif, gem0004.gif, gem0005.gif, gem0006.gif, gem0007.gif, gem0000.gif, spike0.gif, spike1.gif, spike2.gif, dollar.gif

Since those are missing its probably failing to load. It also looks for a param to applet 'scoreServerPath' or defaults to a cgi script that is loaded as a url. If that fails it throws an exception and dies too.
herbert3000
Posts: 6
Joined: Wed Nov 09, 2016 12:44 am

Re: $10 for making a .class file usable

Post by herbert3000 »

Got the other resources (gfx folder, 20 .class files, 5 level files) from archive.org:
https://www.mediafire.com/file/cojv87j79j3xyjr/rollerboy.zip/file

One problem remains: The game tries to get the highscores from a server (as atom0s mentioned earlier). Maybe this part of the code could be removed.
herbert3000
Posts: 6
Joined: Wed Nov 09, 2016 12:44 am

Re: $10 for making a .class file usable

Post by herbert3000 »

I managed to get it to work. You can download it here:
https://www.mediafire.com/file/jx5293seyt390b7/Rollerboy_build110_20190303.zip/file

Modern browsers won't allow you to run Java applets but you can start it from the command line (or just double-click the .bat file inside the bin folder). Requires a Java AppletViewer, which is included with the Java Development Kit (JDK).

There are 9 levels. The game will crash after the last level.
And I had to remove the code for loading and saving the highscores. Of course it would be possible to alter the code and save them locally, but I don't have the time for this.

Edit:
Here you can download the original .class files + resources:
https://web.archive.org/web/*/http://www.litecom.se/java/rollerboy/build110/*