1221442 / marioai

Automatically exported from code.google.com/p/marioai
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Recorder doesn't use level.lvl when run the normal way #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Follow the steps in issue 9

What is the expected output? What do you see instead?
You expect that even though the level generator messed up the recording would 
still work because it stores a copy of the level that was generated.  Instead, 
the level is generated freshly, level.lvl is never used, and the bug in issue 9 
occurs.

What version of the product are you using? On what operating system?
Same as always.

Please provide any additional information below.
This bug happens because currently in LevelScene.reset() line 986 the call to 
cmdLineOptions.getReplayOptions() checks for a -rep argument to get the replay 
filename.  However, currently when using Replay.java no -rep argument is taken 
and so no replayFileName exists and the level is never read from the replay 
object.

This is easily fixable since there are many ways to get the filename to the 
correct classes.  Also, since levels are supposed to be the same between plays 
maybe this doesn't matter if issue 9 is fixed.

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

GoogleCodeExporter commented 8 years ago
Thanks you for your replies!

Yes, this is a bug. I will fix it in the next commit. 

Original comment by Nikolay....@gmail.com on 28 Oct 2010 at 1:37

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r620.

Original comment by Nikolay....@gmail.com on 29 Oct 2010 at 8:35