@rem ==== DONT MIND ME ==== @set NLM=^ @set NL=^^^%NLM%%NLM%^%NLM%%NLM% @rem ====================== @echo %NL% # Test if git exists git --version @IF ERRORLEVEL 1 GOTO getgit goto gitok :getgit @echo %NL% # Install GIT! (choose add to path and commit as-is in setup) start "" https://gitforwindows.org/ @goto fail :gitok @echo %NL% # Test if gitlab is accessible git ls-remote git@gitlab.com:metastruct/mapfiles.git @IF ERRORLEVEL 1 GOTO try_gitlab_https @GOTO gitlab_test_end :try_gitlab_https git ls-remote https://gitlab.com/metastruct/mapfiles.git @IF ERRORLEVEL 1 GOTO fail :gitlab_test_end @echo %NL% # Clone all required repos @if exist common.cmd ( @echo %NL% # NOTICE: Running in cloned repo mode @pushd . @cd .. ) else ( @echo %NL% # NOTICE: Running in repoless mode git clone https://github.com/Metastruct/map-compiling-toolkit.git map-compiling-toolkit --depth 5 --single-branch @IF ERRORLEVEL 1 GOTO fail @cd map-compiling-toolkit @pushd . @cd .. ) git clone git@gitlab.com:metastruct/mapdata.git mapdata @IF ERRORLEVEL 1 GOTO mapdata_fail @goto mapdata_ok :mapdata_fail git clone https://gitlab.com/metastruct/mapdata.git mapdata :mapdata_ok git clone https://github.com/Metastruct/meta-mapassets mapdata2 git clone git@gitlab.com:metastruct/mapfiles.git mapfiles @IF ERRORLEVEL 1 GOTO mapfiles_fail @goto mapfiles_ok :mapfiles_fail git clone https://gitlab.com/metastruct/mapfiles.git mapfiles :mapfiles_ok @echo %NL% # Autosetup folders and paths @popd @pushd . cd setup @echo %NL% # Attempting python based installation (this might fail) pip install -r requirements.txt python setup.py @IF ERRORLEVEL 1 GOTO setup_py_not_ok @goto setup_py_ok :setup_py_not_ok @echo %NL% # Running setup executable setup.exe @IF ERRORLEVEL 1 GOTO fail :setup_py_ok cd .. @echo %NL% # run propper once to build models CALL "LAUNCH propperall.cmd" @IF ERRORLEVEL 1 GOTO fail notepad user_config.cmd @echo %NL%  DEVENV AUTOSETUP FINISHED. Attempting loading map. CALL "LAUNCH hammer map.cmd" @goto end :fail @echo %NL%  FAILURE :end @echo. @pause