Last active
August 2, 2023 12:15
-
-
Save danktankk/d4cb559f81bfe96cf915413f76b34180 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
ECHO This script is for easily starting Total War: Three Kingdoms Fitgirl 1.5.3 repack. | |
ECHO. | |
ECHO You will need to change the path of where the shortcut to the EXE file is that starts the game. If this doesnt work, do more research, or buy the game. | |
ECHO. | |
PAUSE | |
ECHO. | |
ECHO Deleting reg entry responsible for the game not starting. | |
ECHO. | |
ECHO If you see an error message below, please keep reading. If not, also keeo reading as either outcome could be expected. | |
ECHO. | |
PAUSE | |
ECHO. | |
REG DELETE "HKEY_CURRENT_USER\Software\The Creative Assembly\THREE_KINGDOMS\Preferences\first_time" /v "last_content_alert_seen" /f | |
ECHO. | |
ECHO If there was an error above, it is because the registry entry that needed to be deleted is already gone. | |
ECHO. | |
PAUSE | |
CLS | |
ECHO Checking to be sure the reg entry has been deleted before proceeding | |
ECHO. | |
ECHO If you see the following, "ERROR: The system was unable to find the specified registry key or value." | |
ECHO. | |
ECHO This is expected behavior as we are first deleting a registry key and then checking to make sure it is deleted. | |
ECHO. | |
ECHO This is a good thing to see that error. | |
REG QUERY "HKEY_CURRENT_USER\Software\The Creative Assembly\THREE_KINGDOMS\Preferences\first_time" /v "last_content_alert_seen | |
ECHO. | |
ECHO Error? Good. | |
PAUSE | |
CLS | |
ECHO If the game didnt start on the first try with just deleting the reg entry, then try to rename preferences.script.txt as it can also keep the game from running as well. | |
ECHO. | |
ECHO Location of this file: "C:\Users\<user_account>\AppData\Roaming\The Creative Assembly\ThreeKingdoms\scripts\preferences.script.txt" | |
ECHO. | |
ECHO Change this batch file to match your path below! | |
ECHO. | |
@echo off | |
goto :starting | |
:invalid | |
color 0c | |
cls | |
ECHO Invalid Entry: | |
ECHO Please try again. | |
:starting | |
set /p question=Rename C:\Users\<user_account>\AppData\Roaming\The Creative Assembly\ThreeKingdoms\scripts\preferences.script.txt? (Y/N)? ) | |
if /i {%question%}=={y} (goto :yes) | |
if /i {%question%}=={yes} (goto :yes) | |
if /i {%question%}=={n} (goto :no) | |
if /i {%question%}=={no} (goto :no) | |
if /i {%question%}=={%question%} (goto :invalid) | |
:yes | |
color 0a | |
cls | |
ECHO Renaming requested file. | |
IF exist C:\Users\<user_account>\AppData\Roaming\The Creative Assembly\ThreeKingdoms\scripts\preferences.script.txt ( | |
REN "C:\Users\<user_account>\AppData\Roaming\The Creative Assembly\ThreeKingdoms\scripts\preferences.script.txt" "preferences.script.bak" | |
ECHO "File renamed" | |
) ELSE ( | |
IF exist C:\Users\<user_account>\AppData\Roaming\The Creative Assembly\ThreeKingdoms\scripts\preferences.script.bak ( | |
MOVE /y "C:\Users\<user_account>\AppData\Roaming\The Creative Assembly\ThreeKingdoms\scripts\preferences.script.txt" "preferences.script.bak" | |
ECHO "File overwritten" | |
) ELSE ( | |
ECHO "File moved and original preferences.script.txt has been deleted." | |
) | |
goto :end | |
:no | |
color 0a | |
cls | |
ECHO You chose : %question%=No | |
ECHO You can run this again and rename the file if needed | |
goto :end | |
:end | |
ECHO Lastly we will be starting the game from here as well. | |
ECHO Hit any key to start Total War: Three Kingdoms Fitgirl 1.5.3 Repack | |
pause | |
START "Three_Kingdoms.exe" "C:\Users\Public\Desktop\Total War - Three Kingdoms.lnk" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I didnt have that issue. It looks like the
preferences.script
is saving aspreferences.script.txt
though. You would definitely need to fix that.I got this to work for my system and shared from that only. I dont really have any additional information that would be of any use. If the above suggestion doesnt work, then I would go through the script and make sure you haven't missed any spots in it that need required input. I would reinstall the game again to see if you generate your own
preferences.script
as well.