ð°ãããããã¡ã€ã«ã§ã²ãŒã ãïŒãã¡ã€ã«æ§é ã®æ©ã¿
æ¹åææ¡ãããã ãããã§ã
ããããã¡ã€ã«ã§RPG颚ã²ãŒã ãå¶äœäžãªã®ã§ããããã¡ã€ã«æ§é ãã©ã®ããã«ãã¹ãããããããŸããïŒïŒ
ã²ãŒã ã®éçºçµéšèªäœåããŠã§ãå³ãå·Šãããããèªå·±æµã§å¶äœããŠããããéåžžã«ä¹±éãªãã¡ã€ã«æ§é ãšãªã£ãŠããŸã£ãŠããŸãã
çŽ äººã®ãããã§ç³ãèš³ãªãã®ã§ããããããããããã°ã¢ããã€ã¹ãæ·»åãªã©é ãããã§ã
ãã€ãæžããŠããã³ãŒãèªäœãããã€ãå
¬éããã€ããã§ãããå
¬éçšã§ã¯ç¡ããšã¯ããä»åæ·»ä»ãããŠé ããŠããã³ãŒãå
容ã«ããæèŠé ããã°âŠïŒãšæã£ãŠããŸã
ã²ã©ãæ±ãã®ã¯ã容赊ãã ãã
ãã¡ã€ã«æ§é
//RPGGAME(root)
INDEX.bat(ãã®ãããããã»ãã®è²ããªããããcallããŠã)
//EnemyData
//Enemy_Status_Slime.bat
//ItemData
//ItemData.bat
//NewGame
//EnterYourName.bat
//Player_Status.bat
//ReadyForPrologue.bat
//TextFale.bat
//SaveData
(ããã«ã»ãŒãããŒã¿æ ŒçŽ)
//Sounds
//Sounds_Dev.bat
//Stories
//MAPS
//MAPDATA.txt
//Pologue.bat
//Systems
AutoSaveSys.bat
InventorySys.bat
LoadSaveData_Utility.bat
MainSaveSys.bat
SaveDataDelSys.bat
SelectSaveData.bat
...(å€ãããã®ã§çç¥)
INDEX.bat ã®äžèº«
@echo off
::@echo on
:BootSector
title INDEX boot standby...
chcp 65001
set AUTOSAVE=false
set MANUALSAVE=false
set NEWGAME=false
set CONTINUE=false
rem åæå(Initialize)ããããcdãããªããŠãããããã«ãã¹ãæ ŒçŽ
set CD_EnemyData=%CD%\EnemyData
set CD_ItemData=%CD%\ItemData
set CD_NewGame=%CD%\NewGame
set CD_SaveData=%CD%\SaveData
set CD_Sounds=%CD%\Sounds
set CD_Stories=%CD%\Stories
set CD_Stories_MAPS=%CD%\Stories\MAPS
set CD_Systems=%CD%\Systems
set CD_Systems_Display=%CD%\Systems\Display
rem èµ·åæã«ååã®ã»ãŒãããŒã¿ãäºåã«èªã¿èŸŒã
rem *ESDãã¡ã€ã«ã®T/Få€å®ã®ãã
if exist "%CD_SaveData%\ESD_1.txt" (
set ESD_1=true
)
if not exist "%CD_SaveData%\ESD_1.txt" (
set ESD_1=false
)
if exist "%CD_SaveData%\ESD_2.txt" (
set ESD_2=true
)
if not exist "%CD_SaveData%\ESD_2.txt" (
set ESD_2=false
)
if exist "%CD_SaveData%\ESD_3.txt" (
set ESD_3=true
)
if not exist "%CD_SaveData%\ESD_3.txt" (
set ESD_3=false
)
rem UI調æŽçšã®ç©ºçœå€æ°ãèªã¿èŸŒã¿(DisplayAdjustAir.bat)
call "%CD_Systems%\DisplayAdjustAir.bat"
rem ã»ãŒãããŒã¿éžæç»é¢ã®UIã«ããããå€æ°ã®åæå
call "%CD_Systems%\SelectSaveData_Initialize.bat"
rem ä»åŸã®ã²ãŒã é²è¡ã§äœ¿çšããããã¹ãã®èªã¿èŸŒã¿(TextFile.bat)
call "%CD_NewGame%\TextFile.bat"
echo.
echo "INDEX booting now..."
timeout /t 2 /nobreak > nul
:INDEX
title INDEX
rem é³æ¥œã®åç(ä»®)
start /min %CD_Sounds%\SoundsDev.bat
rem ã¡ã€ã³ã¡ãã¥ãŒç»é¢ã®ã©ã€ã³ããŒã¿ãããŒãããŠéå§
call "%CD_NewGame%\hashtag_moveline_linedata.bat"
call "%CD_NewGame%\hashtag_moveline_start.bat"
:MAINMENU
call "%CD_Systems%\MainMenu.bat"
if %errorlevel%==10 (goto :NEWGAME)
if %errorlevel%==11 (goto :CONTINUE)
if %errorlevel%==12 (goto :OPTION)
call "%CD_NewGame%\hashtag_moveline_end.bat"
:NEWGAME
set NEWGAME=true
call "%CD_Systems%\SelectSaveData.bat"
if %errorlevel%==41 (goto :MAINMENU)
if %errorlevel%==42 (goto :SaveData_1_NEWGAME)
if %errorlevel%==43 (goto :SaveData_2_NEWGAME)
if %errorlevel%==44 (goto :SaveData_3_NEWGAME)
if %errorlevel%==52 (goto :SaveData_1_NEWGAME_DEL)
if %errorlevel%==53 (goto :SaveData_2_NEWGAME_DEL)
if %errorlevel%==54 (goto :SaveData_3_NEWGAME_DEL)
:SaveData_1_NEWGAME_DEL
call "%CD_Systems%\SaveData_1_Deleter.bat"
goto :SaveData_1_NEWGAME
:SaveData_2_NEWGAME_DEL
call "%CD_Systems%\SaveData_2_Deleter.bat"
goto :SaveData_2_NEWGAME
:SaveData_3_NEWGAME_DEL
call "%CD_Systems%\SaveData_3_Deleter.bat"
goto :SaveData_3_NEWGAME
:SaveData_1_NEWGAME
set ESD_1=true
set ESD_2=false
set ESD_3=false
goto :EnterPlayerName
:SaveData_2_NEWGAME
set ESD_1=false
set ESD_2=true
set ESD_3=false
goto :EnterPlayerName
:SaveData_3_NEWGAME
set ESD_1=false
set ESD_2=false
set ESD_3=true
goto :EnterPlayerName
rem 以äžããã¹ããŒãªãŒéå§
rem ***************************************************************************************************************
rem ãã¬ã€ã€ãŒã®ååèã
:EnterPlayerName
for /F "tokens=2" %%i in ('tasklist /FI "WINDOWTITLE eq sounds playing now*" /NH') do (set PID=%%i)
taskkill /f /pid %PID% > nul
call "%CD_NewGame%\EntreYourName.bat"
:ReadyForPrologue
call "%CD_NewGame%\ReadyForPrologue.bat"
if %errorlevel%==18 (goto :Prologue)
IF %ERRORLEVEL%==666 (GOTO :CRITICAL_ERROR)
:Prologue
call "%CD_Stories%\Prologue.bat"
if %errorlevel%==100 (cls& goto :Prologue)& rem ãšã©ãŒã³ãŒã100äºæãã¬ãšã©ãŒ
if %errorlevel%==777 (goto :ReadyForPrologue)
if %errorlevel%==900 (goto :EOF)& rem 900ã¯ã»ãŒãããŠçµäºã®ã³ãŒã ä»ã¯EOFã ãã
rem äºæããªããšã©ãŒãçºçããŸãã
cls
echo. %ESC%[91mAn unexpected error occurred. [E-100:EOF]
echo. Terminate Systems.%ESC%[0m
echo %errorlevel%
call "%CD_Systems%\ErrorBeepSounds.bat"
pause > nul
goto :EOF
rem ***************************************************************************************************************
:CONTINUE
set CONTINUE=true
call "%CD_Systems%\SelectSaveData.bat"
if %errorlevel%==41 (goto :MAINMENU)
if %errorlevel%==42 (goto :SaveData_1_CONTINUE)
if %errorlevel%==43 (goto :SaveData_2_CONTINUE)
if %errorlevel%==44 (goto :SaveData_3_CONTINUE)
:SaveData_1_CONTINUE
set ESD_1=true
set ESD_2=false
set ESD_3=false
goto :LoadSaveData
:SaveData_2_CONTINUE
set ESD_1=false
set ESD_2=true
set ESD_3=false
goto :LoadSaveData
:SaveData_3_CONTINUE
set ESD_1=false
set ESD_2=false
set ESD_3=true
goto :LoadSaveData
:LoadSaveData
for /F "tokens=2" %%i in ('tasklist /FI "WINDOWTITLE eq sounds playing now*" /NH') do (set PID=%%i)
taskkill /f /pid %PID% > nul
call "%CD_Systems%\LoadSaveDataSystem_Utility.bat"
rem callå
ã§set goto=è¡ãããã©ãã«å
ããã£ãŠã
goto %GOTO%
rem ãã®ãžãã¯ãŸãããã©ãã
:OPTION
for /F "tokens=2" %%i in ('tasklist /FI "WINDOWTITLE eq sounds playing now*" /NH') do (set PID=%%i)
taskkill /f /pid %PID% > nul
cls
echo.+-------------------------------------------------++-------------------------------------------------+
echo.%P% %P%%P% %P%
echo.%P% (A) DELETE SAVE DATA %P%%P% (C) @ECHO ON %P%
echo.%P% %P%%P% %P%
echo.+-------------------------------------------------++-------------------------------------------------+
echo.+-------------------------------------------------++-------------------------------------------------+
echo.%P% %P%%P% %P%
echo.%P% (B) EXIT GAME %P%%P% (D) SET /P %P%
echo.%P% %P%%P% %P%
echo.+-------------------------------------------------++-------------------------------------------------+
choice /c ABCDQ
if %errorlevel%==1 (goto :DeleteAllSaveData)
if %errorlevel%==2 (goto :EOF)
if %errorlevel%==3 (@echo on & goto :INDEX)
if %errorlevel%==4 (goto :DEVCOMMAND)
if %errorlevel%==5 (goto :INDEX)
:DeleteAllSaveData
echo. éçºæ®µéçšç·æ¥åæ¢pause
echo. ç¶è¡ããŸããïŒ
pause > nul
rem ããã»ãŒãããŒã¿åæåãããã«ã€ã泚æïŒãã£ã³ã»ã«ã§ããããã«ããŠãŸãïŒ
call "%CD_Systems%\SaveDataDeleteSystem.bat"
if %errorlevel%==80 (goto :BootSector)
if %errorlevel%==90 (goto :INDEX)
:DEVCOMMAND
set /p command="command=>"
%command%
goto :DEVCOMMAND
::*******************************************************************************************************
:CRITICAL_ERROR
COLOR 1f
CLS
ECHO.
ECHO.
ECHO. Error code: 666 is a serious error in the main save system, your save data may be corrupted.
ECHO.
ECHO. A recovery file has been generated. The cause may be determined by analyzing the generated logs.
ECHO.
ECHO. Please contact the developer to attempt a backup.
ECHO.
ECHO.
ECHO.
ECHO. E-mail:s***********3@gmail.com
TIMEOUT /T 600
ECHO. PRESS ANY KEY TO EXIT.
PAUSE > NUL
EXIT
::*******************************************************************************************************
::EOF
ããå®ãããã°ããã£ãšããããã»ãããããããšãããªãã§ããã¯ããããŠããã®ïŒããªã©ãªã©ããã·ãã·ãšã³ã¡ã³ãããŠãã ãããšæ¬åœã«å©ãããŸã...!!