Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- rem V2.4.1b of Diag dump.
- set GodusSaveDir=GodusInfo
- set Desktop=%USERPROFILE%\Desktop
- set DiagDir=%Desktop%\%GodusSaveDir%
- set GodusDir=
- set i=
- echo Game diagnostics files are being saved to %GodusSaveDir% which is being put on your desktop.
- echo.
- echo ---
- echo.
- for /f "delims=" %%i in ('dir /b /a-d ".\godus.exe" 2^>nul') do set GodusDir=%%i
- if "%GodusDir%"=="" goto setup_diagdir
- set GodusDir=%GodusDir:~0,-9%
- if "%GodusDir%"=="" set GodusDir=.
- echo Found Godus.exe in %GodusDir%
- :setup_diagdir
- echo Creating directory %DiagDir%
- mkdir %DiagDir%
- echo Diagnostics Directory is: %DiagDir%
- if not exist %DiagDir% goto error_DiagDir
- echo %DiagDir% - Directory created.
- if not "%GodusDir%"=="" goto Create_Dxdiagdump
- :PickDrive
- set GodusDir=
- choice /c abcdefghijklmnopqrstuvwxyz /n /M "Drive where your game is installed > "
- if ERRORLEVEL==1 set GodusDir=A
- if ERRORLEVEL==2 set GodusDir=B
- if ERRORLEVEL==3 set GodusDir=C
- if ERRORLEVEL==4 set GodusDir=D
- if ERRORLEVEL==5 set GodusDir=E
- if ERRORLEVEL==6 set GodusDir=F
- if ERRORLEVEL==7 set GodusDir=G
- if ERRORLEVEL==8 set GodusDir=H
- if ERRORLEVEL==9 set GodusDir=I
- if ERRORLEVEL==10 set GodusDir=J
- if ERRORLEVEL==11 set GodusDir=K
- if ERRORLEVEL==12 set GodusDir=L
- if ERRORLEVEL==13 set GodusDir=M
- if ERRORLEVEL==14 set GodusDir=N
- if ERRORLEVEL==15 set GodusDir=O
- if ERRORLEVEL==16 set GodusDir=P
- if ERRORLEVEL==17 set GodusDir=Q
- if ERRORLEVEL==18 set GodusDir=R
- if ERRORLEVEL==19 set GodusDir=S
- if ERRORLEVEL==20 set GodusDir=T
- if ERRORLEVEL==21 set GodusDir=U
- if ERRORLEVEL==22 set GodusDir=V
- if ERRORLEVEL==23 set GodusDir=W
- if ERRORLEVEL==24 set GodusDir=X
- if ERRORLEVEL==25 set GodusDir=Y
- if ERRORLEVEL==26 set GodusDir=Z
- if ERRORLEVEL==0 if %GodusDir%.==. goto choice_error
- Echo Finding Godus.exe the long way - This may take a while.
- for /f "delims=" %%i in ('dir /s /b /a-d "%GodusDir%:\godus.exe" 2^>nul') do set GodusDir=%%i
- if exist %GodusDir% goto set_godusdir
- echo godus.exe not found on drive %GodusDir%
- echo Please try another drive letter or press ctrl-c to exit
- goto pickdrive
- :set_godusdir
- set GodusDir=%GodusDir:~0,-9%
- Echo Found Godus install dir -> %GodusDir%
- set i=
- :Create_Dxdiagdump
- echo ---
- echo Starting Godus diagnostics data retrival.
- echo ---
- Echo Creating DXDiagDump.txt - This may take a while. Even on a fast system.
- dxdiag /t %DiagDir%\DxdiagDump.txt
- :getgodusfiles
- rem Collect Crash.log,Verbose.log and other files like minidump.
- :Crash_collect
- echo Copying Crashlog Files.
- copy /Y %GodusDir%\crashlog-*.txt %DiagDir%
- :Verbose_log
- Echo Copying Verbose Files.
- copy /Y %GodusDir%\verbose_*.log %DiagDir%
- :Misc_files
- Echo Copying the id file.
- Copy /Y %GodusDir%\id %DiagDir%
- :Mini_dump
- Echo Checking if minidump has been created.
- if not exist %GodusDir%..\minidump.dmp goto no_mini_dump
- echo Copying %GodusDir%..\minidump.dmp
- copy /Y %GodusDir%..\minidump.dmp %DiagDir%
- goto save_games
- :no_mini_dump
- echo No Mini dump found.
- :Save_games
- for /f "delims=" %%i in ('dir /b /ad "%GodusDir%\prf*.*"') do set PrfDir=%%i
- if "%PrfDir%"=="" goto no_save_dir
- echo Save game directory %PrfDir%
- md %DiagDir%\%PrfDir%
- echo Copying Save game data.
- copy /Y %GodusDir%\%PrfDir%\*.* %DiagDir%\%PrfDir%
- :copy_balance_files
- Echo Copying balance files.
- mkdir %DiagDir%\BalanceModifiersOriginals
- mkdir %DiagDir%\bm
- copy /Y %GodusDir%\BalanceModifiersOriginals\*.* %DiagDir%\BalanceModifiersOriginals
- copy /Y %GodusDir%\bm\*.* %DiagDir%\bm
- :make_nice_info_for_22cans
- Echo Makeing Verbose index file for 22cans. This is handy if you have large verbose files with new
- sessions.
- find /I /N "LOG_START" %GodusDir%\Verbose*.log > %DiagDir%\Verbose_index.txt
- cd /d %DiagDir%
- goto end
- :choice_error
- echo Mysterious choice error. Could be ctrl-c or ctrl-break was pressed?
- goto end
- :no_save_dir
- echo No save game directory found.
- goto end
- :error_DiagDir
- echo Diagnostic dump directory unable to be created. Error Code 1. (Directory not found)
- :end
Add Comment
Please, Sign In to add comment