[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4586: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4588: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4589: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4590: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
AI Challenge Forums • View topic - java IO Exception

It is currently Sat Oct 20, 2018 7:25 am Advanced search

java IO Exception

Code won't compile? Found a bug? Post here!

java IO Exception

Postby hb44 » Tue Feb 16, 2010 9:05 pm

Running on my Microsoft XP system

Trying to run my REXX program against an example bot


C:\tmp>java -jar engine/Tron.jar maps/empty-room.txt "regina mytronbot" " java -
jar example_bots/RandomBot.jar"


Program does appear to run, but then

FATAL ERROR: failed to write to stream: java.io.IOException: The pipe is being c
losed
java.lang.Exception: One of the programs crashed!
Player Two Wins!
hb44
Major
 
Posts: 31
Joined: Wed Feb 10, 2010 3:46 pm

Re: java IO Exception

Postby amstan » Tue Feb 16, 2010 10:21 pm

Does your bot accept maps on stdin?
Alexandru M. Stan
Contest Organizer
User avatar
amstan
Contest Organizer
 
Posts: 691
Joined: Sun Jan 31, 2010 4:02 am
Location: Stoney Creek, Ontario

Re: java IO Exception

Postby hb44 » Tue Feb 16, 2010 11:32 pm

I believe so.

It does read the map which I can see when I run it on my machine.

then java fails...
hb44
Major
 
Posts: 31
Joined: Wed Feb 10, 2010 3:46 pm

Re: java IO Exception

Postby a1k0n » Tue Feb 16, 2010 11:34 pm

a1k0n
Colonel
 
Posts: 90
Joined: Fri Feb 12, 2010 3:51 am

Re: java IO Exception

Postby hb44 » Wed Feb 17, 2010 7:30 pm

Nothing happens with that.

But

regina mytronbot maps/empty-room.txt

runs my program once.
hb44
Major
 
Posts: 31
Joined: Wed Feb 10, 2010 3:46 pm

Re: java IO Exception

Postby a1k0n » Wed Feb 17, 2010 7:44 pm

Well, that isn't how it works. You need to read the map data on stdin. Not from a file, and there are no commandline arguments.
a1k0n
Colonel
 
Posts: 90
Joined: Fri Feb 12, 2010 3:51 am

Re: java IO Exception

Postby hb44 » Wed Feb 17, 2010 7:59 pm

Are you sure?

The examples on the web site under "Watch Your Entry Play Against an Example Bot", and "Watch Two Example Bots Play Tron"

look like they are running something called Tron.jar in the engine folder, and passing it:

the name of a map file
the string that runs the player1 program
the string that runs the player2 program
hb44
Major
 
Posts: 31
Joined: Wed Feb 10, 2010 3:46 pm

Re: java IO Exception

Postby a1k0n » Wed Feb 17, 2010 10:50 pm

a1k0n
Colonel
 
Posts: 90
Joined: Fri Feb 12, 2010 3:51 am

Re: java IO Exception

Postby hb44 » Wed Feb 17, 2010 11:06 pm

Thank you for the clarification. It is greatly appreciated.

REXX does handle this of course.

I will have to change one line in my REXX-starter-package.

Thanks again!
hb44
Major
 
Posts: 31
Joined: Wed Feb 10, 2010 3:46 pm


Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 2 guests

cron