-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Starter(English).bat
456 lines (431 loc) · 18.6 KB
/
Starter(English).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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
@echo off
chcp 936
title HoYoShade Starter
cls
net session >nul 2>&1
if %errorLevel% neq 0 (
powershell -Command "Start-Process '%~f0' -Verb RunAs"
exit /b
)
set files_to_check=("inject.exe" "ReShade64.dll" "InjectResource" "convert_encoding.bat" "InjectResource\INIBuild.exe" "InjectResource\msyhbd.ttc")
setlocal enabledelayedexpansion
cd /d "%~dp0"
set missing_file=0
for %%f in %files_to_check% do (
if not exist %%~f (
set missing_file=1
)
)
if %missing_file% equ 1 (
title HoYoShade Starter
cls
echo Welcome to use HoYoShade starter!
echo\
echo Mod Version:Next-Version
echo Developer:DuolaDStudio X 각蕨었AXBro X Ex_M
echo\
echo We have detected that the necessary files for (Open)HoYoShade framework injection are missing.
echo\
echo Possible reasons for this message include:
echo 1:You did not extract all files from the compressed package.
echo 2:You did not paste all files during an update operation.
echo 3:Your antivirus software/other programs mistakenly identified (Open)HoYoShade as a virus and deleted some files.
echo 4:You accidentally or intentionally renamed some critical files.
echo\
echo After pressing any key, the launcher will exit.
echo If you want to continue running (Open)HoYoShade, please visit our GitHub repository (https://github.com/DuolaD/HoYoShade) to re-download the latest compressed package from the Releases page and extract all files.
pause
exit
)
set "filepath=%~dp0Reshade.ini"
if exist "%filepath%" (
goto menu
) else (
cls
start "" /wait /b ".\InjectResource\INIBuild.exe"
start "" "convert_encoding.bat"
:FileCheck
cls
echo Welcome to use HoYoShade starter!
echo\
echo Mod Version:Next-Version
echo Developer:DuolaDStudio X 각蕨었AXBro X Ex_M
echo\
echo We have detected that this is your first time using this mod. Reshade.ini has been generated in the root directory of the mod.
echo You need to copy Reshade.ini to the root directory of the game process before you can use this mod.
echo\
echo How to find the root directory of the game process?
echo For HoYoPlay (HoYoVerse official new launcher):
echo Click the "More" icon next to the Start button - Game Settings to view the root directory of the game process.
echo Click 'Open Directory' to open the root directory of the game process using the file explorer.
echo\
echo For StarWard: Click the gear icon next to the Start button to view the root directory of the game process.
echo Click the game process root directory to open it using the file explorer.
echo\
echo Still not sure how to proceed?
echo You can check the user agreement and illustrated installation guide in the 'Tutorial' folder within the root directory of the mod.
echo\
pause
goto menu
)
:menu
title HoYoShade Starter
cls
echo Welcome to use HoYoShade starter!
echo\
echo Mod Version:Next-Version
echo Developer:DuolaDStudio X 각蕨었AXBro X Ex_M
echo\
echo Please note that you need to copy Reshade.ini to the root directory of the game process before you can use this mod.
echo\
echo This mod is only for color grading in-game scenes.
echo Please comply with the user agreement of this Mod and the relevant regulations of the game and its developers/publishers.
echo You can check the user agreement and illustrated installation guide in the Tutorial folder located in the mod root directory.
REM I still prefer to be a person who pays silently behind the scenes XD.
echo\
echo [1]Reset the ReShade.ini in the mod's root directory.
echo [2]Inject into Genshin Impact (CN/BiliBil Server)
echo [3]Inject into Genshin Impact (Global Server/Epic Games Store Version)
echo [4]Inject into Honkai Impact 3 (Universal)
echo [5]Inject into Honkai: Star Rail (Universal)
echo [6]Inject into Zenless Zone Zero (Universal)
echo [7]Switch to the test server client injection list.
echo [8]Other options
echo [9]Exit
echo\
set /p "content=Type the number here:"
if "%content%" == "1" (
goto ini_Reset
) else if "%content%" == "2" (
:YS_CheckProcess
tasklist /FI "IMAGENAME eq YuanShen.exe" | find /i "YuanShen.exe" >nul
if not errorlevel 1 (
taskkill /IM YuanShen.exe /F >nul 2>&1
goto YS_CheckProcess
)
echo The injection target you selected is:Genshin Impact (CN/BiliBil Server)
echo The injector has now started. Please ensure that ReShade.ini is copied to the root directory of the correct game process.
echo You can now use the launcher to start the game. The injector will be injected simultaneously.
echo If you selected the wrong injection target, simply close this window and restart the starter to choose again.
echo\
start "" /wait /b inject.exe YuanShen.exe
exit
) else if "%content%" == "3" (
:GI_CheckProcess
tasklist /FI "IMAGENAME eq GenshinImpact.exe" | find /i "GenshinImpact.exe" >nul
if not errorlevel 1 (
taskkill /IM GenshinImpact.exe /F >nul 2>&1
goto GI_CheckProcess
)
echo The injection target you selected is:Genshin Impact (Global Server/Epic Games Store Version)
echo The injector has now started. Please ensure that ReShade.ini is copied to the root directory of the correct game process.
echo You can now use the launcher to start the game. The injector will be injected simultaneously.
echo If you selected the wrong injection target, simply close this window and restart the starter to choose again.
echo\
start "" /wait /b inject.exe GenshinImpact.exe
exit
) else if "%content%" == "4" (
echo The injection target you selected is:Honkai Impact 3 (Universal)
echo The injector has now started. Please ensure that ReShade.ini is copied to the root directory of the correct game process.
echo You can now use the launcher to start the game. The injector will be injected simultaneously.
echo If you selected the wrong injection target, simply close this window and restart the starter to choose again.
echo\
start "" /wait /b inject.exe BH3.exe
exit
) else if "%content%" == "5" (
echo The injection target you selected is:Honkai: Star Rail (Universal)
echo The injector has now started. Please ensure that ReShade.ini is copied to the root directory of the correct game process.
echo You can now use the launcher to start the game. The injector will be injected simultaneously.
echo If you selected the wrong injection target, simply close this window and restart the starter to choose again.
echo\
start "" /wait /b inject.exe StarRail.exe
exit
) else if "%content%" == "6" (
echo The injection target you selected is:Zenless Zone Zero (Universal)
echo The injector has now started. Please ensure that ReShade.ini is copied to the root directory of the correct game process.
echo You can now use the launcher to start the game. The injector will be injected simultaneously.
echo If you selected the wrong injection target, simply close this window and restart the starter to choose again.
echo\
start "" /wait /b inject.exe ZenlessZoneZero.exe
exit
) else if "%content%" == "7" (
goto beta_client_inject_choice_menu
) else if "%content%" == "8" (
goto other
) else if "%content%" == "9" (
exit
) else (
echo\
echo Input error.
timeout /t 2
goto menu
)
exit
:other
title HoYoShade Starter
cls
echo Welcome to use HoYoShade starter!
echo\
echo Mod Version:Next-Version
echo Developer:DuolaDStudio X 각蕨었AXBro X Ex_M
echo\
echo If you need to check for version updates, you can visit our repository to see if there are any new released versions.
echo Note! Developer options are only for debugging/error checking purposes.
echo Unless developers explicitly ask you to do so, or you are very clear about what you are doing, please do not use it lightly!
echo\
echo Note: CYteam Download Station provides free installation packages for the international version of Genshin Impact/Honkai: Star Rail/HoYoLAB and private server resources in mainland China.
echo Thanks to CYteam for providing the download station service.
echo\
echo [1]Visit our repository on GitHub
echo [2]Visit the download station service provided by CYteam
echo [3]Sponsor this project
echo [4]Contact us
echo [5]About HoYoShade
echo [6]developer options
echo [7]Back to menu
echo [8]Exit
echo\
set /p "content=Type the number here:"
if "%content%" == "1" (
start "" "https://github.com/DuolaD/HoYoShade/"
goto other
) else if "%content%" == "2" (
start "" "https://d.cyteam.cn/"
goto other
) else if "%content%" == "3" (
start "" "https://github.com/DuolaD/HoYoShade/blob/V2.X.X-Stable/Readme.md#%E3%80%A2-Donate"
goto other
) else if "%content%" == "4" (
start "" "https://github.com/DuolaD/HoYoShade/blob/V2.X.X-Stable/Readme.md#%E3%80%A2-Contant-Me"
goto other
) else if "%content%" == "5" (
goto about_HoYoShade
) else if "%content%" == "6" (
goto develop
) else if "%content%" == "7" (
goto menu
) else if "%content%" == "8" (
exit
) else (
echo\
echo Input error.
timeout /t 2
goto other
)
goto other
:develop
title HoYoShade Starter (You have entered developer options!!!)
cls
echo Welcome to use HoYoShade starter!
echo\
echo Mod Version:Next-Version
echo Developer:DuolaDStudio X 각蕨었AXBro X Ex_M
echo\
echo Note! Developer options are only for debugging/error checking purposes.
echo Unless developers explicitly ask you to do so, or you are very clear about what you are doing, please do not use it lightly!
echo\
echo [1]Custom injection.
echo [2]Back to menu
echo [3]Back to Other options pages
echo [4]Exit
echo\
set /p "content=Type the number here:"
if "%content%" == "1" (
goto customize_inject
) else if "%content%" == "2" (
goto menu
) else if "%content%" == "3" (
goto other
) else if "%content%" == "4" (
exit
) else (
echo\
echo Input error.
timeout /t 2
goto develop
)
goto develop@echo off
:customize_inject
title HoYoShade Starter(You have entered the custom injection interface!!!)
cls
echo Welcome to use HoYoShade starter!
echo\
echo Mod Version:Next-Version
echo Developer:DuolaDStudio X 각蕨었AXBro X Ex_M
echo\
echo Note! This function is only for developers to test new games. This means there may be unknown risks/Bugs.
echo Unless developers explicitly ask you to do so, or you are very clear about what you are doing,
echo please do not inject Reshade into other games without authorization.
echo\
echo Usage: Simply enter the target program file name, without adding the '.exe' extension, and press Enter to confirm.
echo Wait for the injection window interface to pop up, then start the target program.
echo Enter '\exit' to return to the development interface.
echo\
set /p "content=Type here:"
if "%content%" == "\exit" (
goto develop
) else (
echo The injection target you selected is:%content%.exe
echo The injector has now started. Please ensure that ReShade.ini is copied to the root directory of the correct game process.
echo You can now use the launcher to start the game. The injector will be injected simultaneously.
echo If you selected the wrong injection target, simply close this window and restart the starter to choose again.
echo\
start "" /wait /b inject.exe %content%.exe
exit
)
:about_HoYoShade
title HoYoShade
cls
echo HoYoShade
echo HoYo it,Great it.
echo\
echo DuolaDStudio X 각蕨었AXBro x Ex_M
echo Joint contributions.
echo\
echo Mod Version:Next-Version
echo\
echo HoYoShade is based on the official ReShade plugins and the OpenHoYoShade framework for secondary development.
echo All files except for effect libraries/presets are open-sourced on GitHub under the BSL-3 open-source license.
echo Modify By DuolaDStudio Hong Kong Ltd,All rights reserved.
echo\
echo Please note: HoYoShade is a free open-source mod, ReShade is a free open-source plugin, and OpenHoYoShade is a free open-source framework.
echo All source code can be obtained on GitHub. If you have purchased (Open)HoYoShade without modifications/secondary development,
echo please request a refund immediately! The actions of the merchants are unrelated to all developers!
echo\
echo Developer list:
echo -DuolaDStudio Hong Kong Ltd.
echo ――뜨율DDuolaD[RE adaptation/major version update development/launcher/presets]
echo ――죵콜景LynetteNotFound[HoYoShade minor version update development/maintenance.]
echo Ex_M[Technical support/guidance/GUI develop]
echo 각蕨었AXBro[Promotion/technical support-oriented]
echo\
echo Thanks:
echo -CYTeam[HoYoShade partners/Microsoft enterprise storage plan provision/dynamic to static linking solutions]
echo -Cloudflare, Inc.[Domain hosting and management]
echo\
echo Thank you for having you! HoYoShade will be even better tomorrow!
pause
goto other
:ini_Reset
title HoYoShade Starter
cls
echo Welcome to use HoYoShade starter!
echo\
echo Mod Version:Next-Version
echo Developer:DuolaDStudio X 각蕨었AXBro X Ex_M
echo\
echo Please note: You only need to reset the ReShade.ini after moving the mod directory.
echo In general, you do not need to perform a reset operation.
echo\
echo After resetting, you need to recopy the ReShade.ini to the root directory of the game process.
echo Do you want to continue with the reset operation?
echo\
echo [1]Yes
echo [2]No(Back to menu)
echo\
set /p "content=Type the number here:"
if "%content%" == "1" (
start "" /wait ".\InjectResource\INIBuild.exe"
start "" "convert_encoding.bat"
:File_Reset
cls
echo Welcome to use HoYoShade starter!
echo\
echo Mod Version:Next-Version
echo Developer:DuolaDStudio X 각蕨었AXBro X Ex_M
echo\
echo Reset successful! The replaced ReShade.ini after the reset is now in the mod's root directory, replacing the old version of ReShade.ini.
echo You need to replace the ReShade.ini in the game process root directory with the reset ReShade.ini in order to use this mod.
echo\
echo How to find the root directory of the game process?
echo For HoYoPlay (HoYoVerse official new launcher):
echo Click the "More" icon next to the Start button - Game Settings to view the root directory of the game process.
echo Click 'Open Directory' to open the root directory of the game process using the file explorer.
echo\
echo For StarWard: Click the gear icon next to the Start button to view the root directory of the game process.
echo Click the game process root directory to open it using the file explorer.
echo\
echo Still not sure how to proceed?
echo You can check the user agreement and illustrated installation guide in the 'Tutorial' folder within the root directory of the mod.
echo\
pause
goto menu
)
:beta_client_inject_choice_menu
title HoYoShade Starter
cls
echo Welcome to use HoYoShade starter!
echo\
echo Mod Version:Next-Version
echo Developer:DuolaDStudio X 각蕨었AXBro X Ex_M
echo\
echo Please note that you need to copy Reshade.ini to the root directory of the game process before you can use this mod.
echo\
echo This mod is only for color grading in-game scenes.
echo Please comply with the user agreement of this Mod and the relevant regulations of the game and its developers/publishers.
echo You can check the user agreement and illustrated installation guide in the Tutorial folder located in the mod root directory.
echo When publishing videos using the mod to shoot footage, please note: "This video is rendered with support from GitHub@DuolaD/HoYoShade."
echo If you are unable to add the note due to special reasons,
echo please contact the developer through the contact information in the "Other Options" section for an explanation.
echo\
echo The following client injection options can only be used for injecting into the test server client.
echo\
echo If the test server client you want to use is not on this list, or if the injector does not respond to game launch, it means that:
echo 1:The test server client injection option you want to use is shared with the public client injection option. Please try using the public client injection list to attempt injection first.
echo 2:HoYoShade has not yet been adapted to the test server client you are currently using.
echo For adaptation, please visit our GitHub repository (https://github.com/DuolaD/HoYoShade) to submit issues.
echo\
echo [1]Reset the ReShade.ini in the mod's root directory.
echo [2]Inject into Genshin Impact (Part of Oversea CB Client Before Public Beta)
echo [3]Inject into Zenless Zone Zero (Universal CB Client Before Public Beta)
echo [4]Inject into Zenless Zone Zero (Universal CB Client After Public Beta)
echo [5]Switch to the public client injection list
echo [6]Other options
echo [7]Exit
echo\
set /p "content=Type the number here:"
if "%content%" == "1" (
goto ini_Reset
) else if "%content%" == "2" (
:GICBT_CheckProcess
tasklist /FI "IMAGENAME eq Genshin.exe" | find /i "Genshin.exe" >nul
if not errorlevel 1 (
taskkill /IM Genshin.exe /F >nul 2>&1
goto GICBT_CheckProcess
)
echo The injection target you selected is:Genshin Impact (Part of Oversea CB Client Before Public Beta)
echo The injector has now started. Please ensure that ReShade.ini is copied to the root directory of the correct game process.
echo You can now use the launcher to start the game. The injector will be injected simultaneously.
echo If you selected the wrong injection target, simply close this window and restart the starter to choose again.
echo\
start "" /wait /b inject.exe Genshin.exe
exit
) else if "%content%" == "3" (
echo The injection target you selected is:Zenless Zone Zero (Universal CB Client Before Public Beta)
echo The injector has now started. Please ensure that ReShade.ini is copied to the root directory of the correct game process.
echo You can now use the launcher to start the game. The injector will be injected simultaneously.
echo If you selected the wrong injection target, simply close this window and restart the starter to choose again.
echo\
start "" /wait /b inject.exe ZZZ.exe
exit
) else if "%content%" == "4" (
echo The injection target you selected is:Zenless Zone Zero (Universal CB Client After Public Beta)
echo The injector has now started. Please ensure that ReShade.ini is copied to the root directory of the correct game process.
echo You can now use the launcher to start the game. The injector will be injected simultaneously.
echo If you selected the wrong injection target, simply close this window and restart the starter to choose again.
echo\
start "" /wait /b inject.exe ZenlessZoneZeroBeta.exe
exit
) else if "%content%" == "5" (
goto menu
) else if "%content%" == "6" (
goto other
) else if "%content%" == "7" (
exit
) else (
echo\
echo Input error.
timeout /t 2
goto menu
)
exit