Add the default-paks-test repo.
diff --git a/README.md b/README.md
index e2e32fe..e347d1a 100644
--- a/README.md
+++ b/README.md
@@ -3,9 +3,24 @@ GrangerHub's STELLAR PREY™ game is a first person strategy shooter that chroni
This is the main repo for STELLAR PREY™ game and can be used to build and package releases, used as a development environment, as well as for the setup/operation of the client and/or the dedicated/master/auto-update servers. All related code, scripts, and assets can be found through submodules in this repo.
-To initialize this repo and its submodules, run the init.sh script from a terminal:
+To setup this repo, execute the following commands from the root of this repo in order:
```
-./init.sh
+./sp-tools.sh default_config
```
+Set the values in the `config.sh` accordingly. Then continue with the following commands:
+
+```
+./sp-tools.sh init
+./sp-tools.sh install_default_paks
+./sp-tools.sh configure_cmake both
+./sp-tools.sh build both
+```
+
+For more details on how to manage and use this repo, check:
+
+```
+./sp-tools.sh help
+```
+
GrangerHub's STELLAR PREY™ game is originally based on darklegion development's Tremulous game. GrangerHub's STELLAR PREY™ game is built on TheDushan's OpenWolf Engine.
diff --git a/default-paks-test b/default-paks-test
new file mode 160000
index 0000000..322924f
--- /dev/null
+++ b/default-paks-test
@@ -0,0 +1 @@
+Subproject commit 322924f5b7b76a8f160910d5f3b9756aca364fd0
diff --git a/sp-tools.sh b/sp-tools.sh
index 750908f..a6bfa65 100755
--- a/sp-tools.sh
+++ b/sp-tools.sh
@@ -80,7 +80,7 @@ Set_Config_To_Defaults() {
printf "LOGDAYS=90\n\n" >> $SCRIPTPATH/config.sh
printf "#Build type options: Debug, Release, RelWithDebInfo, MinSizeRel\n" >> $SCRIPTPATH/config.sh
- printf "CMAKE_BUILD_TYPE=\"Release\"\n\n" >> $SCRIPTPATH/config.sh
+ printf "CMAKE_BUILD_TYPE=\"Debug\"\n\n" >> $SCRIPTPATH/config.sh
printf "BUILD_CLIENT=\"ON\"\n" >> $SCRIPTPATH/config.sh
printf "BUILD_SERVER=\"ON\"\n" >> $SCRIPTPATH/config.sh
@@ -531,7 +531,7 @@ Git_Subcommand() {
;;
default_paks)
- cd $SCRIPTPATH/default_paks
+ cd $SCRIPTPATH/default-paks-test
git ${@:2}
cd $CURRENTPATH
;;
@@ -1238,6 +1238,13 @@ Package_Assets_Subcommand() {
return 0
}
+Install_Default_Paks() {
+ mkdir -p $BASEPATH
+ mkdir -p $BASEPATH/main
+ rsync -zarvm --include="*/" --include="*.pk3" --exclude="*" "$SCRIPTPATH/default-paks-test/" "$BASEPATH/main/"
+ return 0
+}
+
if [ $# -eq 0 ]; then
List_Subcommands
exit 0
@@ -1303,6 +1310,8 @@ case $1 in
;;
install_default_paks)
+ Install_Default_Paks
+ exit 0
;;
sync)
GitHub
sha: e8108ece