-
Notifications
You must be signed in to change notification settings - Fork 0
/
ciglauncher.bat
106 lines (92 loc) · 5.18 KB
/
ciglauncher.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
@echo off
title CIG Launcher
prompt RSI-Launch-GUI :
color 0f
setlocal enabledelayedexpansion
goto menu
:menu
cls
echo **********_CIG_LAUNCH_MENU_*************
echo * 1. Launch Game *
echo * 2. Host/Connect to Multiplayer *
echo * 3. Exit Client *
echo ****************************************
set /p choice=Enter your choice:
if "%choice%"=="1" (
goto main_loop
) elseif "%choice%"=="2" (
set /p targetIP=Enter target IP address:
start "" "C:\Program Files\Roberts Space Industries\StarCitizen\HOTFIX\StarCitizen_Launcher.exe" %targetIP%
) elseif "%choice%"=="3" (
exit
) else (
echo Invalid choice. Please try again.
pause
goto menu
)
:main_loop
cls
echo.
echo **********************
echo *************************
echo *****************************
echo ********************************
echo **********************************
echo *************************************
echo ************************************
echo *********************************
echo ***********************************
echo **************************************
echo *******************************************
echo *********************************************
echo *** **************** *********
echo ** ************** *******
echo ** *********** *******
echo ** ************* *******
echo * *************** *********
echo ********************************************
echo ********** ** *************************
echo ********* **********************
echo ****** ** *******************
echo ***** * *****************
echo *************************
echo **********************
echo ****************
echo ** ** ** **
echo ** ** ** **
echo Initializing client Please wait
ping localhost -n 5 >nul
echo Running CIG Launcher
echo *******************************************
echo ** **
echo ** Initializing client **
echo ** **
echo *******************************************
ping localhost -n 10 >nul
echo Running CIG Launcher
start "C:\Program Files\Roberts Space Industries\RSI Launcher\RSI Launcher.exe" "C:\Program Files\Roberts Space Industries\StarCitizen\HOTFIX\Bin64\StarCitizen.exe" +map DFM_Orison -server -log -nosteam -connect 26.63.38.182:8000
start "" ""
:logo_loop
rem Check if both Star Citizen launcher and Star Citizen processes are still running during the 3-minute period
tasklist | find "StarCitizen_Launcher.exe" >nul
set "launcher_check=%errorlevel%"
tasklist | find "StarCitizen.exe" >nul
set "game_check=%errorlevel%"
if %launcher_check% equ 0 (
rem The launcher process is still running, check for the game process
if %game_check% equ 0 (
rem Both processes are still running, display the success message
echo Server Started Successfully [LAN] INITIALIZED
) else (
rem The game process has closed, display the interrupted message
echo Star Citizen game process closed. Check your Port Settings or Consult your ISP
timeout /nobreak /t 10
)
) else (
rem The launcher process has closed, display the interrupted message
echo Star Citizen Launcher process closed. Check your Port Settings or Consult your ISP
timeout /nobreak /t 10
goto main_loop
)
timeout /nobreak /t 60
goto logo_loop