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]
  ignore  |  Print  
  (lwjgl) Schlug Attuck crash test  (Read 5989 times)
0 Members and 1 Guest are viewing this topic.
Offline darcone

Junior Member




Size matters


« Posted 2003-04-13 14:02:11 »

Ok, remember Schlug Attuck, my baby in Fullscreen Exclusive mode? I rewrote it in LWJGL instead and here it is... Just a crash test, you can drive and zoom and change vehicle... Read the README_FIRST.txt before playing and tell me your results and opinions.

http://www.naturalgamer.com/dist.zip  <-- will be updated with latest version all the time
Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #1 - Posted 2003-04-13 15:14:48 »

Works like a charm - but damnit - cant shoot!  Angry

Offline darcone

Junior Member




Size matters


« Reply #2 - Posted 2003-04-13 15:35:32 »

Working on the collision detection now .. =/
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline mill

Junior Member




popcorn freak


« Reply #3 - Posted 2003-04-14 05:09:06 »

$ java -cp lwjgl.jar; Schlug
java.lang.NoClassDefFoundError: Tank
       at Schlug.run(Schlug.java:47)
       at java.lang.Thread.run(Thread.java:536)

Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #4 - Posted 2003-04-14 07:20:27 »

mill:
need to add Schlug jar to classpath too !

Offline mill

Junior Member




popcorn freak


« Reply #5 - Posted 2003-04-14 08:15:11 »

ehm, am i missing something trivial? it's monday morning so i'm a bit .. ehh.. slow. Smiley

-rw-------   1 d00ama   students    8401 Apr 14 12:08 Actor.class
-rw-------   1 d00ama   students     895 Apr 14 12:08 ArrayTest.class
-rw-------   1 d00ama   students    1078 Apr 14 12:08 Chrono.class
-rw-------   1 d00ama   students    1030 Apr 14 12:08 DarcLib.class
-rw-------   1 d00ama   students    2077 Apr 14 12:08 Fonter.class
-rw-------   1 d00ama   students    1070 Apr 14 12:08 Harrier.class
-rw-------   1 d00ama   students    1697 Apr 14 12:08 Player.class
-rw-------   1 d00ama   students     227 Apr 14 12:08 README_FIRST.txt
-rw-------   1 d00ama   students    4727 Apr 14 12:08 Schlug.class
-rw-------   1 d00ama   students     567 Apr 14 12:08 Structure.class
-rw-------   1 d00ama   students    1061 Apr 14 12:08 Tank.class
-rw-------   1 d00ama   students     567 Apr 14 12:08 Targeter.class
-rw-------   1 d00ama   students    7192 Apr 14 12:08 Universe.class
-rw-------   1 d00ama   students    1070 Apr 14 12:08 Vehicle.class
-rw-------   1 d00ama   students    2872 Apr 14 12:08 Vehicle.java~
drwx--x--x   2 d00ama   students     512 Apr 14 12:08 data/
-rw-------   1 d00ama   students  229376 Apr 14 12:08 lwjgl.dll
-rw-------   1 d00ama   students  120974 Apr 14 12:08 lwjgl.jar
-rw-------   1 d00ama   students      29 Apr 14 12:08 run.bat

login-8{d00ama}: ll data
total 578
drwx--x--x   2 d00ama   students     512 Apr 14 12:08 ./
drwx--x--x   3 d00ama   students     512 Apr 14 12:08 ../
-rw-------   1 d00ama   students    1695 Apr 14 12:08 cursor.png
-rw-------   1 d00ama   students    1897 Apr 14 12:08 font.ini
-rw-------   1 d00ama   students   33259 Apr 14 12:08 font.png
-rw-------   1 d00ama   students   11856 Apr 14 12:08 harrier.png
-rw-------   1 d00ama   students   19356 Apr 14 12:08 repair.png
-rw-------   1 d00ama   students  165192 Apr 14 12:08 shelter.png
-rw-------   1 d00ama   students    1035 Apr 14 12:08 soldier.png
-rw-------   1 d00ama   students   14840 Apr 14 12:08 tank.png
-rw-------   1 d00ama   students   26569 Apr 14 12:08 wood.jpg


it seems to be missing! what do you other people use to extract rar with? what's wrong with zip? if the author is using winrar he can use zip as well as rar.

Offline mill

Junior Member




popcorn freak


« Reply #6 - Posted 2003-04-14 08:17:25 »

eh i feel so stupid hehe

i added what you said to the command line and it worked Smiley

Offline darcone

Junior Member




Size matters


« Reply #7 - Posted 2003-04-14 09:30:06 »

You execute it with run.bat so that you dont have to worry about the classpath parameter.
About the tank.class error it was an old .rar that was missing the Tank class file.. it is updated now.
I think I will switch to zip instead as man people seem to be disturbed by me using rar Smiley And yes I use winrar.
Offline mill

Junior Member




popcorn freak


« Reply #8 - Posted 2003-04-14 09:35:36 »

bat-files are for win32-people... so i suggest just pack everything in a single jar-file instead Smiley

Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #9 - Posted 2003-04-14 09:39:25 »

Hmmmm.... I got CRC errors trying to extract the jar  :-/

Erik

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

Junior Member




Size matters


« Reply #10 - Posted 2003-04-14 09:54:10 »

No one else seems to have that problem, perhaps a broken download? It is a rar btw and packed with winrar.
Offline jbanes

JGO Coder


Projects: 1


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


« Reply #11 - Posted 2003-04-14 13:17:48 »

Is there any reason for the RAR file? Some of us would rather not go through the pain of installing WinRAR or comparable libraries.

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

Junior Member




Size matters


« Reply #12 - Posted 2003-04-14 13:52:39 »

there, made it zip Smiley
www.naturalgamer.com/dist.zip
Online princec

JGO Kernel


Medals: 378
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #13 - Posted 2003-04-14 15:23:12 »

Hehehe, this looks familiar:

Failed to set screen mode: bad mode
java.lang.Exception: Failed to set display mode to 1024 x 768 x 32 @75Hz 8bit alpha, 16bit depth, 0bit stencil
       at org.lwjgl.Display.create(Unknown Source)
       at Schlug.initGL(Schlug.java:140)
       at Schlug.run(Schlug.java:45)
       at java.lang.Thread.run(Thread.java:536)


What you need is LWJGL 0.6! Coming soon.

Cas Smiley

Offline darcone

Junior Member




Size matters


« Reply #14 - Posted 2003-04-14 16:36:13 »

hehe yeah thats about the only error I get nowadays Smiley
Offline sma

Junior Member





« Reply #15 - Posted 2003-04-15 07:54:42 »

I tried to run the game, but all I get is a monitor screen that cannot synchronize on whatever screen mode is chosen.

I took the freedom to decompile the code and look for the problem and here it is:

The program tries to find a display mode 1024x768x32 display mode and picks the first maching mode.  This is fatal because my system returns a "@200Hz" mode here. That is more than my monitor can bear.

I'm amaized, my system returns not less than 5552 display modes.  I added a "modes.freq != 75" condition to the line that chooses the mode. Still 16 modes to choose from and a high chance to get the wrong one...

Otherwise quite nice Wink

.: Truth Until Paradox!
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #16 - Posted 2003-04-15 08:15:28 »

1  
2  
3  
4  
5  
java.lang.NullPointerException
        at org.lwjgl.Display.create(Unknown Source)
        at Schlug.initGL(Schlug.java:140)
        at Schlug.run(Schlug.java:45)
        at java.lang.Thread.run(Thread.java:536)


Hmmm....  :-/

Offline darcone

Junior Member




Size matters


« Reply #17 - Posted 2003-04-15 09:31:27 »

Yeah, waiting for lwjgl 0.6 that should fix that problem.

Btw.. decompile? Hmm? is that possible? What happened to compilation = code privacy, can people get the source code from byte code?
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #18 - Posted 2003-04-15 09:34:53 »

There are different kinds of tools to decompile, such as JAD (http://members.fortunecity.com/neshkov/dj.html) or DJ.

What do you mean by 'compilation = code privacy'?

Offline darcone

Junior Member




Size matters


« Reply #19 - Posted 2003-04-15 10:51:49 »

I mean that you shouldnt be able to decompile compiled code... But I talked to herkules and he told me about obfuscators so I understand it now.
Offline darcone

Junior Member




Size matters


« Reply #20 - Posted 2003-04-18 12:23:16 »

Seems not alot of ppl are interested =/ ... Anyhow, I am still working on this game.. added a apache chopper and some "terrain"
Offline darcone

Junior Member




Size matters


« Reply #21 - Posted 2003-04-21 16:41:45 »

Well.. like a diary here then Smiley
Added text to the game using a tool for creating font textures and then using simple quads.. not perfect but almost done.

Here is a screenshot (always updated for new version/feature) http://www.naturalgamer.com/scr.gif
Offline cfmdobbie

Senior Member


Medals: 1


Who, me?


« Reply #22 - Posted 2003-04-21 21:37:47 »

What program are you using to create font textures?  I've looked at a few now, but not found anything worth coming back to.

I played for a bit with loading fonts from the filesystem, but TTF et al are way too complicated to be worthwhile, and there just don't seem to be any FON-like fonts available free.  Really - they just don't exist! Shocked

Hellomynameis Charlie Dobbie.
Offline darcone

Junior Member




Size matters


« Reply #23 - Posted 2003-04-22 06:38:28 »

I am using a free software I heard of in this forum called "LMNopc Bitmap Font Builder" to create the font textures. But I heard there is some adobe product that does the same thing, but those are not for free of course Smiley Bitmap Font Builder does the job.
Offline mill

Junior Member




popcorn freak


« Reply #24 - Posted 2003-04-22 06:47:45 »

there are copyright/licenses/stuff for fonts as well, right?

Offline mill

Junior Member




popcorn freak


« Reply #25 - Posted 2003-04-22 06:50:26 »

btw there is also FontStudio over at http://www.sulaco.co.za/nitrogen/Projects.htm

Offline darcone

Junior Member




Size matters


« Reply #26 - Posted 2003-04-22 06:57:00 »

Well the fonts are licensed for sure, but I think the textures arent really exact copies of the fonts, are they? Would be nice if anyone would look it up but I dont think it is illegal to prĂ­nt fonts onto a texture and then using them in your software.
Offline darcone

Junior Member




Size matters


« Reply #27 - Posted 2003-04-28 22:06:35 »

Well.. once again I have uploaded a new version of my game.. no visual improvements or anything yet.. Just that I have implemented a Quad tree and display lists for basically everything... And yeah, also made a virtual terrain, instead of printing a large quad in the background for the lvl, that would take up alot of the GPU time, I draw a smaller quad that only covers the screen and then animate the texture coordinates.
This should alltogether improve performance somewhat.. aspecially noticeable for low-end systems.

www.naturalgamer.com/dist.zip as usual.
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #28 - Posted 2003-05-15 09:46:48 »

Finally got around to giving it a try.
It works okay and smooth and all and it looks quite nice. There was one little problem that it didn't restore the video mode properly when I exited.

But erm, where is the game?

Offline darcone

Junior Member




Size matters


« Reply #29 - Posted 2003-05-16 09:33:31 »

Hmm strange error you got. Anyway, the game I am still working on Wink Got collision detection working really nice now.. and Working on collision reaction now, want to get it really nice with good reactions. We&acute;ll see if my old physics skills will take me through this.
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.

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

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

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

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

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

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

BurntPizza (48 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 (37 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!