Ghost Forest - Beta

Ghost Forest Beta:

Here is Ghost Forest beta!!

Bugs have been fixed, and new features have been implemented! :slight_smile:

Any more bugs found or feedback, please leave in the comments.

Any help is greatly appreciated!

Hope you enjoy! :slight_smile:

Still to do:

More weapons

Sound track

Screenshots:

Controls:

WASD - Movement
Mouse - look
R - reload
SPACE - open chest ($100 required)/buy perk($500 required)
E - take item from chest
P - pause
Esc - exit

Download:

I get this:

Exception in thread "Thread-2" java.lang.OutOfMemoryError: Java heap space
        at java.awt.image.DataBufferByte.<init>(Unknown Source)
        at java.awt.image.ComponentSampleModel.createDataBuffer(Unknown Source)
        at java.awt.image.Raster.createWritableRaster(Unknown Source)
        at javax.imageio.ImageTypeSpecifier.createBufferedImage(Unknown Source)
        at javax.imageio.ImageReader.getDestination(Unknown Source)
        at com.sun.imageio.plugins.png.PNGImageReader.readImage(Unknown Source)
        at com.sun.imageio.plugins.png.PNGImageReader.read(Unknown Source)
        at javax.imageio.ImageIO.read(Unknown Source)
        at javax.imageio.ImageIO.read(Unknown Source)
        at twoPointFiveD.Entity.<init>(Entity.java:19)
        at twoPointFiveD.Object.<init>(Object.java:21)
        at twoPointFiveD.Tree.<init>(Tree.java:6)
        at twoPointFiveD.Main.run(Main.java:121)
        at java.lang.Thread.run(Unknown Source)

The 2.5D window loads, but there’s nothing in it.

Runs fine here on Win7, 4gb ram, dualcore 2,5GHz, Geforce 525M laptop.
Pretty cool :slight_smile: Had a bunch of scares while playing :o

A few things, though. With the few bullets I have in a magazine, I get pretty upset every time a shot goes straight through a ghost without damaging it. It seems I have to shoot a bit to the left of them to hit them, but then when I try to compensate for that, it changes when I move around. Almost like it depends on which angle (map-wise) I’m shooting at them. Perhaps the hitboxes are a bit displaced?

There are so many ghosts, that I never have time to open the chest and get the goodies. Probably because it takes a full mag to kill each of them, with the concern listed above, and me being a bit tired :slight_smile:

Also, they can kill you in less than a second. While this does add to the feeling of being in a horrible peril, I think you could lower it a bit. Especially since it seems that if 2 ghosts are within damage-range at the same time, they both count (as they should!), and with 30 ghosts chasing you…well, you get the picture.

The .bat file is temporary, right? Cause for deployment, it’s not very “slick”.

If you can fix these things, you have potential for a fun little game here. Please do post a new version, cuz I’d love to play it :smiley:

Jimmt: This is because you do not have enough RAM available, which is not your fault, the game is a RAM-guzzler at the moment, and this definitely needs fixing. Thanks for testing anyway :slight_smile:

Wow, thanks for the amazing feedback!! :slight_smile:
I’m glad you enjoyed it, and I will most definitely be taking your feedback on board.
I already knew about the bullet bug, and I will fix it promptly!
Also, the .bat file is just there in case the .jar doesn’t work.

Finally once the graphics have been updated, there will be more than just a bunch of scares! Mwahahaha! :stuck_out_tongue:

Anyways, thank you so much for playing, and keep an eye out for GhostForest (temporary name) Beta :slight_smile:

Shooting bug fixed :slight_smile:

Not killed as easily :slight_smile:

Cool! That was fast. When can I try it? :slight_smile:

You’re welcome :slight_smile: Good, good, good. I think the ghosts are horrifying as they are, but lets see what you can dish up :smiley:

Hm. The RAM problem is a major issue, though. I have 4 gigs of RAM, 2.99 usable, which is not that much but it’s pretty average. What exactly is taking up so much?

Hmmm, really??? Well that is definitely enough!
Maybe you should try changing the RAM available for java.

Here’s how:
http://www.duckware.com/pmvr/howtoincreaseappletmemory.html

I have the same problem as Jimmt (laptop with Windows XP).

I did it before you write it unfortunately, it didn’t help.

Hmmm, this is a big issue :frowning:
At the moment, the game takes up around 650mb of RAM.

How? Don’t you reuse textures? Or do you load a new texture for each ghost or something? You should make sure all textures are only loaded into ram once, and that only that one instance of it it used by each object using that texture.
I really don’t see how anything but images could produce that much of a load on ram

Yeah, I think that’s the issue, I’m working on it now :slight_smile:
Also, the new graphics are AWESOME!!

I got one of these.


java.io.IOException: mark/reset not supported
        at java.util.zip.InflaterInputStream.reset(Unknown Source)
        at java.io.FilterInputStream.reset(Unknown Source)
        at com.sun.media.sound.SoftMidiAudioFileReader.getAudioInputStream(Unkno
wn Source)
        at javax.sound.sampled.AudioSystem.getAudioInputStream(Unknown Source)
        at twoPointFiveD.Sound.<init>(Sound.java:23)
        at twoPointFiveD.Main.run(Main.java:131)
        at java.lang.Thread.run(Unknown Source)
java.io.IOException: mark/reset not supported
        at java.util.zip.InflaterInputStream.reset(Unknown Source)
        at java.io.FilterInputStream.reset(Unknown Source)
        at com.sun.media.sound.SoftMidiAudioFileReader.getAudioInputStream(Unkno
wn Source)
        at javax.sound.sampled.AudioSystem.getAudioInputStream(Unknown Source)
        at twoPointFiveD.Sound.<init>(Sound.java:23)
        at twoPointFiveD.Main.run(Main.java:132)
        at java.lang.Thread.run(Unknown Source)
java.io.IOException: mark/reset not supported
        at java.util.zip.InflaterInputStream.reset(Unknown Source)
        at java.io.FilterInputStream.reset(Unknown Source)
        at com.sun.media.sound.SoftMidiAudioFileReader.getAudioInputStream(Unkno
wn Source)
        at javax.sound.sampled.AudioSystem.getAudioInputStream(Unknown Source)
        at twoPointFiveD.Sound.<init>(Sound.java:23)
        at twoPointFiveD.Main.run(Main.java:133)
        at java.lang.Thread.run(Unknown Source)
java.io.IOException: mark/reset not supported
        at java.util.zip.InflaterInputStream.reset(Unknown Source)
        at java.io.FilterInputStream.reset(Unknown Source)
        at com.sun.media.sound.SoftMidiAudioFileReader.getAudioInputStream(Unkno
wn Source)
        at javax.sound.sampled.AudioSystem.getAudioInputStream(Unknown Source)
        at twoPointFiveD.Sound.<init>(Sound.java:23)
        at twoPointFiveD.Main.run(Main.java:134)
        at java.lang.Thread.run(Unknown Source)

Hmmmm, I’ve never seen that error message before, something to do with the sound, either your soundcard, or my coding

I got the same out of memory error that Jimmt and other are having, same 2.5D blank screen.

The problem is that your .bat file is like that:


java -cp GhostForest.jar twoPointFiveD.Main -Xmx1024m

Java will think that -Xmx1024m are arguments to YOUR application, not to the java VM.

I changed it to


java -Xmx1024m -cp GhostForest.jar twoPointFiveD.Main

And then I could run the game.

I do fancy the graphics, but gameplaywise I couldn’t do anything except shoot a few bullets, then run out of ammo… and die!

Also, I don’t see why it start aiming at the sky, I took like 2 deaths to realize I had to reposition my view to see the game itself.

It looks good, I hope you improve the gameplay so this can turn out a nice 2.5d game!

R reloads your weapon.

Cool that you found a workaround for the memory problem. OP, you shouldn’t assign extra heap, unless you’re absolutely sure you need it. It usually just covers up memory leaks for some time. It’ll still crash eventually

FFFFFFFUUUUUUUUUUUU-

…and that’s it? :-X

Edit: Well, how about this?

Mads: Thank you for the stackoverflow post! :slight_smile:
Sound still works for me, when I do a new release the new sounds should work.

Good news people!!!
Game takes up way less memory and loads in seconds!
Ultroman was right, it’s because I wasn’t reusing textures.

teletubo: thanks for the information :slight_smile: I did not realise this was the case.

New release will be out soon, maybe tonight :slight_smile:

I think you should update the .bat file with what teletubo did (it worked for me too), unless you’ve already done it.
I do get the same error as Mads, however(with the sound).
Anyways, the actual game review:
Pretty nice, kinda like slender with the flashlight and woods, except slender is pure 3d ;D
You should probably add more enemy types, and a more obvious signal that you are reloading.