dayzdockerserver/files/mods/3115714092/start.sh
Daniel Ceregatti 40f31d0b14 Implement start scripts to do all the extra stuff, like remove nodes from XML files.
Add WinterChernarusV2 mod's init changes.
2023-12-22 10:04:25 -08:00

9 lines
342 B
Bash

#!/usr/bin/env bash
# This is run in the directory with the target files
# Remove static trains
xmlstarlet ed -L -d '//eventposdef/event[@name="StaticTrain"]' cfgeventspawns.xml
# Remove spawn locations of former trains to prevent floating loot on tracks
xmlstarlet ed -L -d '//map/group[starts-with(@name,"Land_Train_")]' mapgrouppos.xml