lilijreey / bwapi

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

Game::mapPathName and mapFileName return incorrect values w/ auto_menu #372

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Launch a replay under "maps/replays" (e.g. "maps/replays/LastReplay.rep") using 
auto_menu. Call Game::mapPathName() from within the AI module.

What is the expected output? What do you see instead?

Should return "maps/replays/LastReplay.rep", returns 
"maps/Broodwar/LastReplay.rep" instead. Works fine when not using auto_menu.

What version of the product are you using? On what operating system?

rev 3589

Original issue reported on code.google.com by JesseHos...@gmail.com on 6 Apr 2011 at 7:49

GoogleCodeExporter commented 9 years ago

Original comment by AHeinerm on 6 Apr 2011 at 7:20

GoogleCodeExporter commented 9 years ago
These values also don't change when using restartGame which is apparently 
choosing a new random map.

Instead of going with roundabout methods of hooking, I'm thinking of directly 
editing the vector that holds the list information. I spent some time reversing 
this but havn't determined how they modified/created this stl container to, 
though I will be using structures to get around the true definition.

I have the offsets and structures ready and will be implementing it at a later 
time.

Original comment by AHeinerm on 7 Apr 2011 at 4:01

GoogleCodeExporter commented 9 years ago
Fixed in r3594, pelase test it.

Original comment by AHeinerm on 10 Apr 2011 at 2:26