-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.bat
More file actions
149 lines (127 loc) 路 5.27 KB
/
Copy pathdeploy.bat
File metadata and controls
149 lines (127 loc) 路 5.27 KB
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
@echo off
REM =============================================================================
REM ReFix Deploy Script v1.1.0
REM =============================================================================
REM Automated deployment of open-source binaries to game executable directory.
REM Creates safe backups (*_o.dll) of existing game DLLs and initializes ReFix.log.
REM Supports RedpointEOS custom plugin layout.
REM =============================================================================
setlocal enabledelayedexpansion
set "TARGET_DIR=%~1"
if "%TARGET_DIR%"=="" (
if exist "D:\Games\MECCHA CHAMELEON" (
set "TARGET_DIR=D:\Games\MECCHA CHAMELEON"
) else (
set "TARGET_DIR=C:\Users\Valen\Desktop\STEAM_CRACKING\DepotDownloader\depots\4704691\24176442"
)
)
set "DEPOT=%TARGET_DIR%"
set "GAME_BIN=%DEPOT%\Chameleon\Binaries\Win64"
if not exist "%GAME_BIN%" set "GAME_BIN=%DEPOT%"
set "STEAM_DIR=%DEPOT%\Engine\Binaries\ThirdParty\Steamworks\Steamv157\Win64"
if not exist "%STEAM_DIR%" set "STEAM_DIR=%GAME_BIN%"
set "EOS_DIR=%GAME_BIN%\RedpointEOS"
set "BUILD_DIR=%~dp0build"
echo.
echo ====================================
echo ReFix Deployment Script v1.1.0
echo ====================================
echo Target: %DEPOT%
echo ====================================
echo.
REM --- Verify build outputs exist ---
if not exist "%BUILD_DIR%\winmm.dll" (
echo [!] ERROR: winmm.dll not found in build\. Run build.bat first.
exit /b 1
)
if not exist "%BUILD_DIR%\steam_api64.dll" (
echo [!] ERROR: steam_api64.dll not found in build\. Run build.bat first.
exit /b 1
)
if not exist "%BUILD_DIR%\EOSSDK-Win64-Shipping.dll" (
echo [!] ERROR: EOSSDK-Win64-Shipping.dll not found in build\. Run build.bat first.
exit /b 1
)
echo [OK] All build artifacts verified in build\.
echo.
echo --- Step 1/5: Deploy winmm.dll (Loader + ImGui Server Browser Overlay) ---
echo.
if exist "%GAME_BIN%\winmm.dll" if not exist "%GAME_BIN%\winmm_o.dll" (
echo [*] Creating safe backup: winmm_o.dll...
copy /Y "%GAME_BIN%\winmm.dll" "%GAME_BIN%\winmm_o.dll" >nul
)
copy /Y "%BUILD_DIR%\winmm.dll" "%GAME_BIN%\winmm.dll" >nul
echo [OK] Deployed winmm.dll to game directory
echo.
echo --- Step 2/5: Deploy Steam API Proxy (Metadata Tagging: game_filter=mechachameleon) ---
echo.
if not exist "%STEAM_DIR%\steam_api64_valve.dll" (
if exist "%STEAM_DIR%\steam_api64.dll" (
echo [*] Creating safe backup: steam_api64_valve.dll in Steamworks folder...
rename "%STEAM_DIR%\steam_api64.dll" "steam_api64_valve.dll"
)
) else (
echo [*] steam_api64_valve.dll already exists.
)
if exist "%STEAM_DIR%\steam_api64.dll" if not exist "%STEAM_DIR%\steam_api64_o.dll" (
copy /Y "%STEAM_DIR%\steam_api64.dll" "%STEAM_DIR%\steam_api64_o.dll" >nul
)
copy /Y "%BUILD_DIR%\steam_api64.dll" "%STEAM_DIR%\steam_api64.dll" >nul
if exist "%GAME_BIN%" (
if exist "%GAME_BIN%\steam_api64.dll" if not exist "%GAME_BIN%\steam_api64_o.dll" (
copy /Y "%GAME_BIN%\steam_api64.dll" "%GAME_BIN%\steam_api64_o.dll" >nul
)
copy /Y "%BUILD_DIR%\steam_api64.dll" "%GAME_BIN%\steam_api64.dll" >nul
)
echo [OK] Deployed steam_api64.dll proxy
echo 480> "%STEAM_DIR%\steam_appid.txt"
echo 480> "%GAME_BIN%\steam_appid.txt"
echo [OK] Created steam_appid.txt (AppID 480 - Spacewar)
echo.
echo --- Step 3/5: Deploy EOS SDK Proxy ^& RedpointEOS Integration ---
echo.
if not exist "%EOS_DIR%" mkdir "%EOS_DIR%"
if not exist "%EOS_DIR%\EOSSDK_original.dll" (
if exist "%EOS_DIR%\EOSSDK-Win64-Shipping.dll" (
echo [*] Creating safe backup: EOSSDK_original.dll...
rename "%EOS_DIR%\EOSSDK-Win64-Shipping.dll" "EOSSDK_original.dll"
)
) else (
echo [*] EOSSDK_original.dll already exists.
)
copy /Y "%BUILD_DIR%\EOSSDK-Win64-Shipping.dll" "%EOS_DIR%\EOSSDK-Win64-Shipping.dll" >nul
copy /Y "%BUILD_DIR%\RedboneEOS.dll" "%EOS_DIR%\RedboneEOS.dll" >nul
if exist "%GAME_BIN%\EOSSDK-Win64-Shipping.dll" (
if not exist "%GAME_BIN%\EOSSDK_original.dll" copy /Y "%GAME_BIN%\EOSSDK-Win64-Shipping.dll" "%GAME_BIN%\EOSSDK_original.dll" >nul
copy /Y "%BUILD_DIR%\EOSSDK-Win64-Shipping.dll" "%GAME_BIN%\EOSSDK-Win64-Shipping.dll" >nul
)
echo [OK] Deployed EOSSDK-Win64-Shipping.dll and RedboneEOS.dll proxies
echo.
echo --- Step 4/5: Deploy Configuration ^& Logfile ---
echo.
copy /Y "%~dp0ReFix.ini" "%GAME_BIN%\ReFix.ini" >nul
echo [OK] Copied ReFix.ini configuration
echo [ReFix System Audit Log Started] > "%GAME_BIN%\ReFix.log"
echo [OK] Initialized ReFix.log audit log
echo.
echo --- Step 5/5: Copy Steam Interfaces ---
echo.
if not exist "%STEAM_DIR%\steam_settings" mkdir "%STEAM_DIR%\steam_settings"
set "OF_STEAM=D:\MECCHA.CHAMELEON.v2.3.1\Engine\Binaries\ThirdParty\Steamworks\Steamv157\Win64\steam_settings"
if exist "%OF_STEAM%\steam_interfaces.txt" (
copy /Y "%OF_STEAM%\steam_interfaces.txt" "%STEAM_DIR%\steam_settings\steam_interfaces.txt" >nul
echo [OK] Copied steam_interfaces.txt
) else (
echo [WARN] steam_interfaces.txt not found, using defaults.
)
echo.
echo ====================================
echo DEPLOYMENT COMPLETE
echo ====================================
echo.
echo Game Executable:
echo %GAME_BIN%\PenguinHotel-Win64-Shipping.exe
echo.
echo Audit Log: %GAME_BIN%\ReFix.log
echo Hotkeys: F1 or Insert (Toggle Source-style ImGui Server Browser)
echo.