StarballX v0.19 (gage based)

hey

I uploaded a test version of my game today, so If anyone wants to try it go ahead…

http://afweb.hit.no/~u022304/StarBallXv0.19.zip

you need java 1.4.2 to run it

I wasn´t able to run the .jar … dunno if it´s my java or anything

same here. It just hangs and gobbles cpu for a while. =/

jar didnt do anything so I un-jar’d it and tried from console…

got error:

New Acceleration Threshold: 0
Acceleration for translucent images is enabled.

WIDTH: 34 Height: 30


Another exception has been detected while we were handling last error.
Dumping information about last error:
ERROR REPORT FILE = (N/A)
PC = 0x182d9e6d
SIGNAL = -1073741819
FUNCTION NAME = (N/A)
OFFSET = 0xFFFFFFFF
LIBRARY NAME = (N/A)
Please check ERROR REPORT FILE for further information, if there is any.
Good bye.

ok thanks for testing.

I have uploaded it again, I think something was wrong with the last zip file.

http://afweb.hit.no/~u022304/sbxtest.zip

This is what I do to run it:
-Unzip
-open a console and change to the bin directory.
-run the game with “java -jar StarBallX.jar”

By some strange reason when starting it the first time it always stops with a white screen then hangs. If that happens just type ctrl+c to end it.
Then when you try again it works (have no idea why it works the second time)

Hope it works now :slight_smile:


C:\temp\sbx\bin>java -jar StarBallX.jar
New Acceleration Threshold: 0
Acceleration for translucent images is enabled.
WIDTH: 34 Height: 30WIDTH: 34 Height: 30WIDTH: 34 Height: 34WIDTH: 34 Height: 34WIDTH: 56 Height: 50WIDTH: 56 Height: 50
C:\temp\sbx\bin>java -jar StarBallX.jar
WIDTH: 34 Height: 30WIDTH: 34 Height: 30New Acceleration Threshold: 0
Acceleration for translucent images is enabled.
WIDTH: 34 Height: 34WIDTH: 34 Height: 34WIDTH: 56 Height: 50WIDTH: 56 Height: 50
C:\temp\sbx\bin>java -jar StarBallX.jar
WIDTH: 34 Height: 30WIDTH: 34 Height: 30New Acceleration Threshold: 0
Acceleration for translucent images is enabled.
WIDTH: 34 Height: 34WIDTH: 34 Height: 34WIDTH: 56 Height: 50WIDTH: 56 Height: 50

Doesn’t do anything. :frowning:

I’m afraid I get the same… It spits out the following and nothing else.
`
C:\Temp\starball\bin>java -version
java version “1.4.2”
Java™ 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot™ Client VM (build 1.4.2-b28, mixed mode)

C:\Temp\starball\bin>java -jar StarBallX.jar
WIDTH: 34 Height: 30WIDTH: 34 Height: 30New Acceleration Threshold: 0
Acceleration for translucent images is enabled.
WIDTH: 34 Height: 34WIDTH: 34 Height: 34WIDTH: 56 Height: 50WIDTH: 56 Height: 50
C:\Temp\starball\bin>
`

ok now it should work…had some trouble making a jar, because i didnt know i had to unpack gage2d and timer.jar in the main jar file.

So, wanna try it again? dl is smaller now because i removed two png files that was 400kb.

http://afweb.hit.no/~u022304/sbx019.jar

on my computer it stops at a white screen the first time i run it, but if i try to run it again it works…no idea why.

btw. should I be using mediatracker in a game like this?

look here http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=2D;action=display;num=1058363828;start=3#3 :slight_smile:

ok ill try to use imageio instead of mediatracker…

I see the menu, but if i want to play the game, it crashes with that message :

WIDTH: 34 Height: 30WIDTH: 34 Height: 30WIDTH: 34 Height: 34WIDTH: 34 Height: 34
WIDTH: 56 Height: 50WIDTH: 56 Height: 50

troggan

Same here.
Also, the screen appears in the upper left corner of an otherwise white screen.

Erik

Same again here too : :frowning:
`
C:\Temp\starball>java -jar Sbx019.jar

…GameState.intro…
…GameState.intro…
…GameState.meny…
New Acceleration Threshold: 0
…GameState.meny…
Acceleration for translucent images is enabled.
…GameState.meny…
…GameState.meny…
WIDTH: 34 Height: 30WIDTH: 34 Height: 30WIDTH: 34 Height: 34WIDTH: 34 Height: 34WIDTH: 56 Height: 50WIDTH: 56 Height: 50

C:\Temp\starball>
`
I never saw the Intro, just a flickery white screen - that may be to do with screen resolution / screen depth / frequency etc. Do you check if the desired screen setting is available?

The main menu (StarBall - Play - Quit) appeared alright though.

the flickering screen happens while it waits for the
intro image to load(not using imageio yet),and i dont refill the screen so thats probably why.

the fullscreen settings i use are from the gage2d shooter example. I have set the resolution to be 640x480x60.

maybe these errors could be because of the acceleration values i set? (buggy?)

do you think I should use the gage src in my project instead of the precompiled? maybe its buggy because i use java 1.4.2 and gage was compiled with 1.4.1_02(i think)

Zulo,

Whatever the problem is, its in your code. It’s not the packaging, it’s not the source. It’s something you have that noone else does. (For example, libraries hidden away in your ext directory.) How about you mail me with the source and I’ll see about helping you get going.

thank you!
I sent you the source in mail.

And please to a executable .jar or web start so that we dont have to unzip it and all. Or at least include a .bat file so that we dont have to go into console etc.

[quote]thank you!
I sent you the source in mail.
[/quote]
And I’ve sent you the answer. :slight_smile:

[quote]Or at least include a .bat
[/quote]
Hey darcone, you don’t ask a java developer for a .bat ;D

Jbanes fixed it easy :slight_smile: hehee

And i should know how to catch Exceptions properly from now on…

And ill make it webstart the next time.