From 87e5baf345fb4103ff46a407ea6868f2f460bfe2 Mon Sep 17 00:00:00 2001 From: Daniel Ceregatti Date: Tue, 12 Sep 2023 15:09:14 -0700 Subject: [PATCH] Add custom file integration README. --- files/custom/README.md | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 files/custom/README.md diff --git a/files/custom/README.md b/files/custom/README.md new file mode 100644 index 0000000..a11a85a --- /dev/null +++ b/files/custom/README.md @@ -0,0 +1,48 @@ +# Custom Server Changes + +## No Food + +For a more survival-oriented experience, one can remove all food items from mpmissions: + +Go into the server container: + +```shell +docker compose exec server bash +``` + +Make a new directory in /profiles/custom and go into it: + +```shell +cd /profiles/custom +mkdir no-food +cd no-food +``` + +Generate the types.xml override file for your mpmissions type.xml: +```shell +xmlstarlet ed \ + -s / -t elem -n food \ + -m "/types/type[category[contains(@name, 'food')]]" "/food" \ + -d /types \ + -r /food -v /types \ + -u //nominal -v 0 \ + /serverfiles/mpmissions/dayzOffline.chernarusplus/db/types.xml \ + > types.xml +``` + +Explanation: +* Start xmlstarlet in edit mode +* Add a new XML node at the root named "food" +* Move all types nodes where