Sillysoft
Lux Delux summer sale is on now!
Lux Forums
The Forums Of Universal Domination

 
  Games     Forums     Wiki     Rankings     Sillysoft Lux Online Risk Game RSS feeds    

  About     Contact     News     Sitemap     Maps     Downloads     Buy    
Memberlist     Search     Forum Sign-up     Log in
System output and exceptions

 
Post new topic   Reply to topic    Sillysoft Games Forum Index -> Robot House
View previous topic :: View next topic  
Author Message
cha
Luxer


Joined: 28 Feb 2005
Posts: 15

PostPosted: Sat Mar 19, 2005 8:39 am    Post subject: System output and exceptions Reply with quote

Hello,

Is it possible to catch System.outs and/or exceptions printed or thrown from a decendent of LuxAgent? Shocked

Best regards,
/Cha
Back to top
View user's profile Send private message View cha's ranking
cha
Luxer


Joined: 28 Feb 2005
Posts: 15

PostPosted: Sat Mar 19, 2005 8:41 am    Post subject: nm Reply with quote

Nevermind , found the logfile in the installation folder Very Happy

/Cha
Back to top
View user's profile Send private message View cha's ranking
dustin
Lux Admin
Lux Admin


Joined: 15 May 2003
Posts: 8145
Location: Vancouver

PostPosted: Sat Mar 19, 2005 11:44 am    Post subject: Reply with quote

On MacOSX you can open the Console.app to get a live read-out of the output. On other systems if you start Lux from a command line then you will get a live read out. And the log file is always there (of the last run of Lux).
Back to top
View user's profile Send private message Send e-mail Visit poster's website View dustin's ranking
guest
Luxer


Joined: 17 Dec 2004
Posts: 190
Location: Southern NH

PostPosted: Sat Mar 19, 2005 4:26 pm    Post subject: Reply with quote

I just created a JFrame with a TextArea and printed all my debug messages to that
Back to top
View user's profile Send private message AIM Address View guest's ranking
jaybird
Luxer


Joined: 23 Apr 2006
Posts: 29
Location: Pittsburgh

PostPosted: Sun Apr 23, 2006 7:57 pm    Post subject: Reply with quote

I would love some implementation guidance with the solution offered by 'guest'. I.e., creation of a Java scrolling text widget that I can write to for debug/analysis purposes.
Back to top
View user's profile Send private message Send e-mail View jaybird's ranking
Bertrand
Reaper Creator


Joined: 28 Nov 2005
Posts: 584
Location: Montreal

PostPosted: Sun Apr 23, 2006 8:19 pm    Post subject: Reply with quote

Here is what I do for debugging in Windows. Create an application icon that starts Lux with this command: "C:\WINDOWS\system32\java.exe -jar LuxCore.jar". Also set the start directory to "C:\Program Files\Lux".

When you start Lux this way, all stdout and stderr output will go to the text window in real time. I even use stdin input to pause the game at will.


Last edited by Bertrand on Sun Apr 23, 2006 8:20 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail View Bertrand's ranking
guest
Luxer


Joined: 17 Dec 2004
Posts: 190
Location: Southern NH

PostPosted: Tue Apr 25, 2006 7:40 am    Post subject: Reply with quote

In the sprefs function were the agent is passed the board create a Frame add a TextArea to it. keep a reference to the text area somewere. call setText or append, etc. Take a look at the TextArea class in the Java API doc.
Back to top
View user's profile Send private message AIM Address View guest's ranking
jaybird
Luxer


Joined: 23 Apr 2006
Posts: 29
Location: Pittsburgh

PostPosted: Tue Apr 25, 2006 11:15 am    Post subject: Reply with quote

Thanks Bertrand and guest. I was able to see output from the console. I'll look into the use of a text box a little later.
Back to top
View user's profile Send private message Send e-mail View jaybird's ranking
fellowfreak
Luxer


Joined: 13 Oct 2009
Posts: 4
Location: Austin

PostPosted: Tue Oct 13, 2009 5:28 pm    Post subject: Reply with quote

dustin wrote:
On MacOSX you can open the Console.app to get a live read-out of the output. On other systems if you start Lux from a command line then you will get a live read out. And the log file is always there (of the last run of Lux).


The log file is quite sparse in terms of reporting gameplay events. All it reports currently is "playerinfo.cardsWereCashed()" without indication of who cashed them, and it also reports when players are eliminated.

I've looked around to try to expand upon the log output, but I can't find out where it's getting created. Any help would be greatly appreciated.
Back to top
View user's profile Send private message AIM Address View fellowfreak's ranking
guest
Luxer


Joined: 17 Dec 2004
Posts: 190
Location: Southern NH

PostPosted: Thu Oct 15, 2009 7:49 pm    Post subject: Reply with quote

http://sillysoft.net/forums/viewtopic.php?p=160190&highlight=#160190
Back to top
View user's profile Send private message AIM Address View guest's ranking
Display posts from previous:   
Post new topic   Reply to topic    Sillysoft Games Forum Index -> Robot House All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Lux Delux is our flagship product: an advanced Risk world domination game with over 800 maps, hard AI, and online multi-player.

American History Lux takes you through the wars of USA history. — Ancient Empires Lux spans Babylon to the Roman Empire.

Lux Touch, Lux USA and Lux DLX let you conquer the world on your iPhone, iPod, and iPad.

Castle Vox is coming soon...

Free Game Downloads has direct download links to all the games. — We love playing fun Strategy Games.

Sillysoft Games makes games for Mac OS X, Windows XP/98/ME/2000/NT/Vista and Linux.

Macintosh users may be interested to see our favorite Mac OS X games. For the full Sillysoft empire check out the sitemap.

Because taking over the world is fun.
                                 - Lux