qKa / bwapi-mono-bridge

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

file or assembly bwapi-clr or one of its dependencies was not found #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install bwapi 3.3b
2. Compile bwapi-mono-bridge 3.3a as described in the wiki
3. The ClrAIModuleLoader.exe doesnt start

What is the expected output? What do you see instead?
The expected output was to see the clraimoduleloader await connection.

Instead:
error occurred: Filen eller assemblyen 'bwapi-clr, Version=0.0.0.0, Culture=neut
ral, PublicKeyToken=null' eller en af dens afhængigheder kunne ikke indlæses. 
De
t blev forsøgt at indlæse et program med et forkert format.
   ved ClrAIModuleLoader.Program.LoadandRunBot()
   ved ClrAIModuleLoader.Program.Main(String[] args)

This error is part danish but rough translation:
error occurred: file or assembly 'bwapi-clr, Version=0.0.0.0, Culture=neut
ral, PublicKeyToken=null' or one of its dependencies was not found. It was 
attempted to read a program in a wrong format.
   ved ClrAIModuleLoader.Program.LoadandRunBot()
   ved ClrAIModuleLoader.Program.Main(String[] args)

What version of the product are you using? On what operating system?
BWAPI 3.3b
bwapi-mono-bridge 3.3a
Windows 7 HP 64-bit
Starcraft 1.16.1

Original issue reported on code.google.com by jgrot...@student.aau.dk on 30 Nov 2010 at 9:21

GoogleCodeExporter commented 8 years ago
This is probably because I didn't compile bwapi-clr with the switch that forces 
it to x86 instead of x64, so it fails to load the 32bit bwapi library. I'll 
recompile, test and upload.

Original comment by dpershouse@gmail.com on 1 Dec 2010 at 3:35

GoogleCodeExporter commented 8 years ago
Give 3.3b (new version a try)

Original comment by dpershouse@gmail.com on 1 Dec 2010 at 4:05

GoogleCodeExporter commented 8 years ago
That got rid of that bug. But i now have the problem that im using .Net 4.0 so 
this error occures:

this assembly is built by a runtime newer than the currently loaded runtime and 
cannot be loaded

I'll try eliminating the places i use .Net 4.0 from my code and see if that 
helps.

Original comment by jgrot...@student.aau.dk on 1 Dec 2010 at 1:23

GoogleCodeExporter commented 8 years ago
As i suspected. The error was caused by my projects being .Net 4.0. Reverted 
them to 3.5 and it works. Now my code just needs to work aswell:)

Thanks for the quick response to this problem.

Original comment by jgrot...@student.aau.dk on 1 Dec 2010 at 1:58

GoogleCodeExporter commented 8 years ago
Yeah, I need vs2010 for .net4  I think. Feel free to download the source and 
compile for .net4

Original comment by dpershouse@gmail.com on 1 Dec 2010 at 9:03