Slick Forums

Discuss the Slick 2D Library
It is currently Fri May 24, 2013 7:30 pm

All times are UTC




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Fri Mar 05, 2010 11:30 am 
Offline

Joined: Tue Sep 01, 2009 2:42 pm
Posts: 21
Location: Italy
Five months later, zlp has returned with a racing game.
Here the screenshots:
Image
Image
Image

The game is very simple:
- Choose a track
- Choose a ship
- Reache the end of track faster as possible

The in game control are:
Left/Right : Turn Left/right
Down : Activate the break
z/x/c : Trust the engines...

The java Webstart is avaible here

have fun...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 05, 2010 8:25 pm 
Offline
Regular

Joined: Tue Mar 03, 2009 11:53 pm
Posts: 123
Hi!

Looks interesting, but the game refuses to let me start a race after the first one:)

ciao!

_________________
Carotinho


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 05, 2010 9:04 pm 
Offline

Joined: Tue Sep 01, 2009 2:42 pm
Posts: 21
Location: Italy
Thanks for the bug report, i'll fix it in a future release.

obviously, every suggested feature is accepted.

bye


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 06, 2010 11:45 am 
Offline
Regular
User avatar

Joined: Wed Apr 15, 2009 12:51 pm
Posts: 104
Could not try the game:
Webstart blocked installing the game because your jars aren't signed with the same certificate.


JNLP:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="http://ajzeeke.webs.com/zlp-race" href="launch.jnlp" spec="1.0+">
    <information>
        <title>zlp-race</title>
        <vendor>zeeke</vendor>
        <homepage href="http://appframework.dev.java.net"/>
        <description>Space ship racing game</description>
        <description kind="short">Slick Application</description>
    </information>
<security>
<all-permissions/>
</security>
    <resources>
<j2se version="1.5+"/>
<jar href="zlp-race.jar" main="true"/>
    <jar href="lib/appframework-1.0.3.jar"/>
   
<jar href="lib/swing-worker-1.1.jar"/>
<jar href="lib/lwjgl.jar"/>
<jar href="lib/slick.jar"/>
<jar href="lib/sui.jar"/>
<jar href="lib/jogg-0.0.7.jar"/>
<jar href="lib/jorbis-0.0.15.jar"/>


</resources>
<resources os="Windows">

   <nativelib href="natives-win32.jar"/>

</resources> 

<resources os="Linux">

   <nativelib href="natives-linux.jar"/>

</resources>

<resources os="Mac">

   <nativelib href="natives-mac.jar"/>

</resources>

    <application-desc main-class="zlpgui.ZlpguiApp">
    </application-desc>
</jnlp>


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 06, 2010 12:10 pm 
Offline

Joined: Tue Sep 01, 2009 2:42 pm
Posts: 21
Location: Italy
Sorry for the inconvenience,
i'm uploading a new version right now.

bye


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 07, 2010 12:35 pm 
Offline
Regular
User avatar

Joined: Wed Apr 15, 2009 12:51 pm
Posts: 104
I've got the same problem as before: Your jars aren't signed with the same certificate!
For my games I download the jars of slick and lwjgl by my own and sign them ALL with my certificate. ANT does a great job. ;)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 07, 2010 2:05 pm 
Offline

Joined: Tue Sep 01, 2009 2:42 pm
Posts: 21
Location: Italy
I've signed all jars cited in the jnlp file.
The app seems to be working at 100%.
Can you give me a screenshot of your error?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2010 7:06 pm 
Offline
Regular
User avatar

Joined: Wed Apr 15, 2009 12:51 pm
Posts: 104
My first try after my last Message: I've removed all java webstart apps and deleted the cache. Then I have installed the game again. I got no errors. But it still doesn't start! Just nothing happens.

Have you ever tried to play the game under Linux?
I'm using Ubuntu 9.04 and all previous versions. I've had never problems running slick or lwjgl games via webstart. Even no problems with my own games. ;)

I've tried to install some other games from this forum: No Problems!

EDIT: Every time I'm starting your game it downloads something and disappears after finishing it.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2010 7:36 pm 
Offline

Joined: Tue Sep 01, 2009 2:42 pm
Posts: 21
Location: Italy
I use linux and I tested it only on ubuntu 9.10.

I use openjdk for java app.

I've uploaded another version few minutes ago.

Try to download the jnlp file and launch it with javaws, then report the output please.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2010 8:45 pm 
Offline

Joined: Mon Jan 11, 2010 10:37 pm
Posts: 68
Quote:
EDIT: Every time I'm starting your game it downloads something and disappears after finishing it.


I have encountered similar problems with a few webstart applications already. Never figured out whats the cause (log message never showed any light upon it)

This one starts for me however. At least the menu. But the GO button does nothing.

_________________
Jattra


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2010 8:46 pm 
Offline

Joined: Tue Sep 01, 2009 2:42 pm
Posts: 21
Location: Italy
Quote:
This one starts for me however. At least the menu. But the GO button does nothing.


Can you report me the console output?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2010 9:09 pm 
Offline

Joined: Mon Jan 11, 2010 10:37 pm
Posts: 68
Quote:
Quote:
EDIT: Every time I'm starting your game it downloads something and disappears after finishing it.

I have encountered similar problems with a few webstart applications already. Never figured out whats the cause (log message never showed any light upon it)

I have realized that the game starts up with OpenJDK but it does not on SUN Java

Quote:
This one starts for me however. At least the menu. But the GO button does nothing.

With the OpenJDK the menu goes up but the GO button throws this error
Code:
[zlp.ship.Ship@1bbdd48, zlp.ship.Ship@bcb23e, zlp.ship.Ship@5a3923, zlp.ship.Ship@15d616e, zlp.ship.Ship@1a7b0bf]
8
Mon Mar 08 22:03:32 CET 2010 INFO:Slick Build #270
Mon Mar 08 22:03:32 CET 2010 INFO:LWJGL Version: 2.1.0
Mon Mar 08 22:03:32 CET 2010 INFO:OriginalDisplayMode: 1680 x 1050 x 24 @60Hz
Mon Mar 08 22:03:32 CET 2010 INFO:TargetDisplayMode: 1024 x 768 x 0 @0Hz
Mon Mar 08 22:03:32 CET 2010 ERROR:X Error - disp: 0x97276c8 serial: 56 error: BadMatch (invalid parameter attributes) request_code: 1 minor_code: 0
org.lwjgl.LWJGLException: X Error - disp: 0x97276c8 serial: 56 error: BadMatch (invalid parameter attributes) request_code: 1 minor_code: 0
   at org.lwjgl.opengl.LinuxDisplay.globalErrorHandler(LinuxDisplay.java:284)
   at org.lwjgl.opengl.LinuxDisplay.nCreateWindow(Native Method)
   at org.lwjgl.opengl.LinuxDisplay.createWindow(LinuxDisplay.java:429)
   at org.lwjgl.opengl.Display.createWindow(Display.java:308)
   at org.lwjgl.opengl.Display.create(Display.java:839)
   at org.lwjgl.opengl.Display.create(Display.java:767)
   at org.newdawn.slick.AppGameContainer.tryCreateDisplay(AppGameContainer.java:299)
   at org.newdawn.slick.AppGameContainer.access$000(AppGameContainer.java:34)
   at org.newdawn.slick.AppGameContainer$2.run(AppGameContainer.java:364)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:345)
   at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:314)
   at zlpgui.ZlpguiView.jButton1MousePressed(ZlpguiView.java:1112)
   at zlpgui.ZlpguiView.access$1200(ZlpguiView.java:45)
   at zlpgui.ZlpguiView$9.mousePressed(ZlpguiView.java:453)
   at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:280)
   at java.awt.Component.processMouseEvent(Component.java:6105)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
   at java.awt.Component.processEvent(Component.java:5873)
   at java.awt.Container.processEvent(Container.java:2105)
   at java.awt.Component.dispatchEventImpl(Component.java:4469)
   at java.awt.Container.dispatchEventImpl(Container.java:2163)
   at java.awt.Component.dispatchEvent(Component.java:4295)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4122)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
   at java.awt.Container.dispatchEventImpl(Container.java:2149)
   at java.awt.Window.dispatchEventImpl(Window.java:2478)
   at java.awt.Component.dispatchEvent(Component.java:4295)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Mar 8, 2010 10:03:32 PM zlpgui.ZlpguiView jButton1MousePressed
SEVERE: null
org.newdawn.slick.SlickException: Failed to initialise the LWJGL display
   at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:375)
   at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:314)
   at zlpgui.ZlpguiView.jButton1MousePressed(ZlpguiView.java:1112)
   at zlpgui.ZlpguiView.access$1200(ZlpguiView.java:45)
   at zlpgui.ZlpguiView$9.mousePressed(ZlpguiView.java:453)
   at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:280)
   at java.awt.Component.processMouseEvent(Component.java:6105)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
   at java.awt.Component.processEvent(Component.java:5873)
   at java.awt.Container.processEvent(Container.java:2105)
   at java.awt.Component.dispatchEventImpl(Component.java:4469)
   at java.awt.Container.dispatchEventImpl(Container.java:2163)
   at java.awt.Component.dispatchEvent(Component.java:4295)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4122)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
   at java.awt.Container.dispatchEventImpl(Container.java:2149)
   at java.awt.Window.dispatchEventImpl(Window.java:2478)
   at java.awt.Component.dispatchEvent(Component.java:4295)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Disposing window

I know this error. It is caused by old LWJGL version on Ubuntu system.

_________________
Jattra


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2010 11:05 pm 
Offline

Joined: Tue Sep 01, 2009 2:42 pm
Posts: 21
Location: Italy
I've downloaded the latest version of lwjgl and related natives.
Then i signed them and uploaded on webs.com.
please, test the app and report here.


Quote:
I have realized that the game starts up with OpenJDK but it does not on SUN Java

any suggestion?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 09, 2010 5:52 pm 
Offline
Regular
User avatar

Joined: Wed Apr 15, 2009 12:51 pm
Posts: 104
Now the game has stopped to download something before crashing.
I've tried arround with javaws on command line. Don't know what to do!?

Code:
ted@ted-laptop:~$ javaws -verbose -wait http://ajzeeke.webs.com/zlp-race/launch.jnlp
Java(TM) Web Start 1.6.0_16 Launching: /usr/lib/jvm/java-6-sun-1.6.0.16/jre/bin/java
/usr/lib/jvm/java-6-sun-1.6.0.16/jre/bin/java
-Xbootclasspath/a:/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/javaws.jar:/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/deploy.jar:/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/plugin.jar
-classpath
/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/deploy.jar
-Djava.security.policy=file:/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/security/javaws.policy
-DtrustProxy=true
-Xverify:remote
-Djnlpx.home=/usr/lib/jvm/java-6-sun-1.6.0.16/jre/bin
-Djnlpx.remove=false
-Djnlpx.splashport=49381
-Djnlpx.jvm=/usr/lib/jvm/java-6-sun-1.6.0.16/jre/bin/java
com.sun.javaws.Main
-wait
http://ajzeeke.webs.com/zlp-race/launch.jnlp

ted@ted-laptop:~$

You can see that I'm using -wait and -verbose with javaws.
The webstart splash comes up and disappears after 3-4 seconds at the same time as the command line has finished its work.

Here is my java -version
Code:
ted@ted-laptop:~$ java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode)
ted@ted-laptop:~$


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 09, 2010 7:00 pm 
Offline

Joined: Mon Jan 11, 2010 10:37 pm
Posts: 68
zeeke wrote:
I've downloaded the latest version of lwjgl and related natives.
Then i signed them and uploaded on webs.com.
please, test the app and report here.


Quote:
I have realized that the game starts up with OpenJDK but it does not on SUN Java

any suggestion?


Now, it starts (using OpenJDK) and the OK button displays the game screen. I cannot check it further because I have got error:
Code:
ERROR:Unable to create the pbuffer used for shard context, buffers not supported

That is caused by my old graphic card however. Don't worry about that :)

Regarding the SUN Java, I think You should install it and check if it is running for You.

_________________
Jattra


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group