It is currently Thu Aug 17, 2017 1:38 pm Advanced search

Hi, and help!

New members are welcomed here to introduce themselves, meet your opponents here.
This is a place for website/account issues too.

Hi, and help!

Postby EpiX » Sat Nov 26, 2011 5:34 am

Hi,

I downloaded the C# starter package and compiled it to a .dll file (AIChallenge.dll)
added the path to the test_bot.cmd
but i get a bunch of errors and as far as i can tell they are in the python scripts...
how do i get this to work?

Thanks

Here is the log:

C:\Users\EpiX\Desktop\tools>playgame.py "C:\Users\EpiX\Documents\Visual Studio 2
010\Projects\AIChallenge\AIChallenge\bin\Debug\AIChallenge.dll" --engine_seed 42
--player_seed 42 --food none --end_wait=0.25 --verbose --log_dir game_logs --tu
rns 30 --map_file submission_test/test.map "python submission_test/TestBot.py"
-e --nolaunch --strict --capture_errors
Traceback (most recent call last):
File "C:\Users\EpiX\Desktop\tools\sandbox.py", line 383, in start
cwd=working_directory)
File "C:\Python32\lib\subprocess.py", line 741, in __init__
restore_signals, start_new_session)
File "C:\Python32\lib\subprocess.py", line 960, in _execute_child
startupinfo)
WindowsError: [Error 193] %1 is not a valid Win32 application

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\EpiX\Desktop\tools\engine.py", line 93, in run_game
sandbox.start(bot_cmd)
File "C:\Users\EpiX\Desktop\tools\sandbox.py", line 385, in start
raise SandboxError('Failed to start {0}'.format(shell_command))
sandbox.SandboxError: Failed to start ['C:/Users/EpiX/Documents/Visual', 'Studio
', '2010/Projects/AIChallenge/AIChallenge/bin/Debug/AIChallenge.dll']
waiting 0.25 seconds for bots to process end turn

C:\Users\EpiX\Desktop\tools>pause
Press any key to continue . . .
EpiX
Cadet
 
Posts: 3
Joined: Fri Nov 25, 2011 5:33 am

Re: Hi, and help!

Postby amstan » Sat Nov 26, 2011 5:23 pm

Why did you compile it to a dll?
It's meant to be an executable.
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: Hi, and help!

Postby EpiX » Sat Nov 26, 2011 11:44 pm

Hmmmm,
I have no idea why I thought it should be a dll file...
Compiled to exe and how it works.

Thanks
EpiX
Cadet
 
Posts: 3
Joined: Fri Nov 25, 2011 5:33 am


Return to Introductions

Who is online

Users browsing this forum: No registered users and 1 guest

cron