Create and activate a virtual environment:
python -m venv venv
source venv/bin/activateuv pip install diambra
uv pip install diambra-arenaCreate the DIAMBRA roms directory:
mkdir -p /home/[USERNAME]/.diambra/roms/You can use any other directory on your system as well, but then you need to set a system environment variable
DIAMBRAROMSPATH=/absolute/path/to/roms/folder/
tip : For ROMs , find the game on diambra docs and check for search keywords and feed them to Gr0k , verify SHA ~ worked for mortal kombat 3 :)
Copy your UMK3 ROM file to the directory:
cp ~/path/to/umk3.zip /home/[USERNAME]/.diambra/roms/Check if the ROM is properly installed:
diambra arena check-roms umk3.zipIf you are using a custom directory, and have set the environment varible correctly, this should run without errors as well. Try restarting the terminal if it doesn't.
โ This command must pass successfully before proceeding. -_-
On first run, you'll need to register for a DIAMBRA account:
- Run the test script:
diambra run python trial.py(You need docker running) - When prompted to register, visit diambra.ai (cli gives diambra.ai/register it wont work)
- Click "Login" (top right) and create an account
- Complete the registration process
Run the RL training script:
diambra run -r /home/[USERNAME]/.diambra/roms/ python trial.pyor simply (if you have setup the environment variable)
diambra run python trial.pyImplemented A2C and PPO , you can find the code in the respective branches.