From 8ba3db4ce4cb72df32f0795cf362387dafaf84c1 Mon Sep 17 00:00:00 2001 From: s1lent Date: Tue, 2 Jan 2018 20:42:59 +0700 Subject: [PATCH] Update README.md Bump version --- README.md | 2 +- hitboxtracker/client/msvc/PostBuild.bat | 39 +++++++++++++++++++++++ hitboxtracker/launcher/msvc/PostBuild.bat | 39 +++++++++++++++++++++++ hitboxtracker/server/msvc/PostBuild.bat | 39 +++++++++++++++++++++++ hitboxtracker/server/src/meta_api.cpp | 2 +- 5 files changed, 119 insertions(+), 2 deletions(-) create mode 100644 hitboxtracker/client/msvc/PostBuild.bat create mode 100644 hitboxtracker/launcher/msvc/PostBuild.bat create mode 100644 hitboxtracker/server/msvc/PostBuild.bat diff --git a/README.md b/README.md index 7cb4dd4..3ab3858 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Dev-tool that demonstrates on client-side true position of the hitboxes calculated by server # Installation -* Install `hitboxtracker_mm.dll` on your HLDS as metamod plugin and put `delta.lst` to gamedir directory `cstrike/delta.lst` +* Install `hitboxtracker_mm.dll` on your HLDS as metamod plugin * Put `hitboxtracker.dll` and `cs.exe` to working directory of the game CS 1.6 client * Run `cs.exe` diff --git a/hitboxtracker/client/msvc/PostBuild.bat b/hitboxtracker/client/msvc/PostBuild.bat new file mode 100644 index 0000000..9f46d52 --- /dev/null +++ b/hitboxtracker/client/msvc/PostBuild.bat @@ -0,0 +1,39 @@ +@echo OFF +:: +:: Post-build auto-deploy script +:: Create and fill PublishPath.ini file with path to deployment folder +:: I.e. PublishPath.ini should contain one line with a folder path +:: Call it so: +:: IF EXIST "$(ProjectDir)PostBuild.bat" (CALL "$(ProjectDir)PostBuild.bat" "$(TargetDir)" "$(TargetName)" "$(TargetExt)" "$(ProjectDir)") +:: + +SET targetDir=%~1 +SET targetName=%~2 +SET targetExt=%~3 +SET projectDir=%~4 +SET destination= + +IF NOT EXIST "%projectDir%\PublishPath.ini" ( + ECHO No deployment path specified. Create PublishPath.ini near PostBuild.bat with paths on separate lines for auto deployment. + exit /B 0 +) + +FOR /f "tokens=* delims= usebackq eol=;" %%a IN ("%projectDir%\PublishPath.ini") DO ( + ECHO Deploying to: %%a + IF NOT "%%a" == "" ( + copy /Y "%targetDir%%targetName%%targetExt%" "%%a" + IF NOT ERRORLEVEL 1 ( + IF EXIST "%targetDir%%targetName%.pdb" ( + copy /Y "%targetDir%%targetName%.pdb" "%%a" + ) + ) ELSE ( + ECHO PostBuild.bat ^(27^) : warning : Can't copy '%targetName%%targetExt%' to deploy path '%%a' + ) + ) +) + +IF "%%a" == "" ( + ECHO No deployment path specified. +) + +exit /B 0 \ No newline at end of file diff --git a/hitboxtracker/launcher/msvc/PostBuild.bat b/hitboxtracker/launcher/msvc/PostBuild.bat new file mode 100644 index 0000000..9f46d52 --- /dev/null +++ b/hitboxtracker/launcher/msvc/PostBuild.bat @@ -0,0 +1,39 @@ +@echo OFF +:: +:: Post-build auto-deploy script +:: Create and fill PublishPath.ini file with path to deployment folder +:: I.e. PublishPath.ini should contain one line with a folder path +:: Call it so: +:: IF EXIST "$(ProjectDir)PostBuild.bat" (CALL "$(ProjectDir)PostBuild.bat" "$(TargetDir)" "$(TargetName)" "$(TargetExt)" "$(ProjectDir)") +:: + +SET targetDir=%~1 +SET targetName=%~2 +SET targetExt=%~3 +SET projectDir=%~4 +SET destination= + +IF NOT EXIST "%projectDir%\PublishPath.ini" ( + ECHO No deployment path specified. Create PublishPath.ini near PostBuild.bat with paths on separate lines for auto deployment. + exit /B 0 +) + +FOR /f "tokens=* delims= usebackq eol=;" %%a IN ("%projectDir%\PublishPath.ini") DO ( + ECHO Deploying to: %%a + IF NOT "%%a" == "" ( + copy /Y "%targetDir%%targetName%%targetExt%" "%%a" + IF NOT ERRORLEVEL 1 ( + IF EXIST "%targetDir%%targetName%.pdb" ( + copy /Y "%targetDir%%targetName%.pdb" "%%a" + ) + ) ELSE ( + ECHO PostBuild.bat ^(27^) : warning : Can't copy '%targetName%%targetExt%' to deploy path '%%a' + ) + ) +) + +IF "%%a" == "" ( + ECHO No deployment path specified. +) + +exit /B 0 \ No newline at end of file diff --git a/hitboxtracker/server/msvc/PostBuild.bat b/hitboxtracker/server/msvc/PostBuild.bat new file mode 100644 index 0000000..9f46d52 --- /dev/null +++ b/hitboxtracker/server/msvc/PostBuild.bat @@ -0,0 +1,39 @@ +@echo OFF +:: +:: Post-build auto-deploy script +:: Create and fill PublishPath.ini file with path to deployment folder +:: I.e. PublishPath.ini should contain one line with a folder path +:: Call it so: +:: IF EXIST "$(ProjectDir)PostBuild.bat" (CALL "$(ProjectDir)PostBuild.bat" "$(TargetDir)" "$(TargetName)" "$(TargetExt)" "$(ProjectDir)") +:: + +SET targetDir=%~1 +SET targetName=%~2 +SET targetExt=%~3 +SET projectDir=%~4 +SET destination= + +IF NOT EXIST "%projectDir%\PublishPath.ini" ( + ECHO No deployment path specified. Create PublishPath.ini near PostBuild.bat with paths on separate lines for auto deployment. + exit /B 0 +) + +FOR /f "tokens=* delims= usebackq eol=;" %%a IN ("%projectDir%\PublishPath.ini") DO ( + ECHO Deploying to: %%a + IF NOT "%%a" == "" ( + copy /Y "%targetDir%%targetName%%targetExt%" "%%a" + IF NOT ERRORLEVEL 1 ( + IF EXIST "%targetDir%%targetName%.pdb" ( + copy /Y "%targetDir%%targetName%.pdb" "%%a" + ) + ) ELSE ( + ECHO PostBuild.bat ^(27^) : warning : Can't copy '%targetName%%targetExt%' to deploy path '%%a' + ) + ) +) + +IF "%%a" == "" ( + ECHO No deployment path specified. +) + +exit /B 0 \ No newline at end of file diff --git a/hitboxtracker/server/src/meta_api.cpp b/hitboxtracker/server/src/meta_api.cpp index 093f135..238ea4e 100644 --- a/hitboxtracker/server/src/meta_api.cpp +++ b/hitboxtracker/server/src/meta_api.cpp @@ -41,7 +41,7 @@ plugin_info_t Plugin_info = { META_INTERFACE_VERSION, // ifvers "HitboxTracker", // name - "1.0", // version + "1.1", // version __DATE__, // date "s1lent", // author "https://github.com/s1lentq/hitboxtracker", // url