Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
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 12238 times)
0 Members and 1 Guest are viewing this topic.
Offline tom
« Posted 2003-12-16 17: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

JGO Kernel


Medals: 120
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #1 - Posted 2003-12-16 17: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 Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #2 - Posted 2003-12-16 17:50:27 »

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

Erik

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

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #3 - Posted 2003-12-16 17:55:08 »

Worked perfectly, Love the avatar! Grin

Offline Seekely

Senior Newbie




I am java


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

no problems, nice start

http://www.untoldevils.com  
An RPG like every other, except this one is made by me
Offline EgonOlsen
« Reply #5 - Posted 2003-12-16 20: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

Senior Newbie




Plöp!


« Reply #6 - Posted 2003-12-16 21:13:52 »

Works great!

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

JGO Coder




Where's the Kaboom?


« Reply #7 - Posted 2003-12-16 22: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
« Reply #8 - Posted 2003-12-16 23: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 Coder




Where's the Kaboom?


« Reply #9 - Posted 2003-12-17 03: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! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline wiederke

Junior Member




Thx to James Gosling.


« Reply #10 - Posted 2003-12-17 09:41:56 »

Hi,

runs GREAT!!!

I'm looking forward to see the full game.


ciao torsten
Offline tom
« Reply #11 - Posted 2003-12-17 10: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 Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #12 - Posted 2003-12-17 10:57:18 »

Woo, works very well. =D

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

Play Minecraft!
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #13 - Posted 2003-12-17 12: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
« Reply #14 - Posted 2003-12-17 12: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 Coder




Where's the Kaboom?


« Reply #15 - Posted 2003-12-17 15: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
« Reply #16 - Posted 2004-01-10 12:35:58 »

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

Offline MickeyB

Senior Member




my game will work, my game will work!


« Reply #17 - Posted 2004-01-10 22:39:14 »

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

Keep it up!

MickeyB

Current Project: http://www22.brinkster.com/mbowles/
Offline tom
« Reply #18 - Posted 2004-01-27 18: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

Junior Member




There is nothing common about common sense


« Reply #19 - Posted 2004-01-29 03:00:40 »

Works fine in Redhat 9.0

Ubuntu
kul_th_las
Guest
« Reply #20 - Posted 2004-02-14 12:09:22 »

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

Keep it up.
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #21 - Posted 2004-02-15 10: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
« Reply #22 - Posted 2004-02-15 11: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
« Reply #23 - Posted 2004-02-17 00: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 Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #24 - Posted 2004-02-18 20: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 Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #25 - Posted 2004-02-18 20: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
« Reply #26 - Posted 2004-02-18 20: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

Senior Member




Thick As A Brick


« Reply #27 - Posted 2004-02-18 20: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

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #28 - Posted 2004-02-18 21: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 ?

Offline tom
« Reply #29 - Posted 2004-02-19 00: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
  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.

pw (11 views)
2014-07-24 01:59:36

Riven (10 views)
2014-07-23 21:16:32

Riven (11 views)
2014-07-23 21:07:15

Riven (12 views)
2014-07-23 20:56:16

ctomni231 (42 views)
2014-07-18 06:55:21

Zero Volt (38 views)
2014-07-17 23:47:54

danieldean (32 views)
2014-07-17 23:41:23

MustardPeter (34 views)
2014-07-16 23:30:00

Cero (50 views)
2014-07-16 00:42:17

Riven (50 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!