@echo off setlocal chcp 65001 >nul cd /d "%~dp0..\..\.." if not exist tomie.json copy /y tomie.example.json tomie.json >nul if not exist "data\tomie\patches\latest.json" ( echo Run scripts\windows\tomie\prepare_tomie_translation.bat first. goto failed ) if not exist ".venv\Scripts\python.exe" ( echo Run scripts\windows\tomie\prepare_tomie_translation.bat first. goto failed ) ".venv\Scripts\python.exe" -c "import TypeTreeGeneratorAPI" >nul 2>nul if errorlevel 1 ( ".venv\Scripts\python.exe" -m pip install -e ".[unity]" if errorlevel 1 goto failed ) ".venv\Scripts\python.exe" -X utf8 -m local_translator.tomie_full --config tomie.json run --retry %* if errorlevel 1 goto failed if not defined LOCAL_TRANSLATOR_NO_PAUSE pause exit /b 0 :failed echo Translation stopped. Progress is saved; run this file again to continue. if not defined LOCAL_TRANSLATOR_NO_PAUSE pause exit /b 1