From 51894c45aead7c899996f971e01c5c6c3f9f6177 Mon Sep 17 00:00:00 2001 From: Daniel Ceregatti Date: Thu, 7 Sep 2023 17:12:21 -0700 Subject: [PATCH] Add Deer Isle Red Falcon Watercraft integration. Add the ability to use local files for mod integrations. --- files/bin/xml.sh | 6 +- files/mods/2906371600/cfgeventspawns.xml | 68 ++++++++ files/mods/2906371600/cfgspawnabletypes.xml | 184 ++++++++++++++++++++ files/mods/2906371600/events.xml | 29 +++ files/mods/2906371600/xml.env | 6 +- 5 files changed, 289 insertions(+), 4 deletions(-) create mode 100644 files/mods/2906371600/cfgeventspawns.xml create mode 100644 files/mods/2906371600/cfgspawnabletypes.xml create mode 100644 files/mods/2906371600/events.xml diff --git a/files/bin/xml.sh b/files/bin/xml.sh index 6f9e9bb..d625ddb 100755 --- a/files/bin/xml.sh +++ b/files/bin/xml.sh @@ -23,9 +23,13 @@ do then echo "${var} is a URL, downloading to ${OUT}" curl -so ${OUT} ${!var} + elif echo ${!var} | grep -qE "^local" + then + echo "${var} comes from mod integrations, copying to ${OUT}" + cp -v "${FILES}/mods/${ID}/${var,,}.xml" "${OUT}" elif echo ${!var} | grep -qE "^\./" then - echo "${var} is local, copying to ${OUT}" + echo "${var} comes from the mod as ${!var}, copying to ${OUT}" cp -v "${DIR}/${!var}" "${OUT}" fi if [ -f ${OUT} ] diff --git a/files/mods/2906371600/cfgeventspawns.xml b/files/mods/2906371600/cfgeventspawns.xml new file mode 100644 index 0000000..66c45bd --- /dev/null +++ b/files/mods/2906371600/cfgeventspawns.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/files/mods/2906371600/cfgspawnabletypes.xml b/files/mods/2906371600/cfgspawnabletypes.xml new file mode 100644 index 0000000..371aa73 --- /dev/null +++ b/files/mods/2906371600/cfgspawnabletypes.xml @@ -0,0 +1,184 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/files/mods/2906371600/events.xml b/files/mods/2906371600/events.xml new file mode 100644 index 0000000..c2ebb4c --- /dev/null +++ b/files/mods/2906371600/events.xml @@ -0,0 +1,29 @@ + + + + 15 + 10 + 15 + 300 + 3 + 500 + 500 + 200 + + fixed + mixed + 1 + + + + + + + + + + + + + + diff --git a/files/mods/2906371600/xml.env b/files/mods/2906371600/xml.env index ee755f8..f4a2f83 100644 --- a/files/mods/2906371600/xml.env +++ b/files/mods/2906371600/xml.env @@ -1,7 +1,7 @@ #!/usr/bin/env bash -#CFGSPAWNABLETYPES= -#CFGEVENTSPAWNS= -#EVENTS= +CFGSPAWNABLETYPES=local +CFGEVENTSPAWNS=local +EVENTS=local TYPES=https://raw.githubusercontent.com/RedFalconKen/RedFalconWatercraft/main/Config%20Files/Types.XML/RFWC_Types.xml