I only changed the two things you added into the batch file. I changed the console to upakconsole, and the localmap to upak.unr. Here is the new code:
Code: Select all
@echo off
if NOT exist .\system\UnrealTournament.exe (
echo BATch file should be placed in the UT99 root directory
pause > nul & goto :eof
)
if NOT exist .\system\RTNPconversion.ini (
if NOT exist .\system\UnrealTournament.ini (
echo BATch failed, can't find UnrealTournament.ini
pause > nul & goto :eof
)
FOR /f "delims=" %%i IN (.\system\UnrealTournament.ini) DO (
SET "line=%%i" & CALL :replace
)
echo RTNPconversion.ini created, press a key to start UT99
pause > nul
)
Start .\system\UnrealTournament.exe -ini=RTNPconversion.ini
:replace
if /I "%line:~0,1%"=="[" echo.>>.\system\RTNPconversion.ini
if /I "%line:~0,7%"=="Console" (
echo Console=UPak.UPakConsole>> .\system\RTNPconversion.ini
) else if /I "%line:~0,8%"=="LocalMap" (
echo LocalMap=Upack.unr>> .\system\RTNPconversion.ini
) else (
if "%line:~-2,1%" == "=" (
FOR %%f IN (0 1 2 3 4 5 6 7 8 9) DO (
if "%line:~-1,1%" == "%%f" GOTO :onedigit
)
)
echo %line%>> .\system\RTNPconversion.ini
)
goto :eof
:onedigit
echo %line% >> .\system\RTNPconversion.ini
goto :eof
You don't have to go through all the trouble of having the batch file ask for the default player model. The player can simply choose once they open the game. The important part is that they have some sort of Upak player, because the code is required for the game to work correctly. In fact, maybe this could be another window button to add to the RTNP screen? If it doesn't take too much coding, a player selection window that limited the player to Upak players only would be awesome. But not if it would take too long.
Anyway, here is what I can think of so far for changes made with the batch.
-A duplicate RTNPUser.ini file with the following changes:
"Class=UPak.UpakMaleOne" (sets the class to Upak Male one)
"skin=male1skins.kurgan" (sets the skin to Kurgan)
"Enter=InventoryActivate" (sets the enter key to activate inventory items)
"F6=quicksave" (sets F6 to quicksave)
"F7=quickload" (sets F7 to quickload)
The only other changes I need to RTNPConversion.ini are additional file paths. Can new lines be added? Basically, I need the following lines added under [Core.System]
Paths=../System/RTNPUE/*.u
Paths=../Maps/RTNPUE/*.unr
I'm going to move the important files to these two locations, to avoid conflicts with pre-existing RTNP content that people might have. Keep in mind that the original Paths need to stay. These new paths are in addition to the old ones. Is that possible?
I think that's it for now. If I think of anything else, I'll let you know.
Thanks integration!