Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2 3
  Print  
  Squareheads  (Read 9200 times)
0 Members and 3 Guests are viewing this topic.
Offline tom

JGO Neuromancer
****

Posts: 1113
Medals: 5



« on: 2003-12-16 11:03:43 »

Squareheads is a first person shooter, that I'm working on in my spare time. It's going to be multiplayer only game. Although I might try to make some boots.

A webstart demo can be found here:
http://home.halden.net/tombr/squareheads/squareheads.html


Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #1 on: 2003-12-16 11:28:57 »

Ok, its a little basic atm, but I think its pretty ace! No hassle, no problems.. just worked...

Keep it up!

Kev

Offline erikd

JGO Kernel
*****

Posts: 2561
Medals: 7


Maximumisness


« Reply #2 on: 2003-12-16 11:50:27 »

Cool stuff  Cool
I'm looking forward to seeing this progress!

Erik

Games published by our own members! Go get 'em!
Offline Matzon
« League of Dukes »

JGO Kernel
*****

Posts: 1805
Medals: 8


I'm gonna wring your pants!


« Reply #3 on: 2003-12-16 11:55:08 »

Worked perfectly, Love the avatar! Grin

http://certusgames.com (Free Online Multiplayer Java Games)
http://lwjgl.org (OpenGL/OpenAL for Java)
Offline Seekely

JGO n00b
*

Posts: 49


I am java


« Reply #4 on: 2003-12-16 12:19:23 »

no problems, nice start

http://www.untoldevils.com  
An RPG like every other, except this one is made by me
Offline EgonOlsen

JGO Strike Force
***

Posts: 821
Medals: 6



« Reply #5 on: 2003-12-16 14:33:35 »

Doesn't work for me. The window opens, everything is black and then it closes. That's on a P4@3.2Ghz, Radeon9700pro (Catalyst 3.9 drivers), WinXP home SP1, Java 1.4.2

Edit: Deleted the JWS caches and tried it again and now it works fine.

Offline markush

Jr. Member
**

Posts: 52


Plöp!


« Reply #6 on: 2003-12-16 15:13:52 »

Works great!

WinXP Pro, java 1.4.dontknow:), radeon 9700pro, athlon xp 2200, 1.5G Ram
Offline swpalmer

JGO Kernel
*****

Posts: 3438
Medals: 4


Where's the Kaboom?


« Reply #7 on: 2003-12-16 16:07:13 »

Does not work on Mac OS X (1.4.2DP1)

The application silently disappears when launched - no logs.
I suspect there is an exception thrown that is being caught without actually doing anything to handle the error.  tsk... tsk...

Offline tom

JGO Neuromancer
****

Posts: 1113
Medals: 5



« Reply #8 on: 2003-12-16 17:44:26 »

Thank you all for testing the game!!

For those of you who did not get it to run. Please try again. I've added an error dialog that is shown if it crashes. If it shows (fingers crossed), please post the error message here.

Offline swpalmer

JGO Kernel
*****

Posts: 3438
Medals: 4


Where's the Kaboom?


« Reply #9 on: 2003-12-16 21:50:33 »

OS X

java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
     at java.lang.Runtime.loadLibrary0(Runtime.java:788)
     at java.lang.System.loadLibrary(System.java:834)
     at org.lwjgl.Sys.initialize(Unknown Source)
     at org.lwjgl.Sys.<clinit>(Unknown Source)
     at org.lwjgl.opengl.Window.<clinit>(Unknown Source)
     at sh.SquareHeads.initLwjgl(SquareHeads.java:125)
     at sh.SquareHeads.main(SquareHeads.java:857)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:324)
     at com.sun.javaws.Launcher.executeApplication(Launcher.java:844)
     at com.sun.javaws.Launcher.executeMainClass(Launcher.java:804)
     at com.sun.javaws.Launcher.continueLaunch(Launcher.java:682)
     at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:397)
     at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:199)
     at com.sun.javaws.Launcher.run(Launcher.java:167)
     at java.lang.Thread.run(Thread.java:552)



Games published by our own members! Go get 'em!
Offline wiederke

Jr. Member
**

Posts: 76


Thx to James Gosling.


« Reply #10 on: 2003-12-17 03:41:56 »

Hi,

runs GREAT!!!

I'm looking forward to see the full game.


ciao torsten
Offline tom

JGO Neuromancer
****

Posts: 1113
Medals: 5



« Reply #11 on: 2003-12-17 04:41:04 »

swpalmer:
Looks like I made a copy and past mistake in the signing script. The windows dll was used instead of the osx jnilib  Embarrassed

I've corrected it now, if you wan't to have another go. I think the game will work on a mac. Although, wasn't there a problem with buffered keyboard input when using lwjgl on a mac?

Offline Markus_Persson

JGO Kernel
*****

Posts: 2092
Medals: 10


Mojang Specifications


« Reply #12 on: 2003-12-17 04:57:18 »

Woo, works very well. =D

Kinda hard to actually get a kill in it though. =)

Play Minecraft!
Offline swpalmer

JGO Kernel
*****

Posts: 3438
Medals: 4


Where's the Kaboom?


« Reply #13 on: 2003-12-17 06:39:00 »

Ok launches now on Mac  (had to delete the app and re-install since WebStart did not pick up an updated JAR)

Problems:

- No mouse cursor..  I had to watch for the hover highlighting to know when i was over a button.

- Only uses built-in track pad of my powerbook, I have a USB mouse connected (impossible to play this style with a trackpad).  AlienFlux does work with the external mouse so this shouldn't be a limitation of LWJGL.

- Couldn't move, so I assume what you were saying about keyboard support on Mac in LWJGL might be true... I will have to fire up Alien Flux again to confirm that.. i assumed it was fixed though since AF announced the Mac release.

Offline tom

JGO Neuromancer
****

Posts: 1113
Medals: 5



« Reply #14 on: 2003-12-17 06:57:29 »

I use the hardware mouse cursor in lwjgl. But I did implement this very quickly. So I don't rescale the mouse cursor if it do not match the supported min/max size. So probably the cursor size on mac is not 32x32 and it fails. I do print it out though. So you could check it out, if you look at the java console. I'm going to fix this...eventally  Wink

Either that or hardware mouse cursor is not supported.

I don't do anything special with the mouse except using the hardware cursor. Don't know why it does not use your mouse.

w,a,s and d uses polling, so that should work. I only use buffered input on [space] and [esc].

Btw. I use lwjgl 8.0 that I downloaded a month ago. So there might be some fixes in cvs that I don't have.

Offline swpalmer

JGO Kernel
*****

Posts: 3438
Medals: 4


Where's the Kaboom?


« Reply #15 on: 2003-12-17 09:17:38 »

W,A,S,D  did not work.
*edit* I didn't see any print out about the cursor.. but that may be an issue with my Web Start client.

Offline tom

JGO Neuromancer
****

Posts: 1113
Medals: 5



« Reply #16 on: 2004-01-10 06:35:58 »

A new version is out with the following changes:
-ai players
-jumps
-frag limit

Offline MickeyB

JGO Ninja
***

Posts: 547


my game will work, my game will work!


« Reply #17 on: 2004-01-10 16:39:14 »

very nice!!!  Makes my CubeWars look sad.  Smiley

Keep it up!

MickeyB

Current Project: http://www22.brinkster.com/mbowles/
Offline tom

JGO Neuromancer
****

Posts: 1113
Medals: 5



« Reply #18 on: 2004-01-27 12:10:07 »

To save time I've decided to use the q3bsp as the level file format. I've started on the viewer, but there will be some time before I can release a demo of it. But until then I've made some screenshots you can look at:
http://home.halden.net/tombr/q3/screenshots.html

Q3 shaders are for the most part implemented. This allows for effects like environment mapping, texture coord animation, vertex animation, misc blending etc.

I've not implemented fog nor collision detection agains bezier patches. Don't know if I'll bother putting it in.

The renderer is not optimized. I don't use multitextureing, and I only use glVertex3f, glTexCoord etc. The only optimization I've done is to minimise texture binds. Quake is more than 4 times as fast as my viewer  Cry Will be difficult to get close to that.

Offline Conzar

Sr. Member
**

Posts: 317


There is nothing common about common sense


« Reply #19 on: 2004-01-28 21:00:40 »

Works fine in Redhat 9.0

Ubuntu
kul_th_las
Guest
« Reply #20 on: 2004-02-14 06:09:22 »

I finally got it to work. The game of ultimate death to textured rectangles! Whoohoo!

Keep it up.
Offline blahblahblahh

JGO Kernel
*****

Posts: 4575


http://t-machine.org


« Reply #21 on: 2004-02-15 04:47:58 »

Quote

Either that or hardware mouse cursor is not supported.


Geforce2 and I get "hardware mouse cursor not supported" and it does several annoying things as a result.

1. you have to alt-tab to get your mouse cursor back in x-windows. Grr.
2. once you've got your mouse cursor back, the game comlpetely ignores the mouse.
3. If you drage the window around, the game kills the mouse cursor again, but now at least it will recognize the existence of the mouse (as per swp's comment, you have to navigate via highlighting).

malloc will be first against the wall when the revolution comes...
Offline tom

JGO Neuromancer
****

Posts: 1113
Medals: 5



« Reply #22 on: 2004-02-15 05:14:47 »

Sorry about that. In the next version I will provide a software cursor if the hardware cursor is not support. It will still remove the native cursor, but you will have a visible cursor so that you can press the exit button.

Offline tom

JGO Neuromancer
****

Posts: 1113
Medals: 5



« Reply #23 on: 2004-02-16 18:50:51 »

I've updated the demo. I've replaced my wonderful home made box level with a quake 3 one. So check it out.

Some known issues:
  • No collision detection against curved surfaces
  • No collision detection against the transparent floor
  • When walking into the teleporter you will instead sometimes walk on top of the teleport.
  • Filtering on some lightmaps is sometimes turned off
  • AI can't navigate in q3 level so they are useless.
  • Sometimes dies without reason

It's now possible to fly by holden down space. This way it's more difficult to get stuck.

Enjoy!

Offline erikd

JGO Kernel
*****

Posts: 2561
Medals: 7


Maximumisness


« Reply #24 on: 2004-02-18 14:14:42 »

didn't work for me:

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  
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x7A05021
Function=[Unknown.]
Library=(N/A)

NOTE: We are unable to locate the function name symbol for the error
      just occurred. Please refer to release documentation for possible
      reason and solutions.


Current Java thread:
      at org.lwjgl.opengl.CoreGL11.glDrawArrays(Native Method)
      at trb.q3.VertexArray.draw(VertexArray.java:284)
      at trb.q3.BasicRenderer.drawFace(BasicRenderer.java:666)
      at trb.q3.BasicRenderer.renderLists(BasicRenderer.java:544)
      at trb.q3.BasicRenderer.render(BasicRenderer.java:460)
      at sh.Q3Level.render(Q3Level.java:209)
      at sh.SquareHeads.render(SquareHeads.java:355)
      at sh.SquareHeads.runGame(SquareHeads.java:285)
      at sh.Menu.runMenu(Menu.java:267)
      at sh.SquareHeads.runMenu(SquareHeads.java:182)
      at sh.SquareHeads.main(SquareHeads.java:979)
      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)


WinXP, GF4 Ti4200, 512Mb.
It also makes everything brighter and leaves it that way.

Another issue (which is not really your fault), but I recently moved away from IE and I now just use Opera. Webstart doesn't seem to start automatically when it's not a jnlp file but a php file like yours.

Erik

Offline erikd

JGO Kernel
*****

Posts: 2561
Medals: 7


Maximumisness


« Reply #25 on: 2004-02-18 14:16:50 »

another log:
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  
Java Web Start 1.4.2_03 Console, started Wed Feb 18 23:08:45 CET 2004
Java 2 Runtime Environment: Version 1.4.2_03 by Sun Microsystems Inc.
Logging to file: c:\webstart.log
Maximum native cursor size: 32, min size: 32
cursor size = 32,32
background: 307200 640,480
mousepressed 136.0 20.0 org.lwjgl.gui.Rectangle[x=50.0,y=95.0,width=210.0,height26.0]
Server.run()
growing vertex array 49152
mousepressed 154.0 17.0 org.lwjgl.gui.Rectangle[x=50.0,y=115.0,width=440.0,height26.0]
Using default shader models/weapons2/rocketl/rocketl.TGA
Using default shader models/weapons2/rocketl/rocketl2.tga
Using default shader models/weapons2/plasma/plasma.tga
Using default shader models/weapons2/grenadel/grenadel.tga
Using default shader models/weapons2/grenadel/grenadel.tga
Using default shader models/weapons2/lightning/lightning2.tga
Using default shader models/weapons2/shotgun/shotgun.tga
Using default shader models/weapons2/shotgun/shotgun.tga
growing vertex array 49152
FOG param
FOG 0.55 0.11 0.1 128.0
Texture 23 uses fog
Unknown Wave type: lightingSpecular
Shader with depthFunc: textures/base_wall/protobanner
FOG param
FOG 0.729 0.729 0.78 464.0
Texture 48 uses fog
Shader with depthFunc: textures/base_floor/pjgrate2
brush 175 is fog brush
brush 432 is fog brush
brush 468 is fog brush
brush 1020 is fog brush
growing vertex array 49152
growing vertex array 98304
Number of verices outputed to buffer: 35847
getStream(/data/flare2.tga)
getStream(/data/player.3ds)
0 cameras
3ds scene material 0 loaded with file /data/grass.jpg
3ds scene material 1 loaded with file /data/envmeri.tga
Server got MSG_CONNECT from -1 freeIdx=0 name=John Doe
Client.recieve() accept clientIdx=0 ping=0.006147569034611777 serverTime=9.109760039334608
New maximum packet size 44
Server.checkTimeouts() client 0 timed out: 10.00117417157767
Server removing client 0

Offline EgonOlsen

JGO Strike Force
***

Posts: 821
Medals: 6



« Reply #26 on: 2004-02-18 14:36:47 »

Doesn't work. This happens when i'm trying to start a server:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
Java Web Start 1.4.2 Konsole, gestartet Wed Feb 18 23:32:02 CET 2004

Java 2 Runtime Environment: Version 1.4.2 von Sun Microsystems Inc.
Maximum native cursor size: 32, min size: 32
cursor size = 32,32
background: 307200 640,480
mousepressed 156.0 10.0 org.lwjgl.gui.Rectangle[x=50.0,y=95.0,width=210.0,height26.0]
Server.run()

java.lang.NullPointerException
      at java.io.ByteArrayInputStream.<init>(Unknown Source)
      at sh.Q3Level.load(Q3Level.java:88)
      at sh.ServerLogic.<init>(ServerLogic.java:114)
      at sh.Server.run(Server.java:118)
      at java.lang.Thread.run(Unknown Source)

Server.run() finally
java.net.SocketException: socket closed
      at java.net.PlainDatagramSocketImpl.peekData(Native Method)
      at java.net.DatagramSocket.receive(Unknown Source)
      at sh.UdpListener.run(UdpListener.java:101)
      at java.lang.Thread.run(Unknown Source)

Offline zparticle

JGO Ninja
***

Posts: 597


Thick As A Brick


« Reply #27 on: 2004-02-18 14:49:03 »

After trying to connect to server:

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  
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x0
Function=[Unknown.]
Library=(N/A)

NOTE: We are unable to locate the function name symbol for the error
      just occurred. Please refer to release documentation for possible
      reason and solutions.


Current Java thread:
      at org.lwjgl.opengl.GL.nglBindBufferARB(Native Method)
      at org.lwjgl.opengl.GL.glBindBufferARB(Unknown Source)
      at trb.q3.VertexArray.disable(VertexArray.java:275)
      at trb.q3.BasicRenderer.render(BasicRenderer.java:463)
      at sh.Q3Level.render(Q3Level.java:209)
      at sh.SquareHeads.render(SquareHeads.java:355)
      at sh.SquareHeads.runGame(SquareHeads.java:285)
      at sh.Menu.runMenu(Menu.java:267)
      at sh.SquareHeads.runMenu(SquareHeads.java:182)
      at sh.SquareHeads.main(SquareHeads.java:979)
      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)

Offline Matzon
« League of Dukes »

JGO Kernel
*****

Posts: 1805
Medals: 8


I'm gonna wring your pants!


« Reply #28 on: 2004-02-18 15:21:40 »

cool, works fine here (xp, radeon 9700, jdk 1.5)
very nice speed, especially compared to the xith demo - though I don't know if they are comparable ?

http://certusgames.com (Free Online Multiplayer Java Games)
http://lwjgl.org (OpenGL/OpenAL for Java)
Offline tom

JGO Neuromancer
****

Posts: 1113
Medals: 5



« Reply #29 on: 2004-02-18 18:51:30 »

Quote
It also makes everything brighter and leaves it that way.

Yes, I modify the gamma settings to make things brighter. The problem is that it is not reset when the vm crashes. Maybe I'll provide another way of making things brighter. Atleast until it becomes more stable.

Quote
Webstart doesn't seem to start automatically when it's not a jnlp file but a php file like yours.

My ISP has not set the jnlp mime type. So it's either a php, or no webstart  Sad

Quote

java.lang.NullPointerException
at java.io.ByteArrayInputStream.<init>(Unknown Source)
at sh.Q3Level.load(Q3Level.java:88)
at sh.ServerLogic.<init>(ServerLogic.java:114)
at sh.Server.run(Server.java:118)
at java.lang.Thread.run(Unknown Source)

EgonOlsen: The game can not open/load a file in one of the jars. It might be a webstart issue, or I'm trying to load it in a way that is not working on your system. You could try deleting it from the webstart cache. Have you had any problems with webstart before. Ary you running window or linux? What browser?

The other two exceptions reported by zparticle and erikd are vertex array and/or vbo related. I'll have to read up on this. And defenitly add more error checking Smiley

Quote
very nice speed, especially compared to the xith demo - though I don't know if they are comparable ?

Well, using a scene graph to render a quake level is not the most efficent way of doing it Smiley So using xith will never come close to a purpose built engine. It's more interesting to compare it to the original q3. Because of vbos it's possible to make a quake viewer that is faster the the original. The special effects (fog, waving flags, animated textures etc) is slowing me down alot dough  As I haven't had the time/skill to optimize it.

Pages: [1] 2 3
  Print  
 
 
Jump to:  


Add your game by posting it in the showcase section.

The first screenshot will be displayed as a thumbnail.

obsidian_golem 2012-05-23 10:14:50

Danny02 2012-05-21 17:10:34

Danny02 2012-05-21 17:07:10

Danny02 2012-05-21 16:56:12

davedes 2012-05-21 13:59:23

obsidian_golem 2012-05-20 20:28:41

darkjava55 2012-05-12 16:14:40

Ultroman 2012-05-12 09:36:05

Ultroman 2012-05-11 22:49:53

Ultroman 2012-05-11 22:20:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.142 seconds with 21 queries.