Skip to content
Snippets Groups Projects
  1. Feb 06, 2024
  2. Feb 05, 2024
  3. Feb 04, 2024
    • Florian Schröder's avatar
      Update log path naming in Overcooked simulator · d6dbde91
      Florian Schröder authored
      The log path naming in the Overcooked simulator has been updated from a static format to a dynamic one. This change enables individual log naming for each type of event previously considered as 'actions', 'random_env_events', and 'env_configs'. The inclusion of a specific log_record_name in the path helps improve log management and tracking.
      d6dbde91
    • Florian Schröder's avatar
      Add support for ROOT_DIR in log paths · b6a9867a
      Florian Schröder authored
      The code was modified to include support for 'ROOT_DIR' as a prefix in log paths. This allows logs to be stored in a location relative to the project's root directory dynamically. The change enhances log path flexibility in the overcooked simulator.
      b6a9867a
    • Florian Schröder's avatar
      Implement additional logging and recording features · 4636abf5
      Florian Schröder authored
      This update introduces comprehensive hook management, improved environment setup functions, and a new class for logging and recording simulations. The enhanced hook management ensures better callback registration and tracing of specific simulation events. Extra setup functions allow more flexibility in setting parameters from the environment config. The new logging and recording class makes it easier to capture simulation data in a structured format for analysis. Various minor fixes and code refactoring are also included.
      4636abf5
  4. Feb 03, 2024
    • Florian Schröder's avatar
      Remove unused progressing_counters append call · 27bea8ee
      Florian Schröder authored
      The append call to the progressing_counters list in tests/test_start.py has been removed. This was deemed unnecessary because there was no subsequent use or reference to this call in the entire codebase, improving the code cleanliness and readability.
      27bea8ee
    • Florian Schröder's avatar
      Implement game effects and tools framework · c7899968
      Florian Schröder authored
      Added the definition and interactions for game effects and tools. The effect type was introduced to influence the player's interactive abilities or alter item's attributes. The tool type extends the player's interactive abilities. It also includes the part related to fire and fire extinguisher for more realistic simulation.
      c7899968
    • Florian Schröder's avatar
      Add random instance to make randomness controllable · 9fae6bad
      Florian Schröder authored
      The random module is replaced with random instance across multiple classes within 'overcooked_simulator' to make the randomness in the Overcooked simulator controllable. The 'random' instance is initialised with a seed in 'overcooked_environment' and then passed to the classes that require randomness. This improves reproducibility of experiments, as the randomness can be controlled by the seed value.
      9fae6bad
    • Florian Schröder's avatar
      Add waste progress attribute and burnt item visualization · 889364ac
      Florian Schröder authored
      A `waste_progress` attribute has been added to track the progress of burnt items. Changes also include the visualization of burnt items in greyscale and additional definitions for various types of burnt meals in Overcooked Simulator. This update enhances both the gameplay and its realism, indicating when an item is overcooked or burnt.
      889364ac
  5. Feb 02, 2024
    • Florian Schröder's avatar
      Refactor progress bar position calculation · 9fc975d5
      Florian Schröder authored
      The code for calculating the progress bar's position within the grid in gui_2d_vis/drawing.py has been clarified. Instead of directly manipulating the `pos` variable, a new `bar_pos` variable has been introduced. This revision enhances readability and maintains the integrity of the `pos` value.
      9fc975d5
    • Florian Schröder's avatar
      Merge branch '78-hooks' into 'main' · c3acd403
      Florian Schröder authored
      Resolve "Hooks"
      
      Closes #78
      
      See merge request scs/cocosy/overcooked-simulator!46
      c3acd403
    • Florian Schröder's avatar
      Remove dummy callbacks from overcooked_environment · ebdbdcf4
      Florian Schröder authored
      The dummy callbacks previously used for testing in the file 'overcooked_environment.py' have been removed. This has been done to avoid redundancy and ensure cleaner code. The comments referencing these callbacks have been updated accordingly.
      ebdbdcf4
    • Florian Schröder's avatar
      Refactor callback registration in OvercookedEnvironment · 6f16f87c
      Florian Schröder authored
      The refactoring moves the redundant callback registrations from `overcooked_environment.py` to a dedicated function, `add_dummy_callbacks`, in `hooks.py`. This restructure streamlines the code and improves readability by reducing clutter in the Overcooked Environment initialization method.
      6f16f87c
    • Florian Schröder's avatar
      Add callback hooks for game events in overcooked simulator · c8c7a773
      Florian Schröder authored
      This commit introduces specific event hooks for key game moments within the overcooked simulator. These include events like serving a non-ordered meal, starting to use the sink, completing an order, and using the trashcan. Callbacks were registered for these hooks to provide real-time feedback such as messages. Also, a typo in POST_PERFORM_ACTION parameter was corrected.
      c8c7a773
    • Florian Schröder's avatar
      Implement hooks for tracking game events · 6b2b8c76
      Florian Schröder authored
      Added a Hooks class to monitor events related to player actions, item interactions, and state changes in the game environment. A hook triggers a corresponding event when a specific action takes place, such as a player picking up an item or a game state changing. This feature will make debugging easier and provide valuable insights during gameplay.
      6b2b8c76
    • Florian Schröder's avatar
      Merge branch '75-type-hint-class-for-environment-config' into 'main' · 01d04a57
      Florian Schröder authored
      Resolve "Type hint class for environment config"
      
      Closes #75
      
      See merge request scs/cocosy/overcooked-simulator!37
      01d04a57
    • Florian Schröder's avatar
      Refactor and centralize configuration classes · 0aaf03dc
      Florian Schröder authored
      The EnvironmentConfig and OrderConfig classes, previously defined in the utils.py file, were moved to their respective modules overcooked_environment.py and order.py. This change creates a central location for configuration and reduces unnecessary dependencies in the utils.py file.
      0aaf03dc
Loading