qKa / bwapi-mono-bridge

Automatically exported from code.google.com/p/bwapi-mono-bridge
0 stars 0 forks source link

ClientBot crashes in Windows 7 x64 #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open Visual Studio 2008 on Windows 7 x64.
2. Compile and run the testbot in bwapi-clr-client
3. Crashes on line 26 with: bwapi.BWAPI_init();
4. And throws this exeption: The type initializer for 'BWAPI.bwapi' threw an 
exception

What is the expected output? What do you see instead?
The bot/commandopromt should say connecting like the 
examplebots\ClientBot\testbot.exe does. Instead it crashes.

What version of the product are you using? On what operating system?
BWAPI 3.2Beta
bwapi-mono-bridge 3.2b
Windows 7 x64
Starcraft 1.16.1

Please provide any additional information below.

Original issue reported on code.google.com by twsandb...@gmail.com on 28 Oct 2010 at 9:00

GoogleCodeExporter commented 8 years ago
This happens if testbot is compiled for "any cpu" and not for "x86", change the 
cpu type for each project in bwapi-clr-client to x86 and try again. also ensure 
that the dll's that bwapi tell you to put on the path are actually on the path 
(weird windows and vc90 dlls). The bot was developed on win7 x64. I might not 
have fixed the projects before deploying the 3.2b package (you could try the 
ones from svn)

Original comment by dpershouse@gmail.com on 28 Oct 2010 at 11:34

GoogleCodeExporter commented 8 years ago
Ahh ok. It works now after setting each project to Build as "x86" instead of 
"any cpu".
I think it would be a great idea to write that in your installation guide in 
your wiki,  you could also mension that it is extremely important to Open the 
exe file and Visual Studio as Admin, else it will not work.

But super great work from you with this update to 3.2Beta. Thanks a lot.

Original comment by twsandb...@gmail.com on 29 Oct 2010 at 8:32

GoogleCodeExporter commented 8 years ago

Original comment by dpershouse@gmail.com on 29 Oct 2010 at 1:25