lilijreey / bwapi

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

Saving replays with custom names broken #422

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Let a bot play out a game.
2. Click the "Save replay" button, and give it a name.
3. Observe that the saved replay is NOT the game that was just played.

What is the expected output? What do you see instead?
Expected to see the replay of the game that was just played, and for which the 
replay was saved. Instead, an irrelevant and old replay is shown.

What version of the product are you using? On what operating system?
BWAPI 3.6
Windows 7 32bit

Please provide any additional information below.
I am actually using jni-bwapi to interact with Starcraft, although i believe 
that this is not a factor in this issue.

If however, i select the replay from the folder where BWAPI stores replays 
(instead of using the saved replay that was given a custom name), everything is 
fine. It is the "Click 'save replay' -> give name -> save" process that appears 
broken.

Original issue reported on code.google.com by aaustarc...@gmail.com on 28 Nov 2011 at 6:54

GoogleCodeExporter commented 9 years ago
Applies to BWAPI 3.7.

Issue is because Broodwar copies the file "LastReplay.rep" to the specified 
location. Must intercept this using the alternative replay name.

Original comment by AHeinerm on 28 Nov 2011 at 7:18

GoogleCodeExporter commented 9 years ago
Fixed in r3980

Original comment by AHeinerm on 1 Dec 2011 at 5:36