google-code-export / bwapi-mono-bridge

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

Embeddedbot crashes on Windows 7 x64 #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Copied the contents of the examplebots\embeddedbot folder into the 
bwapi-data\AI folder in my starcraft directory.
2. Edited the bwapi.ini file and changed the ai_dll line to read:

[ai]
ai_dll = bwapi-data\AI\MonoBridge.dll
3. Have installed the newest mono from www.go-mono.com
4. Have set an environment variable called "MonoPath" with its value being the 
path to the Mono's bin folder
5. Run the chaoslauncher as per usual and open a melee match

What is the expected output? What do you see instead?
The bot should say something and not crash when it starts up.
Instead broodwar crashes.
In the log it says: Could not find ai_dll under ai in 
"D:\Spil\StarCraft\\bwapi-data\bwapi.ini".
But if I run the ExampleAIModule.dll, there is no errors, it starts as expected.
I wonder why there are two \\ before bwapi-data in the error message...

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.
The bot worked fine under 2.6.1 with embedded mono-bridge 0.5.

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

GoogleCodeExporter commented 9 years ago
Now I have tried to copy the StarcraftBot project folder into the MonoBridgeAI 
project and added the project in Visual Studio. It compiles with no errors, but 
the game still crashes after I have copied the new dlls to the 
..\StarCraft\bwapi-data\AI folder.

in the Monoailog.log I get the following:

11:48:35 Mono Init Started 
11:48:35 Setting DLL Dir for Mono to [C:\Program Files (x86)\Mono-2.8\bin] 
11:48:35 Setting DLL Dir for Mono to [C:\Program Files (x86)\Mono-2.8\bin] 
11:48:35 Initializing JIT 
11:48:35 D:\Spil\StarCraft\bwapi-data\AI\bot\MonoBridgeAI.dll 
11:48:35 Loading AI DLL: [D:\Spil\StarCraft\bwapi-data\AI\bot\MonoBridgeAI.dll] 
11:48:35 Failed to load AI DLL. 
11:48:35 Loading Assembly 

Original comment by twsandb...@gmail.com on 28 Oct 2010 at 9:54

GoogleCodeExporter commented 9 years ago
Ok, in second attempt I forgot to put the new compiled files: MonoBridgeAI.dll, 
MonoBridgeAI.dll.config, monobridgeai-interop.dll, StarcraftBot.dll  into the 
bot folder instead i placed them in the root of the AI folder.

The ai seems to load and tells where the units are and where the minerals are.

Bot the game still crashes like in version 2.6.1, when I try to reset game, or 
start a new game.

Do you know whats wrong here?

Original comment by twsandb...@gmail.com on 28 Oct 2010 at 10:01

GoogleCodeExporter commented 9 years ago
So you managed to get the embedded bot working, except that when you reset or 
start a new game, it crashes?. Would you be able to either start a new ticket 
for this bug or at least give us some quick steps to reproduce. Thanks 
Is the original issue resolved? can I close this ticket?

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

GoogleCodeExporter commented 9 years ago
Yeah you can close this one. The game starts with my ai as it should.

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

GoogleCodeExporter commented 9 years ago

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