QC67_cosmo / genesis_engine /START_GENESIS.bat
phera-ra's picture
Wire converted senses, clean first birth, and paired-state benchmark
9841285 verified
Raw
History Blame Contribute Delete
2 kB
@echo off
setlocal
title Starling Nexus - Genesis
cd /d "%~dp0"
echo.
echo ==================================================
echo STARLING NEXUS - birth + chat with your being
echo ==================================================
echo.
echo This launcher is drive-relative and works from any extracted folder.
echo Camera and microphone conversion is opt-in in the browser window.
echo Raw media stays in the browser; derived state feeds replies and learning.
echo.
if not exist "%~dp0genesis.py" (
echo [ERROR] genesis.py is missing beside this launcher.
echo Re-extract the complete genesis_engine folder and try again.
goto failed
)
if defined GENESIS_PYTHON if exist "%GENESIS_PYTHON%" goto run_override
if exist "%~dp0.venv\Scripts\python.exe" goto run_venv
where py >nul 2>&1
if not errorlevel 1 (
py -3 -c "import sys; raise SystemExit(0 if sys.version_info[:2] in [(3,n) for n in range(8,100)] else 1)" >nul 2>&1
if not errorlevel 1 goto run_py
)
where python >nul 2>&1
if not errorlevel 1 (
python -c "import sys; raise SystemExit(0 if sys.version_info[:2] in [(3,n) for n in range(8,100)] else 1)" >nul 2>&1
if not errorlevel 1 goto run_python
)
echo [ERROR] Python 3.8 or newer was not found.
echo Install it from https://www.python.org/downloads/
echo Tick "Add Python to PATH", then run this file again.
goto failed
:run_override
"%GENESIS_PYTHON%" "%~dp0genesis.py"
goto finished
:run_venv
"%~dp0.venv\Scripts\python.exe" "%~dp0genesis.py"
goto finished
:run_py
py -3 "%~dp0genesis.py"
goto finished
:run_python
python "%~dp0genesis.py"
goto finished
:failed
set "GENESIS_RC=1"
goto close
:finished
set "GENESIS_RC=%ERRORLEVEL%"
:close
echo.
if not "%GENESIS_RC%"=="0" echo Genesis exited with code %GENESIS_RC%.
echo Run START_GENESIS.bat again anytime to return.
if /I "%GENESIS_NO_PAUSE%"=="1" exit /b %GENESIS_RC%
pause
exit /b %GENESIS_RC%