Insomniumm / bwsal

Automatically exported from code.google.com/p/bwsal
0 stars 0 forks source link

InformationManager crashes BasicAIModule #36

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compile and run the BasicAIModule on python as Terran vs Protoss
The game crashes when the scouting SCV reaches 2nd start location (it scouted 
the enemy on its first try).

What is the expected output? What do you see instead?
The bot to play the game and scout the enemy

What version of the product are you using? On what operating system?
BWSAL 0.9.12 on Windows7 x86

Please provide any additional information below.
I debugged the module and came up with Access Violation within the 
InformationManager. Here is the call stack:

    BasicAIModuled.dll!std::_Tree<std::_Tset_traits<BWTA::BaseLocation *,std::less<BWTA::BaseLocation *>,std::allocator<BWTA::BaseLocation *>,0> >::_Root()  Line 1325 + 0x3 bytes  C++
    BasicAIModuled.dll!std::_Tree<std::_Tset_traits<BWTA::BaseLocation *,std::less<BWTA::BaseLocation *>,std::allocator<BWTA::BaseLocation *>,0> >::_Eqrange(BWTA::BaseLocation * const & _Keyval=0x06b177a8)  Line 1133 + 0x8 bytes    C++
    BasicAIModuled.dll!std::_Tree<std::_Tset_traits<BWTA::BaseLocation *,std::less<BWTA::BaseLocation *>,std::allocator<BWTA::BaseLocation *>,0> >::equal_range(BWTA::BaseLocation * const & _Keyval=0x06b177a8)  Line 1024 + 0x10 bytes    C++
    BasicAIModuled.dll!std::_Tree<std::_Tset_traits<BWTA::BaseLocation *,std::less<BWTA::BaseLocation *>,std::allocator<BWTA::BaseLocation *>,0> >::erase(BWTA::BaseLocation * const & _Keyval=0x06b177a8)  Line 950 + 0x10 bytes   C++
>   BasicAIModuled.dll!InformationManager::setBaseEmpty(BWTA::BaseLocation * 
base=0x06b177a8)  Line 165  C++
    BasicAIModuled.dll!ScoutManager::updateScoutAssignments()  Line 273 C++
    BasicAIModuled.dll!ScoutManager::update()  Line 153 C++
    BasicAIModuled.dll!BasicAIModule::onFrame()  Line 170 + 0x1d bytes  C++
    BWAPId.dll!BWAPI::GameImpl::processEvents()  Line 2605 + 0x1b bytes C++
    BWAPId.dll!BWAPI::GameImpl::update()  Line 478  C++
    BWAPId.dll!_nextFrameHook()  Line 208   C++

Here is the actual run-time I discovered when watching the local variables (of 
InformationManager)
scoutedAnEnemyBase  CXX0030: Error: expression cannot be evaluated  

I also attach screenshot of the game to show spawning positions.

Original issue reported on code.google.com by al.georg...@gmail.com on 12 Oct 2011 at 9:06

Attachments:

GoogleCodeExporter commented 8 years ago
The problem is that there is no calls for setInformationManager method in 
scoutManager.

Solution: add line
this->scoutManager->setInformationManager(this->informationManager);
after managers creation in BasicAIModule.cpp (after 28 line).

Original comment by W.P.Chm...@gmail.com on 31 Mar 2012 at 9:15