Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (472)
Games in Android Showcase (105)
games submitted by our members
Games in WIP (524)
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  
  Warnings/errors  (Read 1545 times)
0 Members and 1 Guest are viewing this topic.
Offline DanK

Junior Member




Javver games rock yawel!


« Posted 2006-07-02 09:42:11 »

How would I get more information about things when something goes wrong, I spent a lot of time the last two days trying to figure out why I got a disconnected message immediately after validation, now it may seem kind of dumb in retrospect, but it turns out there was an issue with the password file (either an extra line or something weird), the server reported that a user left but wasn't connected and this was pretty frustrating. I've seen plenty of references to the ability to get more information but I have no idea how to actually do that. I think if I hadn't hit this snag up I'd have put up a game that could compete with kevin glass's tanks game in terms of simplicity (I'm pretty sure my graphics were going to be more like triangle, square, and perhaps... circle though). Now that I'm past the most basic step of actually having a working client/server I can get back on track but it'd definitely be handy to know how to get more information out of this thing.

Offline Jeff

JGO Coder




Got any cats?


« Reply #1 - Posted 2006-07-02 22:57:56 »

You need to enable finer Java logging and then examine the darkstar.log

This has been discussed a couple of times already on the boards. Il lsee if I can dig up step by step instructions for you-- otherwise look at the JDK's logging API docs.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Jeff

JGO Coder




Got any cats?


« Reply #2 - Posted 2006-07-06 21:42:00 »

Inthe client, you can put this code to see exceptions in your callbacks:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
// turn on detailed logging
StreamHandler streamHandler = new ConsoleHandler();
streamHandler.setLevel(Level.ALL);
streamHandler.setFilter(new Filter() {
public boolean isLoggable(LogRecord record) {
if (record.getLoggerName().startsWith("com.sun.gi")) {
return true;
}
return false;
}
});

Logger log = Logger.getLogger(""); // get root logger
log.setLevel(Level.ALL);
log.addHandler(streamHandler);


I am still looking for the instructiosn for modifying the server file...


Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline bahuman

Junior Member





« Reply #3 - Posted 2006-07-07 09:46:04 »

is this related to http://www.java-gaming.org/forums/index.php?topic=14309.0 ?
if so, could you also give us a list of possibilities for each of the properties? For example, how many log-levels are there, and how many loghandlers?
Offline Jeff

JGO Coder




Got any cats?


« Reply #4 - Posted 2006-07-08 00:28:31 »

I already posted the file in a sticky.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
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.

CopyableCougar4 (14 views)
2014-07-10 02:26:14

CopyableCougar4 (25 views)
2014-07-09 02:55:38

Code Mage (24 views)
2014-07-08 23:57:00

Code Mage (10 views)
2014-07-08 23:49:08

AppleSauce (19 views)
2014-07-08 19:25:32

CopyableCougar4 (21 views)
2014-07-06 01:51:26

ipe369 (26 views)
2014-07-05 14:18:25

vastrolorde (37 views)
2014-07-04 18:45:44

theagentd (53 views)
2014-07-02 22:19:37

theagentd (51 views)
2014-07-02 22:17:51
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!