From 74cad65082a5f21e1aa753d53e103024996db25d Mon Sep 17 00:00:00 2001 From: NTCat Date: Wed, 5 Feb 2025 00:30:09 -0800 Subject: [PATCH] Initial commit --- .gitattributes | 2 ++ .gitignore | 6 ++++++ client/.packwizignore | 8 ++++++++ client/config/placeholder.txt | 0 client/mods/placeholder.txt | 0 client/refresh.bat | 5 +++++ newmods/placeholder.txt | 0 refresh.bat | 5 +++++ server/.packwizignore | 8 ++++++++ server/config/placeholder.txt | 0 server/mods/placeholder.txt | 0 server/refresh.bat | 5 +++++ setnewmods.bat | 12 ++++++++++++ 13 files changed, 51 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 client/.packwizignore create mode 100644 client/config/placeholder.txt create mode 100644 client/mods/placeholder.txt create mode 100644 client/refresh.bat create mode 100644 newmods/placeholder.txt create mode 100644 refresh.bat create mode 100644 server/.packwizignore create mode 100644 server/config/placeholder.txt create mode 100644 server/mods/placeholder.txt create mode 100644 server/refresh.bat create mode 100644 setnewmods.bat diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3ccea25 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Disable Git line ending conversion, to prevent packwiz index hashes changing when committing from Windows +* -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..73af17b --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ + +# Exclude exported CurseForge zip files + + +# Exclude exported Modrinth modpacks +*.mrpack \ No newline at end of file diff --git a/client/.packwizignore b/client/.packwizignore new file mode 100644 index 0000000..da317b3 --- /dev/null +++ b/client/.packwizignore @@ -0,0 +1,8 @@ +# .packwizignore follows the same format as .gitignore, and can be used to exclude unwanted files from pack exports +# See https://git-scm.com/docs/gitignore + +# Exclude README +*.zip +/config/placeholder.txt +/mods/placeholder.txt +/README.md \ No newline at end of file diff --git a/client/config/placeholder.txt b/client/config/placeholder.txt new file mode 100644 index 0000000..e69de29 diff --git a/client/mods/placeholder.txt b/client/mods/placeholder.txt new file mode 100644 index 0000000..e69de29 diff --git a/client/refresh.bat b/client/refresh.bat new file mode 100644 index 0000000..0a12fa3 --- /dev/null +++ b/client/refresh.bat @@ -0,0 +1,5 @@ +@Echo off +Pushd "%~dp0" +packwiz refresh +popd +exit \ No newline at end of file diff --git a/newmods/placeholder.txt b/newmods/placeholder.txt new file mode 100644 index 0000000..e69de29 diff --git a/refresh.bat b/refresh.bat new file mode 100644 index 0000000..418991a --- /dev/null +++ b/refresh.bat @@ -0,0 +1,5 @@ +@Echo OFF +set masterfolder=%cd% +start %cd%/client/refresh.bat +start %cd%/server/refresh.bat +exit \ No newline at end of file diff --git a/server/.packwizignore b/server/.packwizignore new file mode 100644 index 0000000..da317b3 --- /dev/null +++ b/server/.packwizignore @@ -0,0 +1,8 @@ +# .packwizignore follows the same format as .gitignore, and can be used to exclude unwanted files from pack exports +# See https://git-scm.com/docs/gitignore + +# Exclude README +*.zip +/config/placeholder.txt +/mods/placeholder.txt +/README.md \ No newline at end of file diff --git a/server/config/placeholder.txt b/server/config/placeholder.txt new file mode 100644 index 0000000..e69de29 diff --git a/server/mods/placeholder.txt b/server/mods/placeholder.txt new file mode 100644 index 0000000..e69de29 diff --git a/server/refresh.bat b/server/refresh.bat new file mode 100644 index 0000000..0a12fa3 --- /dev/null +++ b/server/refresh.bat @@ -0,0 +1,5 @@ +@Echo off +Pushd "%~dp0" +packwiz refresh +popd +exit \ No newline at end of file diff --git a/setnewmods.bat b/setnewmods.bat new file mode 100644 index 0000000..5d857dc --- /dev/null +++ b/setnewmods.bat @@ -0,0 +1,12 @@ +@Echo OFF +echo setting root.. +set masterfolder=%cd% +echo Copying to Client +xcopy /e /v /y "%cd%\newmods" "%cd%\client\mods" +echo Copying to Server +xcopy /e /v /y "%cd%\newmods" "%cd%\server\mods" +echo Deleting leftover mods +del "%cd%\newmods\*.*" /q +echo Starting refresh +start refresh.bat +exit \ No newline at end of file