What I sent you was the complete trace. The game worked a month or two ago before I updated my JVM. The crash is in the LWJGL applet loader and not in your applet.
Windows XP, Firefox 3.5 and IE 7
What I sent you was the complete trace. The game worked a month or two ago before I updated my JVM. The crash is in the LWJGL applet loader and not in your applet.
Windows XP, Firefox 3.5 and IE 7
What can I do for this issue? ??? :-\
+1, but with Win XP and probably an earlier level. It happened after selecting retry level, and then right away pressing ‘a’. Could reproduce it.
The stacktrace swpalmer gave you showed up in the game, and the following in the console:
Fri Sep 11 21:29:42 GMT 2009 ERROR:null
java.lang.NullPointerException
at buildergame.gamestate.InGameState.handleMoveKeys(InGameState.java:327)
at buildergame.gamestate.InGameState.update(InGameState.java:280)
at org.newdawn.slick.state.StateBasedGame.update(StateBasedGame.java:261)
at org.newdawn.slick.GameContainer.updateAndRender(GameContainer.java:616)
at org.newdawn.slick.AppletGameContainer$Container.runloop(AppletGameContainer.java:503)
at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:221)
at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:95)
org.newdawn.slick.SlickException: Game.update() failure - check the game code.
at org.newdawn.slick.GameContainer.updateAndRender(GameContainer.java:622)
at org.newdawn.slick.AppletGameContainer$Container.runloop(AppletGameContainer.java:503)
at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:221)
at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:95)
Probably something like the menu kbd handling hasn’t been switched over to game kbd handling at exactly the same time as the game logic switches over from menu to game.
Otherwise a great game 8)
I like the tutorial. Short enough that ppl will read it, and yet enough for ppl to understand I think.
About difficulty level, since you can choose it, it must be right
Ehhh, not sure if this is a problem spawning from the first problem, but after completing the arch level I got this:
Fri Sep 11 21:49:07 GMT 2009 ERROR:null
java.lang.NullPointerException
at buildergame.DefaultLevelMonitor.render(DefaultLevelMonitor.java:163)
at buildergame.gamestate.InGameState.render(InGameState.java:380)
at org.newdawn.slick.state.StateBasedGame.render(StateBasedGame.java:192)
at org.newdawn.slick.GameContainer.updateAndRender(GameContainer.java:640)
at org.newdawn.slick.AppletGameContainer$Container.runloop(AppletGameContainer.java:503)
at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:221)
at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:95)
org.newdawn.slick.SlickException: Game.render() failure - check the game code.
at org.newdawn.slick.GameContainer.updateAndRender(GameContainer.java:643)
at org.newdawn.slick.AppletGameContainer$Container.runloop(AppletGameContainer.java:503)
at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:221)
at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:95)
This happened after I had reloaded the game when it crashed as mentioned above.
OK thanks jojoh, these specific stack traces help a lot! I should be able to fix these bugs.
About this one:
java.lang.NullPointerException
at buildergame.DefaultLevelMonitor.render(DefaultLevelMonitor.java:163)
at buildergame.gamestate.InGameState.render(InGameState.java:380)
at org.newdawn.slick.state.StateBasedGame.render(StateBasedGame.java:192)
at org.newdawn.slick.GameContainer.updateAndRender(GameContainer.java:640)
at org.newdawn.slick.AppletGameContainer$Container.runloop(AppletGameContainer.java:503)
at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:221)
at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:95)
org.newdawn.slick.SlickException: Game.render() failure - check the game code.
at org.newdawn.slick.GameContainer.updateAndRender(GameContainer.java:643)
at org.newdawn.slick.AppletGameContainer$Container.runloop(AppletGameContainer.java:503)
at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:221)
at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:95)
Have you done anything special, pressed a key? I can’t explain why the text object was null.
Hi!
I just want to say that I’m happy to see your game in this section ;D Good luck with the bug fixing.
After reloading it a few times it worked
Very nice game, crashed for me too though 4-5 levels in. I did click a key during loading, dunno if that is what caused it.
Java Plug-in 1.6.0_15
Using JRE version 1.6.0_15-b03 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\cwnl-mlundstr
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
Sat Sep 12 09:44:30 CEST 2009 INFO:Using Local File System
Sat Sep 12 09:44:31 CEST 2009 INFO:Slick Build #265
Sat Sep 12 09:44:32 CEST 2009 INFO:Starting display 800x600
Sat Sep 12 09:44:32 CEST 2009 INFO:Use Java PNG Loader = true
Sat Sep 12 09:44:32 CEST 2009 INFO:Early loading of deferred resource due to req: org/newdawn/slick/data/defaultfont.png
Sat Sep 12 09:44:32 CEST 2009 INFO:Found 0 controllers
Sat Sep 12 09:44:33 CEST 2009 INFO:Early loading of deferred resource due to req: images/transMouseCursor.gif
Sat Sep 12 09:44:33 CEST 2009 INFO:Offscreen Buffers FBO=true PBUFFER=true PBUFFERRT=true
Sat Sep 12 09:44:33 CEST 2009 DEBUG:Creating FBO 80x80
Sat Sep 12 09:44:33 CEST 2009 INFO:Early loading of deferred resource due to req: fonts/borneo20-orange.png
Sat Sep 12 09:44:33 CEST 2009 INFO:Early loading of deferred resource due to req: fonts/borneo20-red.png
Sat Sep 12 09:44:33 CEST 2009 INFO:Early loading of deferred resource due to req: fonts/borneo25-orange.png
Sat Sep 12 09:44:33 CEST 2009 INFO:Early loading of deferred resource due to req: fonts/borneo25-red.png
Sat Sep 12 09:44:33 CEST 2009 INFO:Early loading of deferred resource due to req: fonts/borneo25-orange.png
Sat Sep 12 09:44:33 CEST 2009 INFO:Early loading of deferred resource due to req: fonts/borneo25-red.png
Sat Sep 12 09:44:33 CEST 2009 INFO:Early loading of deferred resource due to req: fonts/borneo30-orange.png
Sat Sep 12 09:44:33 CEST 2009 INFO:Early loading of deferred resource due to req: fonts/borneo30-red.png
Sat Sep 12 09:44:33 CEST 2009 INFO:Initialising sounds..
Sat Sep 12 09:44:33 CEST 2009 INFO:- Sound works
Sat Sep 12 09:44:33 CEST 2009 INFO:- 64 OpenAL source available
Sat Sep 12 09:44:33 CEST 2009 INFO:- Sounds source generated
Sat Sep 12 09:44:34 CEST 2009 INFO:Using Local File System
Sat Sep 12 09:44:34 CEST 2009 INFO:Using Local File System
Sat Sep 12 09:44:34 CEST 2009 WARN:class org.newdawn.slick.opengl.PNGImageData failed to read the data
Sat Sep 12 09:44:34 CEST 2009 INFO:Early loading of deferred resource due to req: images/mouseCursor.png
Sat Sep 12 09:44:34 CEST 2009 INFO:Using Local File System
Sat Sep 12 09:44:34 CEST 2009 INFO:Early loading of deferred resource due to req: images/grey2.png
Sat Sep 12 09:44:35 CEST 2009 INFO:Early loading of deferred resource due to req: levels/images/blocks01.png
Sat Sep 12 09:44:35 CEST 2009 INFO:Early loading of deferred resource due to req: levels/images/walls01.png
Sat Sep 12 09:44:35 CEST 2009 INFO:Early loading of deferred resource due to req: images/yellow1.png
Sat Sep 12 09:44:35 CEST 2009 INFO:Early loading of deferred resource due to req: images/blue1.png
Sat Sep 12 09:44:35 CEST 2009 INFO:Early loading of deferred resource due to req: images/red1.png
Sat Sep 12 09:44:35 CEST 2009 INFO:Early loading of deferred resource due to req: images/green1.png
Sat Sep 12 09:44:35 CEST 2009 INFO:Early loading of deferred resource due to req: images/brown1.png
Sat Sep 12 09:44:35 CEST 2009 INFO:Early loading of deferred resource due to req: images/grey1.png
Sat Sep 12 09:44:35 CEST 2009 INFO:Early loading of deferred resource due to req: images/purple1.png
Sat Sep 12 09:44:35 CEST 2009 INFO:Early loading of deferred resource due to req: images/gold1.png
Sat Sep 12 09:44:35 CEST 2009 WARN:class org.newdawn.slick.opengl.PNGImageData failed to read the data
Sat Sep 12 09:44:35 CEST 2009 INFO:Early loading of deferred resource due to req: images/doubleKnife.png
Sat Sep 12 09:44:35 CEST 2009 INFO:Early loading of deferred resource due to req: images/blue2.png
Sat Sep 12 09:44:35 CEST 2009 WARN:class org.newdawn.slick.opengl.PNGImageData failed to read the data
Sat Sep 12 09:44:35 CEST 2009 INFO:Early loading of deferred resource due to req: images/gameTitle.png
Sat Sep 12 09:44:35 CEST 2009 ERROR:Failed to load and apply SUI 'select' cursor.
Sat Sep 12 09:44:35 CEST 2009 ERROR:Resource not found: res/skin/shared/cursor_select.png
java.lang.RuntimeException: Resource not found: res/skin/shared/cursor_select.png
at org.newdawn.slick.util.ResourceLoader.getResourceAsStream(ResourceLoader.java:69)
at org.newdawn.slick.opengl.CursorLoader.getCursor(CursorLoader.java:55)
at mdes.slick.sui.skin.simple.SimpleSkin.tryCursor(SimpleSkin.java:121)
at mdes.slick.sui.skin.simple.SimpleSkin.install(SimpleSkin.java:104)
at mdes.slick.sui.Sui.setSkin(Sui.java:164)
at mdes.slick.sui.Sui.<clinit>(Sui.java:46)
at buildergame.gamestate.MainMenuState.init(MainMenuState.java:92)
at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:164)
at org.newdawn.slick.AppletGameContainer$Container.initApplet(AppletGameContainer.java:275)
at org.newdawn.slick.AppletGameContainer$ContainerPanel.initGL(AppletGameContainer.java:232)
at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:219)
at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:95)
Sat Sep 12 09:44:35 CEST 2009 ERROR:Failed to load and apply SUI 'select' cursor.
Sat Sep 12 09:44:35 CEST 2009 ERROR:Resource not found: res/skin/shared/cursor_select.png
java.lang.RuntimeException: Resource not found: res/skin/shared/cursor_select.png
at org.newdawn.slick.util.ResourceLoader.getResourceAsStream(ResourceLoader.java:69)
at org.newdawn.slick.opengl.CursorLoader.getCursor(CursorLoader.java:55)
at mdes.slick.sui.skin.simple.SimpleSkin.tryCursor(SimpleSkin.java:121)
at mdes.slick.sui.skin.simple.SimpleSkin.install(SimpleSkin.java:104)
at mdes.slick.sui.Sui.setSkin(Sui.java:164)
at buildergame.gamestate.MainMenuState.init(MainMenuState.java:92)
at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:164)
at org.newdawn.slick.AppletGameContainer$Container.initApplet(AppletGameContainer.java:275)
at org.newdawn.slick.AppletGameContainer$ContainerPanel.initGL(AppletGameContainer.java:232)
at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:219)
at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:95)
Sat Sep 12 09:44:35 CEST 2009 INFO:Early loading of deferred resource due to req: images/transMouseCursor.gif
Sat Sep 12 09:44:36 CEST 2009 INFO:Offscreen Buffers FBO=true PBUFFER=true PBUFFERRT=true
Sat Sep 12 09:44:36 CEST 2009 DEBUG:Creating FBO 80x80
Sat Sep 12 09:44:36 CEST 2009 WARN:class org.newdawn.slick.opengl.PNGImageData failed to read the data
Sat Sep 12 09:44:38 CEST 2009 WARN:class org.newdawn.slick.opengl.PNGImageData failed to read the data
Sat Sep 12 09:45:12 CEST 2009 INFO:Offscreen Buffers FBO=true PBUFFER=true PBUFFERRT=true
Sat Sep 12 09:45:12 CEST 2009 DEBUG:Creating FBO 80x80
Sat Sep 12 09:45:14 CEST 2009 INFO:Using Local File System
Sat Sep 12 09:45:14 CEST 2009 INFO:Using Local File System
Sat Sep 12 09:45:20 CEST 2009 INFO:Using Local File System
Sat Sep 12 09:45:21 CEST 2009 WARN:class org.newdawn.slick.opengl.PNGImageData failed to read the data
Sat Sep 12 09:45:21 CEST 2009 WARN:class org.newdawn.slick.opengl.PNGImageData failed to read the data
Sat Sep 12 09:45:21 CEST 2009 WARN:class org.newdawn.slick.opengl.PNGImageData failed to read the data
Sat Sep 12 09:45:21 CEST 2009 WARN:class org.newdawn.slick.opengl.PNGImageData failed to read the data
Sat Sep 12 09:45:21 CEST 2009 WARN:class org.newdawn.slick.opengl.PNGImageData failed to read the data
Sat Sep 12 09:45:21 CEST 2009 WARN:class org.newdawn.slick.opengl.PNGImageData failed to read the data
Sat Sep 12 09:45:21 CEST 2009 WARN:class org.newdawn.slick.opengl.PNGImageData failed to read the data
ibxm alpha 45 (c)2006 mumart@gmail.com
Sat Sep 12 09:46:05 CEST 2009 INFO:Using Local File System
Sat Sep 12 09:46:11 CEST 2009 INFO:Using Local File System
Sat Sep 12 09:46:52 CEST 2009 INFO:Using Local File System
Sat Sep 12 09:46:56 CEST 2009 INFO:Using Local File System
Sat Sep 12 09:46:56 CEST 2009 INFO:Using Local File System
Sat Sep 12 09:47:36 CEST 2009 INFO:Using Local File System
Sat Sep 12 09:47:37 CEST 2009 INFO:Using Local File System
Sat Sep 12 09:47:38 CEST 2009 ERROR:null
java.lang.NullPointerException
at buildergame.gamestate.InGameState.handleMoveKeys(InGameState.java:345)
at buildergame.gamestate.InGameState.update(InGameState.java:280)
at org.newdawn.slick.state.StateBasedGame.update(StateBasedGame.java:261)
at org.newdawn.slick.GameContainer.updateAndRender(GameContainer.java:616)
at org.newdawn.slick.AppletGameContainer$Container.runloop(AppletGameContainer.java:503)
at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:221)
at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:95)
org.newdawn.slick.SlickException: Game.update() failure - check the game code.
at org.newdawn.slick.GameContainer.updateAndRender(GameContainer.java:622)
at org.newdawn.slick.AppletGameContainer$Container.runloop(AppletGameContainer.java:503)
at org.newdawn.slick.AppletGameContainer$ContainerPanel.start(AppletGameContainer.java:221)
at org.newdawn.slick.AppletGameContainer$1.run(AppletGameContainer.java:95)
Same bugs as one reported by jojoh.
Thanks for the kind words guys!
jojoh, I can’t wait to upload my game on games4j.com! I’ll do that once I’ve fixed the bugs + other enhancements/bugs already done.
I think I just hammered away a block to complete the level. The previous problem could have left some residue and caused this. I reproduced the “pressing key at restart” twice in a row and then the game locked up the whole browser, and had to be killed via taskmanager, so something isn’t cleaned out after the crash. So this might never happen if the other problem is solved.
Having played it a bit more, I sort of wanted a drop key, or possibly let the down/s key make the blocks move a bit faster.
Great!
The game is first accepted into the incubator section of games4j.com, and it is very easy to update the files there if you want. Could also be useful if you want to try out the highscore api for example. (Hint!)
[quote]Could also be useful if you want to try out the highscore api for example. (Hint!)
[/quote]
Sure!
Just to let you know that version 0.56 was uploaded on my site and on gamejolt.com. Here is the list of changes:
For those who found bugs, please try the new version and tell me if you can still repro them.
Thanks!
Came to level eleven without any errors or problems at all.
Two things:
The applet seems to take too much space, it is on top of the menu to the right.
You can move the current piece with the arrows before you have clicked to start a level.
Thanks for testing Mickelukas.
I don’t know if can do something about the space the applet takes since I can’t go smaller.
Yes you can move the piece before starting the level. This is ok and doesn’t give any real advantage to the player.
EDIT: I just checked the size of the applet and there’s no issue (in chrome).
Well, there is in firefox
Ho, I was thinking about the one on gamejolt! Yes, on my site there’s a page layout issue. Thanks for reporting that.
Incredibuilder is now on games4j in the incubator section.
Hey, take a look at the new backgrounds in the Screenshots section. 8) Version 0.57, which contains these graphics, will be uploaded very soon!
Hi , here are the features of version 0.57:
Enjoy!
Hi!
Nice updates, and very nice backgrounds you have created!
I have only tried it briefly, but one thing I noticed was that the mouse cursor flickers quite a bit when you move it. There is a rectangle extending to the right and down, about twice the size of the cursor image, that contains garbage. While holding mouse still it is OK. It even messed with the look of the mouse outside of the applet window for a brief moment.
I tried it both on games4j.com and your site, but I guess they are identical. Have not yet cleaned the java cache. Not sure if that could be a problem…
Java 6, WinXP, tested most browsers.
[quote]Nice updates, and very nice backgrounds you have created!
[/quote]
Thanks! Note that I didn’t create the backgrounds, I only cropped/resized them to fit the game needs. The majority of the graphics were taken from Flicker. They all have a common creative licence with attribution restriction only. You can take a look at the artists in the credit screen. Nonetheless I chose the graphics myself (self-flattery). ;D
[quote]I have only tried it briefly, but one thing I noticed was that the mouse cursor flickers quite a bit when you move it.
[/quote]
I’ve never seen this bug. What’s your hardware config? Do you have this bug in all the browsers? Any stack trace in the Java console? Could you clear the plug-in cache just to make sure it’s not the cause?
Thanks