Cottage nearing 1.000.000 visits

My previous pet project Cottage is still quite popular as it seems 8).
I didn’t work on it a while but others did; you gotta love open source :-* ;D

If you don’t know it yet, it’s an arcade machine emulator currently supporting over a 100 games, it’s somewhat based on MAME and it’s built on my JEF (Java Emulation Framework) package (which is still in alpha stage though).
Give it a try at http://cottage.emuunlim.com and help the hit counter a bit :wink:

Ok, I admit that was a shameless plug ;D

Greetings,
Erik

Tried to play 1942 on my PowerBook…

Java™ Plug-in: Version 1.4.1_01
Using JRE version 1.4.1_01 Java HotSpot™ Client VM

java.lang.NullPointerException
at java.lang.String.compareTo(String.java:747)
at cottage.CottageDriver.lookupGame(Unknown Source)
at cottage.CottageDriver.getMachine(Unknown Source)
at cottage.Cottage.main(Unknown Source)
at jef.video.GfxProducer.run(Unknown Source)
at java.lang.Thread.run(Thread.java:554)

I didn’t bother to try anything else.

[quote]Tried to play 1942 on my PowerBook…
[/quote]
Works for me and I also run 1.4.1_01. :-/ Must be something wrong on your side.

EDIT: I’ve also checked the code which fails on your machine. I really have no idea how that could fail… :-[

Hah, 1,000,921 hits already 8)

A timing problem maybe? I can’t figure what would be wrong with my system, unless this is exposing a bug in Apples recently released 1.4.1 JRE.

I tried again and got the exact same error.

Works fine for me. Running it in the 1.4.1_02 plugin in Mozilla on Linux.

hmmm… all it does is take the game-driver name from the applet tag, go through a list of game-driver names to find a class name from the hardware driver. It’s all very straightforward.
Maybe there is a problem with getting an attribute from the applet tag in apples vm? :-/
(just a wild guess)

That is so cool, I’ve already cancelled my plans for tonight to look through the code. I am amazed!

[quote]I’ve already cancelled my plans for tonight to look through the code
[/quote]
Ouch, the code is pretty horrible in many places ;D but don’t hesitate to contact me if you have questions.

Erik

Just checked the HTML code on the Cottage site… it looks broken to me, no wonder it won’t work on the Mac with Safari…

What the heck is “DRIVER” the APPLET tag has no such attribute. It looks like this is meant to be a parameter to the applet, but that should be passed by a nested PARAM tag.

Hmmm, so you’re saying that the fact

driver   = getParameter("DRIVER");

works with IE is in fact a dirty, non-standard IE hack?

My HTML knowledge sucks. ::slight_smile:

Thanks,
Erik

swpalmer: Could you please check if http://www.mycgiserver.com/~movegaga/mspacman.htm works?
That one has the PARAM nested elements like you described.

Thanks,
Erik

That page works better… but fails after loading the applet fully. here is the console output:

Java™ Plug-in: Version 1.4.1_01
Using JRE version 1.4.1_01 Java HotSpot™ Client VM
User home directory = /Users/scottpalmer
Proxy Configuration: No proxy

CottAGE version 0.13 ONLINE TEST 11/04/2003
Built with Java Emulation Framework (JEF) version 1.0 Beta 4
Trying to select driver ‘mspacman’…Ok!
Loading 5e(5c281d01)…Ok!
Loading 5f(615af909)…Ok!
Loading boot1(d16b31b7)…Ok!
Loading boot2(d32de5e)…Ok!
Loading boot3(1821ee0b)…Ok!
Loading boot4(165a9dd8)…Ok!
Loading boot5(8c3e6de6)…Ok!
Loading boot6(368cb165)…Ok!
Loading 82s123.7f(2fc650bd)…Ok!
Loading 82s126.4a(3eb3a8e4)…Ok!
Starting…
Ms. Pac-Man
1981 - Bootleg
Sound initializing…
javax.sound support detected.
SoundChip emulators found:1
Sound initialized successfully.
SoundChip jef.sound.chip.Namco@de891b initialized.
Running…

But after that the applet does nothing. All I get is a blank white space where the game is supposed to be.

We just decided to drop java 1.1 support (so M$ VM will not work anymore) and force people to upgrade to 1.4.

  • Muhahahahaha -

BTW, Yes that is a very dirty hack in IE. There is no way that it should work. As usual Microsoft does something to promote breaking standards.

swpalmer:

Did you not see the little swing window pop up asking you to enter your name?

Thanks,
Erik

[quote]BTW, Yes that is a very dirty hack in IE. There is no way that it should work. As usual Microsoft does something to promote breaking standards.
[/quote]
That’s what I feared. It’s so easy to fall for it.

Yes I did get the enter your name dialog. I entered my name. Most of those console msgs print after that dialog closes.

That is just weird ???
I have really no idea why it doesn’t work on a mac’s VM.