duyminh1998 / pycmo

Command Modern Operations Learning Environment
Other
49 stars 23 forks source link

restartScenario.bat does not work when the game first loads #39

Open duyminh1998 opened 9 months ago

duyminh1998 commented 9 months ago

Describe the bug The restartScenario.bat script does not work when the game first loads because the "Load recent" option in the game's "File" menu is not initialized correctly. We have to hover our mouse and click on "Load recent" before the list of recent game files (which restartScenario.bat relies on) can show up. It is not a critical bug though because we just need to remember to click on "Load recent" when we first open the game, but it is annoying.

To Reproduce Steps to reproduce the behavior:

  1. Boot up Command and load a scenario (do not click or use "Load recent")
  2. Run the restartScenario.bat file or the scripts/floridistan/restart_demo.py demo.

Expected behavior restartScenario.bat should restart the scenario when Command first loads without needing the user to click on the "Load recent" button once.

duyminh1998 commented 9 months ago

We removed https://github.com/duyminh1998/pycmo/pull/46, the restart functionality is in SteamClient::restart_scenario function.