Slick Forums

Discuss the Slick 2D Library
It is currently Tue May 21, 2013 11:39 pm

All times are UTC




Post new topic Reply to topic  [ 111 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Author Message
 Post subject:
PostPosted: Mon Jul 28, 2008 12:40 am 
Offline
Regular

Joined: Sat May 31, 2008 12:26 am
Posts: 207
I have tried that, but differences in native libraries tend to screw things up. I'll try it once more.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 28, 2008 4:00 am 
Offline
Game Developer
User avatar

Joined: Sun May 25, 2008 9:45 am
Posts: 578
If you use Eclipse, you can right click your project and hit export. Post your game's JAR and any JARs it needs. No need to post the Slick JAR or the native libs as all of us here have them already.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 28, 2008 3:35 pm 
Offline
Regular

Joined: Sat May 31, 2008 12:26 am
Posts: 207
www.kittsplace.com/rockets/RocketPod.jar

This will probably not work. It's definitely not executable without putting slick and SUI classes in there.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 29, 2008 7:21 am 
Offline
Game Developer
User avatar

Joined: Sun May 25, 2008 9:45 am
Posts: 578
The link gives me a 404 (page not found error).

All I need is your stuff and I'll put it together with slick and sui and hopefully you'll get a working jnlp. :)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 29, 2008 7:20 pm 
Offline
Regular

Joined: Sat May 31, 2008 12:26 am
Posts: 207
oops: www.kittsplace.com/klingenco/rockets/RocketPod.jar


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 30, 2008 6:11 am 
Offline
Game Developer
User avatar

Joined: Sun May 25, 2008 9:45 am
Posts: 578
Cool game! :D

Was frustrating that the tutorial resets when you die. Also the "next" button keeps jumping around, would be nice if it were always in the lower right corner.

I finally mined some gold and killed a pirate, but that caused my FPS to drop to 1 and it was too choppy to make it back to the dock to buy stuff. :( My FPS at the mainmenu was 58, at the starting dock and flying around ~40. I believe using the tractor beam on the gold when I popped an asteroid is what causes the FPS to 1. I was being very careful to collect each gold piece to avoid the slowdown. I had enough to buy missiles and was making my way back to the dock when a pirate attacked, I tried to run, shooting all the way, but the game went choppy, and I crashed into the planet. :( I had fought other pirates just fine, so I'm not sure what was different here.

The tractor beam is cool! It is useful, yet can easily send the gold you want flying off at a million miles per hour.

It might be neat to have a visual for the rocketpod's shield, then I'd know when the shield goes down in battle. Plus it could be all glimmery and pretty somehow. :)

I found it difficult to stop, but only because in my infinite impatience I would hold down the thrusters as I travelled. :D

To play the game I unzipped your JAR into a directory. I placed there sui.jar, slick.jar, lwjgl.jar, and the slick native libs. Then from the command line:
java -Djava.library.path=. -cp .;slick.jar;sui.jar;lwjgl.jar RocketPod

I tried to run your game without unzipping the JAR, but your MapSave class file was named "mapSaver.class". After renaming it to "MapSaver.class" I then got "Resource not found: dust.xml". I renamed "Dust.xml" to "dust.xml" and then did the same for "sparkle.xml". Next I got "Resource not found: /rocketpod.png". Decompiling your Game class I see...
Code:
pod = new Image("/rocketpod.png", true);
sentry = new Image("/sentry.png", true);
thrust1 = new Image("/thrusters1.png", true);
planetImage = new BigImage("/planet1.png");
...etc etc...

I believe all of these should not begin with a slash (eg just "rocketpod.png"). The decompilation had some errors so I was not able to recompile a new Game.class file and so this was as far as I could get. If you fix the above errors and post a new JAR we can probably make the JNLP happen. :)

What tools are you using to develop? Are you using an IDE?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 30, 2008 6:08 pm 
Offline
Regular

Joined: Sat May 31, 2008 12:26 am
Posts: 207
NateS wrote:
Cool game! :D

Was frustrating that the tutorial resets when you die. Also the "next" button keeps jumping around, would be nice if it were always in the lower right corner.



I am going to make a new window-based tutorial which loads from text files. Right now, the tutorial is very outdated.


NateS wrote:
I finally mined some gold and killed a pirate, but that caused my FPS to drop to 1 and it was too choppy to make it back to the dock to buy stuff. :( My FPS at the mainmenu was 58, at the starting dock and flying around ~40. I believe using the tractor beam on the gold when I popped an asteroid is what causes the FPS to 1. I was being very careful to collect each gold piece to avoid the slowdown. I had enough to buy missiles and was making my way back to the dock when a pirate attacked, I tried to run, shooting all the way, but the game went choppy, and I crashed into the planet. :( I had fought other pirates just fine, so I'm not sure what was different here.

Yes, I don't know why the framerate drops so much when blowing up asteroids. It's either the dust particle system or the gold itself, I think.

NateS wrote:
The tractor beam is cool! It is useful, yet can easily send the gold you want flying off at a million miles per hour.

Yeah, unfortunately the tractor force increases with the square of distance, so getting it really close to the pod causes it to shoot off at incredible speeds.

NateS wrote:
It might be neat to have a visual for the rocketpod's shield, then I'd know when the shield goes down in battle. Plus it could be all glimmery and pretty somehow. :)

There is a visual. It must not be loading correctly. Its a little rotating shimmery blue sphere.


NateS wrote:
I found it difficult to stop, but only because in my infinite impatience I would hold down the thrusters as I travelled. :D

I'm thinking about putting a "stop" button that will automatically decelerate your ship. That would make it a bit unrealistic though.

NateS wrote:
I tried to run your game without unzipping the JAR, but your MapSave class file was named "mapSaver.class". After renaming it to "MapSaver.class" I then got "Resource not found: dust.xml". I renamed "Dust.xml" to "dust.xml" and then did the same for "sparkle.xml". Next I got "Resource not found: /rocketpod.png". Decompiling your Game class I see...
Code:
pod = new Image("/rocketpod.png", true);
sentry = new Image("/sentry.png", true);
thrust1 = new Image("/thrusters1.png", true);
planetImage = new BigImage("/planet1.png");
...etc etc...

I believe all of these should not begin with a slash (eg just "rocketpod.png"). The decompilation had some errors so I was not able to recompile a new Game.class file and so this was as far as I could get. If you fix the above errors and post a new JAR we can probably make the JNLP happen. :)



Wow, I wonder why this happened? That makes no sense. It works for me with those names the same. It must be me IDE.

NateS wrote:
What tools are you using to develop? Are you using an IDE?


Using JCreator LE. I think the workspace system is messing me up. For instance, my workspace is named "Boom" from an earlier version of the game, but it saves a jar as "rocketpod".


EDIT: Also, if you want to play with the map editor press TAB. If you want to pause press P. I don't think I made this clear before. Move around in the map editor using the arrow keys and spawn entities by double-clicking.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 30, 2008 7:15 pm 
Offline
Regular

Joined: Sat May 31, 2008 12:26 am
Posts: 207
.jar has been updated with those changes:

www.kittsplace.com/klingenco/rockets/RocketPod.jar

However, my .jnlp still doesn't work:

www.kittsplace.com/klingenco/rockets/RocketPod.jnlp


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 30, 2008 8:28 pm 
Offline
Regular

Joined: Sat Jun 07, 2008 6:54 pm
Posts: 119
It's complaining about main class something something


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 31, 2008 2:52 am 
Offline
Regular

Joined: Sat May 31, 2008 12:26 am
Posts: 207
tackle wrote:
It's complaining about main class something something


It's not supposed to be executable. It says it can't find the main class, but what it really means is that it can't find the classes to import for slick and SUI.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 31, 2008 6:43 am 
Offline
Game Developer
User avatar

Joined: Sun May 25, 2008 9:45 am
Posts: 578
Never heard of JCreator LE. Most people use Eclipse or Netbeans, though I've met those that use IntelliJ or JBuilder. I highly recommend using Eclipse.

"Planet1.png" should be "planet1.png". You really need to follow a standard naming convention so you don't have these case problems. Make everything camel case. enemyshot.wav is also wrong. Sheesh!

Here is your working JNLP...
http://n4te.com/temp/rocketpod/
Download and change it to point to your own webserver, etc.

I deleted Rocketpad.wav and replaced it with missile.wav to make the JAR much smaller. Plus Rocketpad.wav doesn't seem to be used anwyay.

Missiles are cool. :) I get super slowdown after a few minutes of play though. I think you are maybe not cleaning up something, like maybe you are creating tons of particle emitters? Definitely something gets out of control and slows the game down. A profiler should show the problem easily.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 31, 2008 6:55 am 
Offline
Regular

Joined: Sat May 31, 2008 12:26 am
Posts: 207
Thank you so much!

I will be checking it out to figure out what is causing the slowdown. I think when I'm disabling particle systems, I should be removing them.

I will try to adopt a totally camelcase naming system.

EDIT: I forgot rocketpod.wav was in there! I was using it for BG music but decided it was obnoxious and didn't use it.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 31, 2008 7:01 am 
Offline
Game Developer
User avatar

Joined: Sun May 25, 2008 9:45 am
Posts: 578
You're welcome. :)

You might try setRemoveCompletedEmitters(true) on your ParticleSystem. This causes emitters that have a length to be removed when the emitter is complete (ie when the length is reached).


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 31, 2008 7:05 am 
Offline
Regular

Joined: Sat May 31, 2008 12:26 am
Posts: 207
now works for my server. One of my friends is now testing it successfully on his mac 8)

www.kittsplace.com/klingenco/rockets/rocketpod.jnlp


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 31, 2008 8:20 pm 
Offline
Regular

Joined: Sat Jun 07, 2008 6:54 pm
Posts: 119
Worked here as well, WinXp core2duo box.

Played around for a while, bought the red laser and fired a few shots and then all of a sudden the game froze completely.
The console said "restarting", not sure if that was from something previous or not.

In any case, it's looking good!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 111 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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