Skip to content
Snippets Groups Projects
  1. Feb 07, 2024
  2. Jan 31, 2024
    • Florian Schröder's avatar
      Add player position to view restriction and implement angle calculation · de52447e
      Florian Schröder authored
      Player's position has been added to the view restriction in order to provide a more precise representation of the environment. A function for calculating the angle between two points has been implemented in the utils module. Changes have also been made to accommodate these new updates in the 2D visualization module.
      de52447e
    • Florian Schröder's avatar
      Refine view_restriction condition in drawing.py · e6452150
      Florian Schröder authored
      The condition for "view_restriction" in the drawing.py file has been revised. Previously, it only checked if "view_restriction" was in the state, but now it also checks whether state["view_restriction"] is not false, avoiding potential exceptions.
      e6452150
    • Florian Schröder's avatar
      Implement Fog of War feature in game environment · edf18fd8
      Florian Schröder authored
      Added a Fog of War option that if activated, restricts the player's view in the game environment. This feature is an attribute in the game state, view_restriction, and incorporated into the get_json_state method to return player's viewing direction and angle if Fog of War is enabled. Additionally, added view restriction handling in the gui_2d_vis drawing method.
      edf18fd8
    • Florian Schröder's avatar
      Add argparse for CLI in simulator script · 274592dd
      Florian Schröder authored
      An argparse has been added to the overcooked simulator script for better configuration of the command line interface. This allows the user to input the state file, visualization configuration and output filename when executing the script. As a result, the need to manually update these parameters in the script has been mitigated.
      274592dd
  3. Jan 30, 2024
  4. Jan 29, 2024
  5. Jan 28, 2024
    • Florian Schröder's avatar
      Update command line instructions for game server and GUI · 610e930e
      Florian Schröder authored
      The instructions for starting the Overcooked game server and GUI have been updated. They now include manager_ids as extra arguments, which are necessary for proper setup. This changelog is reflected in the __init__.py file of the overcooked_simulator directory.
      610e930e
    • Florian Schröder's avatar
      Update command instructions and enhance error handling · 239e7093
      Florian Schröder authored
      The README.md file has been updated with revised instructions on initiating game server and GUI, specifically the inclusion of manager_ids as arguments. The argument type for manager_ids in utils.py is also altered from list to string. Exception handling in overcooked_gui.py has been improved to explicitly throw a value error when encountering forbidden requests.
      239e7093
    • Florian Schröder's avatar
      Add manager ID argument to Overcooked simulator · 8d82c086
      Florian Schröder authored
      An optional argument for the list of manager IDs was added across the Overcooked simulator. These IDs are now used for authorization purposes when creating environments. Unauthorized attempts now return HTTP error 403. This helps enhance security and control over environment management in the simulation.
      8d82c086
  6. Jan 27, 2024
    • Florian Schröder's avatar
      Add penalty for trashing items in Overcooked simulator · b600b39e
      Florian Schröder authored
      This update introduces a penalty computation for items that the player puts into the trash in the Overcooked simulator. A new function has been added onto the Order class to calculate this penalty, and the Trashcan class has been updated to use this new function whenever an item is dropped off. This change helps to further emulate real gameplay mechanics.
      b600b39e
    • Florian Schröder's avatar
      Refactor 2D visualization and GUI components · fe277e48
      Florian Schröder authored
      This commit provides a significant overhaul of various aspects within the overcooked_simulator's 2D visualization and GUI components. The changes include adjusting the game window and grid size, simplifying the drawing methods by removing redundancy, and enhancing the theme configuration for the GUI. This makes the code cleaner and easier to maintain, besides improving the visual style of the GUI.
      fe277e48
    • Florian Schröder's avatar
      Refactor counter setup and update various classes · d9ddc417
      Florian Schröder authored
      The `overcooked_environment.py` file has been significantly refactored to streamline handling of counter setup. Post counter setup responsibilities have been shifted to the `CounterFactory` class. A utility function, `get_closest`, has been introduced in `utils.py` to determine the closest counter and is used in multiple classes. Minor updates are also made across several other classes for optimization and clarity. The 'other' score in `environment_config.yaml` has been changed from 0 to 20.
      d9ddc417
  7. Jan 26, 2024
Loading