How do I use this repo?
- User
How do I use this repo?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
How do I use this repo?
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
This repository contains a custom OpenRCT2 environment for training reinforcement learning (RL) agents to build rollercoasters. Here's a breakdown of how to use it:
1. System Requirements:
pyautogui, which is used for UI interaction.2. OpenRCT2 Setup:
3. Repository Installation:
git clone https://github.com/your-username/openrct2_gym.git (replace your-username with the actual username)cd openrct2_gympip install -e . (The -e flag installs the package in editable mode.)4. Training an Agent:
python train_rl_agent.py
--model-path argument to resume training: python train_rl_agent.py --model-path logs/best_model/ppo_openrct2_model./ppo_openrct2_tensorboard/ directory. You can visualize these logs using tensorboard --logdir ./ppo_openrct2_tensorboard/../logs/ directory. The best model found during training will be saved to ./logs/best_model/. The final model will be saved to ./logs/final_model/ after training.--timesteps <number>: Specify the total number of training timesteps (default: 200000).--checkpoint-freq <number>: Specify the frequency of saving checkpoints (default: 10000).--eval-freq <number>: Specify the frequency of evaluating the agent's performance (default: 10000).5. Running a Trained Model:
run_model.py script: python run_model.py
model = PPO.load("path/to/your/model"). For example, to load the best model, use model = PPO.load("logs/best_model/ppo_openrct2_model").Key Concepts and Limitations:
pyautogui to interact with the OpenRCT2 UI, which is slow and fragile. The game window must be positioned correctly for this to work.This project is a work in progress, so expect some rough edges. The developers are actively working on improvements. The provided instructions should get you started with training your own rollercoaster-building RL agent. Remember to consult the README for additional details and updates.