Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Block  (Read 2588 times)
0 Members and 1 Guest are viewing this topic.
Offline Drenius
« Posted 2013-07-06 22:13:43 »

Hi all,

This is a little block-based platformer I've made over the last month.
It has a simple level editor, so feel free to post levels  Wink
(stored at [appdatapath]/Block/levels)

There are still some minor bugs but the main part is done.

Download:
v 1.3





Offline gongalf
« Reply #1 - Posted 2013-07-11 09:20:32 »

Hi! I tried your game and I found some bugs. Some blocks blinking when I move the main character and when I press up key after climb a stair it trembles. Ah! And the game crashes at the first stage and throws this error:

Exception in thread "main" java.lang.OutOfMemoryError at java.util.xip.Inflater.inflateBytes<Native Method> at java.util.xip.Inflater.inflateBytes<Unknown Source< at org.newdawn.slick.opengl.PNGDecoder.readChunkUnzip<PNGDecoder.java:884>
                                                      .
                                                      .
                                                      .


I hope this help you  Cheesy

Offline Drenius
« Reply #2 - Posted 2013-07-11 17:03:14 »

ungh...
Removed the use of Slick everywhere except one point, so it should be easy to find that...
You can fix that blinking problem running the program with -Xmx1024M -Xms1024M
Thank you for feedback!

EDIT: Oh, and could you post the whole error message?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gongalf
« Reply #3 - Posted 2013-07-12 09:21:00 »

This is the error message:



And I get another one:

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J  org.lwjgl.opengl.GL11.nglBindTexture(IIJ)V
J  org.newdawn.slick.opengl.InternalTextureLoader.getTexture(Ljava/io/InputStream;Ljava/lang/String;IIIZ[I)Lorg/newdawn/slick/opengl/TextureImpl;
J  org.newdawn.slick.opengl.InternalTextureLoader.getTexture(Ljava/io/InputStream;Ljava/lang/String;ZI[I)Lorg/newdawn/slick/opengl/TextureImpl;
J  org.newdawn.slick.opengl.TextureLoader.getTexture(Ljava/lang/String;Ljava/io/InputStream;ZI)Lorg/newdawn/slick/opengl/Texture;
J  block.depiction.EntityDepiction.render(Ljava/util/ArrayList;)V
J  block.depiction.Game.render()V
J  block.depiction.Window.render()V
j  block.depiction.Window.runProgram()V+92
j  block.depiction.Window.<init>()V+188
j  block.depiction.Window.main([Ljava/lang/String;)V+3
v  ~StubRoutines::call_stub


I have the whole error saved in a log, if you want I could send you.

Offline Drenius
« Reply #4 - Posted 2013-07-12 16:04:03 »

"The crash happened outside the Java Virtual Machine in native code."
That could be a problem...
Whatever, what did you mean by "the game crashes at the first stage" ?
Offline Sammidysam
« Reply #5 - Posted 2013-07-12 16:11:49 »

It looks like your game is running out of memory on his machine as soon as it is run.  Are you loading too many textures (make sure to check for loading textures each render)?
Offline Drenius
« Reply #6 - Posted 2013-07-12 23:40:00 »

Should be fixed now...
Thought I removed all the points where the textures were always re-loaded, but there was still one at the entity depiction...

The character is also jumping a little bit now when leaving a ladder at the top, so it isn't trembling so much anymore.
Offline gongalf
« Reply #7 - Posted 2013-07-18 09:33:31 »

I run the game on a friend's PC and it doesn't crash. He tried the game and told me that it's so hard controlling the character. And about stairs, the character doesn't tremble now but it gets stuck when you walk over them.

Offline Drenius
« Reply #8 - Posted 2013-07-18 15:35:25 »

Stuck? How?
Offline gongalf
« Reply #9 - Posted 2013-07-22 09:33:58 »

When I'm walking over the floor and I try walking over the stairs (not climbing) I cannot cross them. I need to jump if I want to continue walking. Are you using physics? Because the problem seems to be that the stairs collision is below floor collision.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Drenius
« Reply #10 - Posted 2013-07-22 16:19:10 »

That isn't really a bug. Could change that, but don't see a real reason for it...
Should I?
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Dwinin (19 views)
2014-09-12 09:08:26

Norakomi (54 views)
2014-09-10 13:57:51

TehJavaDev (63 views)
2014-09-10 06:39:09

Tekkerue (31 views)
2014-09-09 02:24:56

mitcheeb (53 views)
2014-09-08 06:06:29

BurntPizza (37 views)
2014-09-07 01:13:42

Longarmx (23 views)
2014-09-07 01:12:14

Longarmx (27 views)
2014-09-07 01:11:22

Longarmx (26 views)
2014-09-07 01:10:19

mitcheeb (34 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!