Trail Rider (trailblazer clone)

ride the mad ball and tell me how far you can go. should be working fine on most of the computers with any 1.1 VM, even if it’s 512x448 :o

http://www.mandrixx.net/trail.html

enjoy the gameplay :wink:

Could you throw in a call to Thread.sleep()? The startup screen pegs my CPU at 100%.

Using JDK1.4.1_01 I see a black screen with a single pixel line growing bigger and smaller.
I went to the demo page for your other applets (nice screenshots!!).
However, none of t
hem worked for me. They all failed with Bad magic number (did you compile this with the Microsoft Java compiler?)
Or, they failed with SecurityExceptions - were you trying to make socket connections from an applet?

java.lang.ClassNotFoundException: triggered by java.lang.ClassFormatError: fire1 (Bad magic number)
at org.kde.kjas.server.KJASAppletClassLoader.loadFixedClass(KJASAppletClassLoader.java:325)
at org.kde.kjas.server.KJASAppletClassLoader.findClass(KJASAppletClassLoader.java:236)
at org.kde.kjas.server.KJASAppletClassLoader.loadClass(KJASAppletClassLoader.java:274)
at org.kde.kjas.server.KJASAppletStub$2.run(KJASAppletStub.java:162)
at java.lang.Thread.run(Thread.java:536)

The security exception: (1 of many)
java.lang.SecurityException
at java.lang.SecurityManager.checkPermission(SecurityManager.java:580)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1095)
at sun.awt.image.URLImageSource.checkSecurity(URLImageSource.java:81)
at sun.awt.image.Image.getImageRep(Image.java:274)
at sun.awt.motif.MToolkit.checkScrImage(MToolkit.java:369)
at sun.awt.motif.MComponentPeer.checkImage(MComponentPeer.java:436)
at java.awt.Component.checkImage(Component.java:2824)
at java.awt.ImageMediaEntry.getStatus(MediaTracker.java:872)
at java.awt.MediaTracker.checkAll(MediaTracker.java:278)
at java.awt.MediaTracker.checkAll(MediaTracker.java:271)
at tun1._()
at tun1.paint()
at tun1.update()
at sun.awt.RepaintArea.paint(RepaintArea.java:169)
at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:374)
at java.awt.Component.dispatchEventImpl(Component.java:3658)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3439)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

Works in the browser on linux but not with the appletviewer on linux. The images don’t load for me with the appletviewer.

grom: yes, it work on anything except the appletviewer, some functions seem to work differently with it. please use a browser :wink:

rgeimer: I do a thread sleep. it works great on the comps I have around and share well the cpu time with the other processes. could you tell me about your VM, cpu, OS ?

I am using a browser: konqueror 3.1rc2.
(I wasn’t the one that mentioned the appletviewer)

The thing about Konqueror is that it doesn’t provide an earlier JVM. So when I run Java stuff it happily runs the applet using whatever JVM I choose (1.4.1_01 currently). While this works perfectly for most things some java compilers and some obfuscators create code that does not work with the 1.4.1 JVM from Sun.
Which compiler are you using? Obfuscator?

Thanks.

Lovely bit of work Mandrixx,

tried it under IBM’s 1.3 JVM (Via Netscap 6.2) and I get the same effect, couple of horizontal lines.

Also tried throwing a couple of your demos at it, and most (but not all) fell over. (Sorry :’()

(But J-Bobs did work :))

Was hoping your version of the classic Colour Shock was going to run super fast in it but it falls over with:


Uncaught error fetching image:
java.lang.SecurityException
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:589)
      at java.lang.SecurityManager.checkConnect(SecurityManager.java:1098)
      at sun.awt.image.URLImageSource.checkSecurity(URLImageSource.java(Compiled Code))
      at sun.awt.image.ImageRepresentation.imageComplete(ImageRepresentation.java:591)
      at sun.awt.image.InputStreamImageSource.errorConsumer(InputStreamImageSource.java:138)
      at sun.awt.image.InputStreamImageSource.errorAllConsumers(InputStreamImageSource.java:131)
      at sun.awt.image.InputStreamImageSource.badDecoder(InputStreamImageSource.java:322)
      at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:264)
      at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:221)
      at sun.awt.image.ImageFetcher.run(ImageFetcher.java:189)
Exception occurred during event dispatching:


java.lang.SecurityException
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:589)
      at java.lang.SecurityManager.checkConnect(SecurityManager.java:1098)
      at sun.awt.image.URLImageSource.checkSecurity(URLImageSource.java(Compiled Code))
      at sun.awt.image.Image.getImageRep(Image.java(Compiled Code))
      at sun.awt.windows.WImage.getImageRep(WImage.java(Compiled Code))
      at sun.awt.windows.WToolkit.checkScrImage(WToolkit.java(Compiled Code))
      at sun.awt.windows.WComponentPeer.checkImage(WComponentPeer.java(Compiled Code))
      at java.awt.Component.checkImage(Component.java(Compiled Code))
      at java.awt.MediaTracker.checkAll(MediaTracker.java(Compiled Code))
      at java.awt.MediaTracker.checkAll(MediaTracker.java(Compiled Code))
      at java.awt.MediaTracker.checkAll(MediaTracker.java(Compiled Code))
      at tun1._()
      at tun1.paint()

And the one with the Knight Hawks font & DNA scrollers falls over because you are using Komplex’s Mumu Sound system which is trying to access direct X. Annoyingly they have yet to do a Java 2 player, I have kind of tried getting in touch with them but no reply as I rekcon it’s easy to fix. (It claims it’s a class format error “(Bad magic number)”.)

Problems caused at a guess, are you using an old version of OptimizeIt (just a guess) because there are few Java demos which which also fall over in this manner, and are not difficult to fix.

This of course does not stop any of them from working under Internet Explorer with M$ JVM, just if you are trying an obscure JVM from Sun or IBM ;D

I had a complete nightmare trying to get stuff running in most JVM’s it is unfortunately a case of:

Re-write many times and test everywhere!

and not:

Write once and run every where… (It’s a lie I tell you!)

All very nice, and best of luck sorting it out!

Woz.

[quote]rgeimer: I do a thread sleep. it works great on the comps I have around and share well the cpu time with the other processes. could you tell me about your VM, cpu, OS ?
[/quote]
I was using the MS VM, but I switched to the Sun one and it worked fine. FYI, PII 400, NT 4.0 sp6.

I tried it on JVM 1.4.1_01 with netscape and IE. it works fine except there’s a loss of fps compared to 1.4.0, so I don’t think the VM is involved :-/

is the JVM 1.4.1_01 running utterly slow, or is there something to do to make it run smoothly ?

I compiled it with JVM 1.3.1. I’ll compile it with the 1.4.1 a little later. maybe there’s some deprecated thing used somewhere ???

thanks for pointing me this :wink:

all your game work perfetly for me

its the beautiful game i ever seen in java
with your skill, you could make a real game in the style of today game, like unreal, need for speed, …

i never see big game in java, only little game like tetris or things like that :frowning:

I can’t get past level 3. >:(

I’m getting periodic slowdowns on my 1.3 ghz amd system. It never gets choppy, but the game just goes into slow motion during jumps, or even during the title screen…sometimes it is very fulid and fast, other times it just decides to crawl…any thoughts?

Running on JVM 1.4.0_01 on XP pro

-Chris

[quote]I can’t get past level 3. >:(
[/quote]
Made it to 4 :slight_smile:

All in all, very nice game, other than it takes up 100% of my CPU

hello,friends!

i am comming! :o