Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (491)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
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  
  StarballX v0.19 (gage based)  (Read 4286 times)
0 Members and 1 Guest are viewing this topic.
Offline zulo

Junior Member




Java games rock!


« Posted 2003-08-18 18:44:52 »

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
Offline darcone

Junior Member




Size matters


« Reply #1 - Posted 2003-08-18 20:11:01 »

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

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #2 - Posted 2003-08-18 20:19:14 »

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

Play Minecraft!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline SpuTTer

Senior Member


Medals: 1


Lazy Middle Class Intellectual


« Reply #3 - Posted 2003-08-18 20:54:17 »

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.

Sacramento Volleyball
"Whitty phrase goes here."
Offline zulo

Junior Member




Java games rock!


« Reply #4 - Posted 2003-08-19 08:33:42 »

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 Smiley
Offline zparticle

Senior Member




Thick As A Brick


« Reply #5 - Posted 2003-08-19 12:57:54 »

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
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. Sad

Offline Slimer

Junior Newbie




"Very funny Scotty... Now beam down my clothes."


« Reply #6 - Posted 2003-08-19 19:55:06 »

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(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) 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>

--------------------------------
http://www.alienfactory.co.uk
--------------------------------
Offline zulo

Junior Member




Java games rock!


« Reply #7 - Posted 2003-08-21 11:57:43 »

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?
Offline troggan

Junior Member




no guts no glory


« Reply #8 - Posted 2003-08-21 12:14:36 »

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

(http://www.wannawork.de) - Will work for food
(http://tvbrowser.org) - Java EPG
Offline zulo

Junior Member




Java games rock!


« Reply #9 - Posted 2003-08-21 14:27:30 »

ok ill try to use imageio instead of mediatracker..
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline troggan

Junior Member




no guts no glory


« Reply #10 - Posted 2003-08-21 15:22:39 »

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

(http://www.wannawork.de) - Will work for food
(http://tvbrowser.org) - Java EPG
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #11 - Posted 2003-08-21 17:18:13 »

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

Erik

Offline Slimer

Junior Newbie




"Very funny Scotty... Now beam down my clothes."


« Reply #12 - Posted 2003-08-22 05:45:37 »

Same again here too :  Sad

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.

--------------------------------
http://www.alienfactory.co.uk
--------------------------------
Offline zulo

Junior Member




Java games rock!


« Reply #13 - Posted 2003-08-22 09:59:20 »

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)



Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #14 - Posted 2003-08-22 12:29:14 »

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.

Java Game Console Project
Last Journal Entry: 12/17/04
Offline zulo

Junior Member




Java games rock!


« Reply #15 - Posted 2003-08-22 12:42:06 »

thank you!
I sent you the source in mail.
Offline darcone

Junior Member




Size matters


« Reply #16 - Posted 2003-08-22 14:18:30 »

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.
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #17 - Posted 2003-08-22 14:18:42 »

Quote
thank you!
I sent you the source in mail.


And I've sent you the answer. Smiley

Java Game Console Project
Last Journal Entry: 12/17/04
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #18 - Posted 2003-08-22 17:05:51 »

Quote
Or at least include a .bat


Hey darcone, you don't ask a java developer for a .bat  Grin

Offline zulo

Junior Member




Java games rock!


« Reply #19 - Posted 2003-08-23 09:23:58 »

Jbanes fixed it easy Smiley hehee

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

And ill make it webstart the next time.
Offline zulo

Junior Member




Java games rock!


« Reply #20 - Posted 2003-08-28 20:10:47 »

hey

starballx v0.21 is ready for a test, its working now. (id be really shocked if it doesnt work on any other computer this time)

I tried to make it webstart but the university webspace is not available right now, so I had to put it somewhere else and they didnt support jnlp.

So you must download the jar if you want to test it. It still happens that it wont start until the third time you try it. the other times it halts at a white screen.

its located here:
http://starballx.port5.com/sbx021.jar
Offline SpuTTer

Senior Member


Medals: 1


Lazy Middle Class Intellectual


« Reply #21 - Posted 2003-08-29 04:56:52 »

I can roll the ball off the cliff and then it locks up. Does it do anything else?

Sacramento Volleyball
"Whitty phrase goes here."
Offline zulo

Junior Member




Java games rock!


« Reply #22 - Posted 2003-08-29 08:31:08 »

Thanks for taking the time to try it.

theres no limit to where you can go so when you get outside the map the game crashes.

The only thing you can do is jump,walk left and right and jump the monster so it dies. This is just a basic test for the game, this is what i got so far. The game detects when you hit the monster but you dont die yet, you can jump the monster and kill it but you have to hit right on top of it. But now that I know it works on other computers i can continue with making more sprite types,different enemies and more logic. Think i need better graphics too but thats the last thing i wanna do.
Offline SpuTTer

Senior Member


Medals: 1


Lazy Middle Class Intellectual


« Reply #23 - Posted 2003-08-29 20:35:06 »

what are the controls? I didnt see them in your post. Forgive my ignorance! I can only move left and right. Up and down dont do anything.

Sacramento Volleyball
"Whitty phrase goes here."
kul_th_las
Guest
« Reply #24 - Posted 2003-08-30 00:17:54 »

Ok, the game isn't working on my machine.

I get the company logo. I get the "Play" / "Quit" menu. I use the arrow keys to select "Play". Then I see "loading..." then I see some graphics.

On the upper-right portion of the screen, I see the message "paused...p to continue". I press "p", "P", "ctrl" "space" whatever and anything, and it never goes any further. If I Alt+Tab to another application and then come back, I just get a blank white screen. Perhaps your application is loosing its video memory (are you using volitile images, or BufferStrategy?), and you're not re-rendering your screen properly.

Also, is there a way to exit your program, besides using the Task Manager to force-quit it?

On the other hand, I applaud your efforts, and I'd love to see you're game, so please let me know (in this thread) when there's another update / fix.

If it matters to you, I'm running:
WinXP Pro
Athlon 1800+
512 RAM
GeForce 3 Ti200
Sound Blaster Audigy x-gamer
Offline DrBizzar0

Junior Member




Raj raj!


« Reply #25 - Posted 2003-08-30 06:22:26 »

Works fine on my computer (WinXP, gf4, jdk1.4.2), as SpuTTer I can't find the jump button though.
Offline kevglass

JGO Kernel


Medals: 159
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #26 - Posted 2003-08-30 06:26:01 »

Fraid I get the same as "kul_th_las" above.

ATI Mobility 9000
P2.6 Ghz
512MB
WinXP Home

Kev

Offline zulo

Junior Member




Java games rock!


« Reply #27 - Posted 2003-08-30 12:54:50 »

Smiley
Here is the buttons you can use in the game:
Enter = jump
left arrow button = go left
right arrow button = go right
p = pause/unpause
esc = exit the game

And in the game menu the red fonts are the selected one..

hm.. I use bufferstrategy(2) in the game.

Yes, maybe the graphics screen arent properly redrawn, I usually blank the screen with fillRect(0,0,width,height); when making applets. But in this game I have skipped it because of the background Image that are being drawn first and it is cleaning the screen in a way..

But do you think I should clear the screen between each frame with fillRect(0,0,screenwidth,screenheight) ?

Did you also notice that the images arent loaded right away? I use ImageIO and thought that should load all images right away.. some times the menu image doesnt appear until some seconds later. I will try to make a resourceloader class or something to load the images instead of loading images in all kind of strange places in the code.

I have some ideas of what could have gone wrong here, so il try to fix those problems, then ill post here when a newer version is ready after i make some new functions and improve gameplay etc..

thanks for the applaud, that means much to me.
kul_th_las
Guest
« Reply #28 - Posted 2003-08-31 20:58:21 »

For your non-updating frames / "should I clear the frame" question, I point you to the API documentation for the BufferStrategy class.

http://java.sun.com/j2se/1.4.2/docs/api/java/awt/image/BufferStrategy.html

I would look particularly at the "contentsLost()" method of this class. I suspect that on my machine and kevclass's machine, this method would return 'true'. While on your test machine, it probably would not.

I had a similar problem with some code I wrote a couple of months ago. Sometimes I would just get a white/gray screen, and not graphics. I was clearing the my Graphics object's draw surface every frame, and it wasn't doing any good.

What I wasn't doing: I wasn't checking the "contentsLost()" method of the BufferStrategy class, so I was trying to use a section of video memory for which my program had no claim, and my program wasn't doing anything to try to reclaim that video memory.

I was naively doing this because I thought that calling the "contentsLost()" method was going to slow down my code, but found out later that my rendering algorithm was what was slowing me down.

I hope this is a solution for you.
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.

Nickropheliac (15 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (32 views)
2014-08-22 19:31:30

atombrot (41 views)
2014-08-19 09:29:53

Tekkerue (40 views)
2014-08-16 06:45:27

Tekkerue (35 views)
2014-08-16 06:22:17

Tekkerue (25 views)
2014-08-16 06:20:21

Tekkerue (37 views)
2014-08-16 06:12:11

Rayexar (72 views)
2014-08-11 02:49:23

BurntPizza (49 views)
2014-08-09 21:09:32
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!