Show Posts
|
|
Pages: [1]
|
|
2
|
Java Game APIs & Engines / Tools Discussion / Re: Crash on Slick util Texture drawing
|
on: 2013-04-21 22:11:26
|
2. You evolve all stars every frame. Didn't see the random.nextInt(). But still, you need to save the textures somewhere, you're loading the same texture over and over again each time you call loadTexture().
Just finished stress testing, frames still dropped, but at exponentially slower rates than before  . I think my issue has been solved, I all need is to implement the changes  . I will use the Array List, and maybe make an enum of textures, or simply define all the possible textures in the class, not just the default. So many months of development went down the drain after only ~11 days of programming  . I'll write in the needed code, stress test, and tell you the results.
|
|
|
|
|
3
|
Java Game APIs & Engines / Tools Discussion / Re: Crash on Slick util Texture drawing
|
on: 2013-04-21 21:52:46
|
Found some new stuff: 1. Use a normal ArrayList. For iterating, create one copy, and iterate over that. Any adds/removals should be done to the original list 2. You are loading textures EVERY FRAME! I'm not entirely sure how SlickUtil works, but maybe you should save the textures somewhere. To lauch jvisualvm (Windows) Alt-R, type in jvisualvm, press enter. Find you application, double click, look at the graphs etc. do some sampling/profiling. Find wheter it's CPU or RAM usage that's causing the problem.
1) A normal arraylist gives me a ConcurrentModificationException. I read that I can't catch it, because catching it is only for debugging, and shouldn't be part of the final code. 2) I am saving the textures in the objects' classes..? the only time I am loading textures is in the creation of new objects, or while evolving a star(nebula-star-pulsar-etc..) 3) I don't think jvisualvm works with windows XP I'll try stress testing without stars evolving.
|
|
|
|
|
7
|
Java Game APIs & Engines / Tools Discussion / Re: Crash on Slick util Texture drawing
|
on: 2013-04-21 21:02:04
|
No exceptions, simply java crashing. A quote from the JVM error log 1
| # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows |
While stress testing, I tested prior to this post, removing entities like meteors, stars, the planet, and removing any one of them still lead to a crash. I suspect it is slick util, as the player's texture will always switch to a weapon texture, just before crashing. 
|
|
|
|
|
12
|
Java Game APIs & Engines / Tools Discussion / Re: Chrash on Slick util Texture drawing
|
on: 2013-04-21 04:56:24
|
|
1) thanks, no wonder. 2) True, need to clean up after debugging 3) I am notorious for leaving behind tutorials from youtbubers in my code, without cleaning it up afterwards. In result that whole FPS thing is more of a leftover thing. 4) The draw method should be renamed update(), granted. 5) Did you skip this? 6) I do, this is only 1/15 classes I have.
I feel ashamed for having messy coding now :'( (no good for the client anyway.) I'll re-upload a cleaner version, and simply wait for replies, if my problem isn't already fixed.
|
|
|
|
|
15
|
Games Center / WIP games, tools & toy projects / Re: EmanP's Space Game V1.0
|
on: 2012-12-17 13:55:13
|
|
again.. it is a ZERO PLAYER GAME. you really do not do anything. now if you are wondering how to select your statistics, all you do is press the bottom button to choose a random number to set your health, shield, attack, and then the large button to start the game. However if you experience any bugs, please, please tell me.
|
|
|
|
|
16
|
Games Center / WIP games, tools & toy projects / EmanP's Space Game V1.0
|
on: 2012-12-15 18:35:06
|
This my first official game, after many failures, I have managed to create an addictive ZERO PLAYER GAME. A Zero player game has pretty much the same aspects as Conway's Game of Life http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life. The Reason I created a zero player game is because I cannot use KeyListeners in an application like mine  . Regardless, it was a milestone for me, and I hope you enjoy.  The basic structure of the game is based on the end score. In the beginning of the game you will be prompted to choose the ships shields, health, and strength. The lower you choose your stats, the higher score you get in the end! Also you get better upgrades. However if you choose stats too low... you will die in the first few rounds...too high and you won't have enough upgrades to survive... You have to try and find a sweet spot that allows you to survive many rounds and get a good score. When you die, you will see the score screen pop up. You may reply giving a screenshot of your scores, or you may write down everything you got. See if you can get past 200 rounds! If you'd like, you may download it here: http://www.java-gaming.org/user-generated-content/members/152868/spacegame.jarUPDATES: - Moved the download from mediafire to JavaGaming - May have fixed a bug where images do not display. To run it, you have to extract the SpaceGame.jar out of the zip file. Then open it with Java, not an Archiver. Video responses are encouraged!
|
|
|
|
|
|
Add your game by posting it in the WIP section,
or publish it in Showcase.
The first screenshot will be displayed as a thumbnail.
|
|