Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (497)
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 2 [3]
  ignore  |  Print  
  Squareheads  (Read 12604 times)
0 Members and 1 Guest are viewing this topic.
Offline 20thCenturyBoy

Senior Member


Medals: 3


So much to learn, so little time.


« Reply #60 - Posted 2004-05-02 10:08:18 »

Ok, I updated my Nvidia drivers to 53.03 and now the demo works. Excellent work Tom, it plays really smoothly. I couldn't get fullscreen to work though, it crapped out when I tried.

Damn drivers. It's a wonder that PC games work so well most of the time!

"I have never done unit testing and I don’t find it a very useful concept" - Jonathan Blow
Offline tom
« Reply #61 - Posted 2004-05-02 11:23:27 »

Glad you finally got it working Smiley

Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #62 - Posted 2004-05-02 11:51:48 »

I'm getting a weird texture and a BSP hole:

I'm getting this yellow texture + BSP holes everywhere I think should be a sky box.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline tom
« Reply #63 - Posted 2004-05-02 13:59:45 »

Quote
I'm getting this yellow texture + BSP holes everywhere I think should be a sky box.

Yes. Got some issues with sky shaders at the moment. It will be fixed. Until then, just try to ignore it Smiley

Offline Luke

Senior Newbie




I love YaBB 1G - SP1!


« Reply #64 - Posted 2004-05-02 14:36:53 »

The previous version worked in windowed mode, but with the  latest version, I get:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
java.lang.NullPointerException
      at sh.SquareHeads.createWindow(SquareHeads.java:216)
      at sh.SquareHeads.initLwjgl(SquareHeads.java:174)
      at sh.SquareHeads.main(SquareHeads.java:1294)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.sun.javaws.Launcher.executeApplication(Unknown Source)
      at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
      at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
      at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
      at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
      at com.sun.javaws.Launcher.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)


I'm runnning 1.4.2_04 on XP
Offline darcone

Junior Member




Size matters


« Reply #65 - Posted 2004-05-02 18:25:02 »

Funny that the doors open when you shoot at them Smiley Other than that, looks really really great!
Offline Morgrog

Senior Newbie




Rubber bands and cafeine, weeeee~


« Reply #66 - Posted 2004-05-02 18:33:06 »

Really really good stuff, I get some really good fps too! Smiley

If only I could play for more then 5 secs at a time :|

it crashes to the menu after a few seconds...

gnah well, still looks really really good Cheesy
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #67 - Posted 2004-05-04 09:28:59 »

Did anybody compare this with Quake 3 yet, performance-wise?

Erik

Offline tom
« Reply #68 - Posted 2004-05-04 10:45:20 »

I've done a couple of tests, and the fps is within +-15% depending on where you are and where you are looking.

But it's not a completely fair comparison as the q3 renderer does a lot more stuff like lighting entities, loding bezier surfaces, tesselating fog surfaces, doing multilayered sky etc. Also, we have vbos now wich improves performance alot.

Offline Abuse

JGO Knight


Medals: 12


falling into the abyss of reality


« Reply #69 - Posted 2004-05-04 12:30:49 »

Still isn't working here Sad

Athlon 1.33, 512ddr, GF2gts 32mb (latest drivers 56.72), WinXP.

I got it working once, out of the 4times I tried, don't ask me how or why, all I was doing was hammering the copy button on the java console window (to make sure I didn't miss the error) and it worked! (although, ingame it crashed as soon as I fired after picking up the grenade launcher)

Havn't managed to replicate this however.
Normally I just get a black framed window, desktop changes to the fullscreen gamma settings, it then bombs out with this :-

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
92  
93  
94  
95  
96  
97  
98  
99  
100  
101  
102  
103  
104  
105  
106  
107  
108  
109  
110  
111  
112  
113  
114  
115  
116  
117  
118  
119  
120  
121  
122  
123  
124  
125  
126  
127  
128  
129  
130  
131  
132  
133  
134  
135  
javaws-1.5.0-beta
Using JRE version 1.5.0-beta Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Robin Chaddock
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
0-5: set trace level to <n>
----------------------------------------------------
GuiGlobal init FileLoader
Unable to add zip D:\compaq\spill\Quake 3 Arena\baseq3\pak0.pk3
java.util.zip.ZipException: The system cannot find the path specified
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(Unknown Source)
      at java.util.zip.ZipFile.<init>(Unknown Source)
      at trb.io.FileLoader.addZipFile(FileLoader.java:48)
      at sh.Global.init(Global.java:26)
      at sh.SquareHeads.initLwjgl(SquareHeads.java:169)
      at sh.SquareHeads.main(SquareHeads.java:1294)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.sun.javaws.Launcher.executeApplication(Unknown Source)
      at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
      at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
      at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
      at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
      at com.sun.javaws.Launcher.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
Unable to add zip C:\java\sh\src\quartzdm1.jar
java.util.zip.ZipException: The system cannot find the path specified
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(Unknown Source)
      at java.util.zip.ZipFile.<init>(Unknown Source)
      at trb.io.FileLoader.addZipFile(FileLoader.java:48)
      at sh.Global.init(Global.java:27)
      at sh.SquareHeads.initLwjgl(SquareHeads.java:169)
      at sh.SquareHeads.main(SquareHeads.java:1294)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.sun.javaws.Launcher.executeApplication(Unknown Source)
      at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
      at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
      at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
      at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
      at com.sun.javaws.Launcher.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
NVIDIA Corporation
GeForce2 GTS/AGP/3DNOW!
1.5.0
GL_ARB_imaging
GL_ARB_multitexture
GL_ARB_point_parameters
GL_ARB_point_sprite
GL_ARB_texture_compression
GL_ARB_texture_cube_map
GL_ARB_texture_env_add
GL_ARB_texture_env_combine
GL_ARB_texture_env_dot3
GL_ARB_texture_mirrored_repeat
GL_ARB_transpose_matrix
GL_ARB_vertex_buffer_object
GL_ARB_vertex_program
GL_ARB_window_pos
GL_S3_s3tc
GL_EXT_texture_env_add
GL_EXT_abgr
GL_EXT_bgra
GL_EXT_blend_color
GL_EXT_blend_minmax
GL_EXT_blend_subtract
GL_EXT_clip_volume_hint
GL_EXT_compiled_vertex_array
GL_EXT_draw_range_elements
GL_EXT_fog_coord
GL_EXT_multi_draw_arrays
GL_EXT_packed_pixels
GL_EXT_paletted_texture
GL_EXT_pixel_buffer_object
GL_EXT_point_parameters
GL_EXT_rescale_normal
GL_EXT_secondary_color
GL_EXT_separate_specular_color
GL_EXT_shared_texture_palette
GL_EXT_stencil_wrap
GL_EXT_texture_compression_s3tc
GL_EXT_texture_cube_map
GL_EXT_texture_edge_clamp
GL_EXT_texture_env_combine
GL_EXT_texture_env_dot3
GL_EXT_texture_filter_anisotropic
GL_EXT_texture_lod
GL_EXT_texture_lod_bias
GL_EXT_texture_object
GL_EXT_vertex_array
GL_IBM_rasterpos_clip
GL_IBM_texture_mirrored_repeat
GL_KTX_buffer_region
GL_NV_blend_square
GL_NV_fence
GL_NV_fog_distance
GL_NV_light_max_exponent
GL_NV_packed_depth_stencil
GL_NV_pixel_data_range
GL_NV_point_sprite
GL_NV_register_combiners
GL_NV_texgen_reflection
GL_NV_texture_env_combine4
GL_NV_texture_rectangle
GL_NV_vertex_array_range
GL_NV_vertex_array_range2
GL_NV_vertex_program
GL_NV_vertex_program1_1
GL_SGIS_generate_mipmap
GL_SGIS_multitexture
GL_SGIS_texture_lod
GL_SUN_slice_accum
GL_WIN_swap_hint
WGL_EXT_swap_control
GL_MAX_TEXTURE_SIZE=2048
GL_MAX_TEXTURE_UNITS=2
GL_MAX_ELEMENTS_VERTICES=4096
GL_MAX_ELEMENTS_INDICES=4096
UdpReader socket bound at /192.168.0.1:17940

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #70 - Posted 2004-05-07 09:19:51 »

Quote
I've done a couple of tests, and the fps is within +-15% depending on where you are and where you are looking.

But it's not a completely fair comparison as the q3 renderer does a lot more stuff like lighting entities, loding bezier surfaces, tesselating fog surfaces, doing multilayered sky etc. Also, we have vbos now wich improves performance alot.


So this makes the 'java part' (as opposed to the accellerated video part), a lot slower than -15% from the C counterpart doesn't it?
Any optimizations still possible in the java code?

Offline 2late4u

Senior Newbie




.....


« Reply #71 - Posted 2004-05-07 18:00:27 »


it crashes to the menu after a few seconds...

why???
Offline tom
« Reply #72 - Posted 2004-05-07 21:43:56 »

Quote
it crashes to the menu after a few seconds...

I don't know the exact reason behind it, but it's a network problem. The game quits to the menu if the server is timed out. Meaning the client don't recieve any packets from the server within a 5 second timespan.

The next version will not quit to the menu, but instead show a warning message in game.

What system are you running on?


Quote
So this makes the 'java part' (as opposed to the accellerated video part), a lot slower than -15% from the C counterpart doesn't it?


Kind of hard to tell. I don't know how much impact the missing features would have on the fps. How much faster would q3 be with vbos? Who knows.

Quote
Any optimizations still possible in the java code?


Sure. I've only optimized the level renderer. The entity renderer could be optimized. It currently don't do any state sorting. It uses opprox 15-20% of the frame time. The bezier collision detection is also very slow, as it generates an insane amount of brushes and planes.

Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #73 - Posted 2004-05-07 22:19:54 »

>The bezier collision detection is also very slow, as it
>generates an insane amount of brushes and planes.

Q3 uses subdivisions 80 for the physics part regardless of the visual subdivision setting. The bounding boxes of the players are axis aligned BBs. The collision detection of player vs patch was optimized several times and now it only seems to kick in whenever you are sliding along a curve.

I just thought it's a good idea to point that out Smiley

弾幕 ☆ @mahonnaiseblog
Offline 2late4u

Senior Newbie




.....


« Reply #74 - Posted 2004-05-08 04:54:52 »



Quote
it crashes to the menu after a few seconds...


i have windows XP
with a
SV:   ATI Radeon 9600
CPU: Athlon XP2400+
Offline EgonOlsen
« Reply #75 - Posted 2004-05-08 07:21:49 »

Quote

I don't know the exact reason behind it, but it's a network problem. The game quits to the menu if the server is timed out.
Don't count on it. I get the same behaviour but it seems to be caused by the org.lwjgl.opengl.OpenGLException: Invalid operation (1282) stuff (as mentioned before in this thread).
Win XP, ATI Radeon9700pro...maybe it's a problem with ATI!?

Offline princec

JGO Kernel


Medals: 378
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #76 - Posted 2004-05-11 09:37:38 »

No, it's more likely that a few org.lwjgl.opengl.util.checkGLError() calls are needed to narrow down what function is being called with the wrong parameters or at the wrong time.

Cas Smiley

Offline deepFlame

Senior Newbie




Java games rock!


« Reply #77 - Posted 2004-05-11 21:07:18 »

Quote

it crashes to the menu after a few seconds...

why???

I've got the same problem.  Cry

My specs are something like his:
Windows XP
Athlon 1800+
ATI Radeon 9500
Offline dsellars

Junior Member




Need to write more games


« Reply #78 - Posted 2004-05-14 20:25:35 »

Sad

first time I got round to trying it (after meaning to for ages).

and

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
java.lang.IllegalArgumentException: InputStream cannot be null
      at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
      at trb.util.XMLDocument.<init>(XMLDocument.java:28)
      at sh.Menu.createMenuGui(Menu.java:125)
      at sh.Menu.init(Menu.java:82)
      at sh.SquareHeads.runMenu(SquareHeads.java:324)
      at sh.SquareHeads.main(SquareHeads.java:1358)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.sun.javaws.Launcher.executeApplication(Unknown Source)
      at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
      at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
      at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
      at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
      at com.sun.javaws.Launcher.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
 

I'm running

1Ghz Athalon
XP Pro
Geforce2 GTS

Still the screen shots look good!

Regards,
Dan.
Offline tom
« Reply #79 - Posted 2004-05-14 22:03:19 »

New version up which tries to fix some of the reported problems.

First off I've removed drawRangeElements alltogether. They seem to cause a native crash on some nvidia cards. In particular those with the latest drivers. This I hope will fix the "it craps out before the menu is shown" bug.

I've tried to fix the "It returns to the menu after a few seconds bug", by ignoring OpenGL errors. Hopefully the errors are not critical and the game will keep on ticking.

So if you've had any of those problems, please try again and report back  Wink

Offline Abuse

JGO Knight


Medals: 12


falling into the abyss of reality


« Reply #80 - Posted 2004-05-14 23:28:39 »

yay, works now - though it still crashes when u collect and try to fire the grenade launcher =)

Windowed mode 640x480 I get ~145fps.

:edit:

scratch that - it crashes after roughly 6seconds,
which is coincidently the amount of time it takes to go through the tp, and collect the gren. launcher =D

There is no error msg either, it just dies and vanishes - along with the console.... leaving the gamma set horribly high Sad

Can you put a shutdown hook to restore the gamma/contrast/brightness in the event of a crash?

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline deepFlame

Senior Newbie




Java games rock!


« Reply #81 - Posted 2004-05-15 10:12:03 »

Yepp, I've got the same problem.
Offline tom
« Reply #82 - Posted 2004-05-15 10:44:24 »

Quote
Can you put a shutdown hook to restore the gamma/contrast/brightness in the event of a crash?

Could try. However, what you are seeing is native crash. The javadoc says that there is bo guarantee that the shutdown hook will run if the vm is aborted. Anyone have any experience with this?

You can also adjust the gamma in the menu before entering the game. That way you can have a quick test with normal gamma values. Just to make sure it don't hang.

Offline Luke

Senior Newbie




I love YaBB 1G - SP1!


« Reply #83 - Posted 2004-05-15 15:24:38 »

Just to say the problems I reported all appear to be fixed in the latest version. Smiley
Pages: 1 2 [3]
  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.

BurntPizza (21 views)
2014-09-19 03:14:18

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

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

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

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

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

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

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

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

Longarmx (36 views)
2014-09-07 01:10:19
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!