Commit graph

196 commits

Author SHA1 Message Date
Daniel Ceregatti
b8b0a43df1 WIP on web UI:
Make selected items show as selected.
Break out XML file handling so the tree component could just handle elements and leave the XML parsing to the parent.
Sort mods by name, not id.
2023-11-03 16:13:14 -07:00
Daniel Ceregatti
788bac39a4 Add entrypoint.sh so we don't have to wait 10 seconds to down our stack.
Make scripts just run from each container's respective bin directory.
Upgrade to node 18.18.2 and nvm 0.39.5.
Remove unnecessary output.
2023-11-03 16:11:11 -07:00
Daniel Ceregatti
81b096c320 Update docs. 2023-10-24 11:03:24 -07:00
Daniel Ceregatti
e383c6cced Add cfgenvironment.xml support. WIP. 2023-10-18 17:39:20 -07:00
Daniel Ceregatti
e1a9f338b0 Fix typo. 2023-10-18 17:38:27 -07:00
Daniel Ceregatti
f87b26239f Make development happen first.
Go back to sleeping the old way.
2023-10-18 14:43:04 -07:00
Daniel Ceregatti
499d92e179 Start handling cfgenvironment. WIP.
Exec out to sleep so the container stops correctly.
2023-10-17 17:16:44 -07:00
Daniel Ceregatti
664b267da1 Add integration for Underground Bases mod. 2023-10-17 09:56:16 -07:00
Daniel Ceregatti
dd685a86fb Stop running sleep in a loop when blocking. Just sleep for a very long time. 2023-10-15 12:17:08 -07:00
Daniel Ceregatti
a5560962bc Fix issue where a fresh install's web UI returns an error because the mods directory does not exist. 2023-10-15 12:01:26 -07:00
Daniel Ceregatti
a3f062799c Add support for acitvating/deactivating multiple mods at once. 2023-10-15 11:25:38 -07:00
Daniel Ceregatti
b0596f5e11 Refactor mod that was using the old way of handling XML. 2023-10-15 11:12:40 -07:00
Daniel Ceregatti
10063f20de Add initial DayZ Rat mod integration. This begins work on adding support for mods that touch the cfgenvironment.xml file. 2023-10-15 11:09:04 -07:00
Daniel Ceregatti
ac0caeb45a Update docs to include development mode. 2023-10-14 14:18:20 -07:00
Daniel Ceregatti
a422694010 Prevent problems when we can't get metadata, usually because meta.cpp doesn't exist. Some mods don't seem to have one. 2023-10-12 21:55:41 -07:00
Daniel Ceregatti
4c09ef752c Switch from CMD to ENTRYPOINT, then use exec in both start.sh scripts, so process id 1 can be the process it needs to be, as this is what gets SIGTERM on docker compose down.
We now get a .bashrc by default, so switch the logic to detecting the custom PS1 before putting it in .bashrc.
Account for a directory that steamcmd expects.
2023-10-12 21:52:33 -07:00
Daniel Ceregatti
f153f3db18 Use the local user's user id in the container when building and running, otherwise bind mounts don't have the correct ownership.
Correct output from steamcmd to avoid red herrings by creating a directory it expects as well as providing a shared object it also expects.
Update docs.
2023-10-12 18:44:37 -07:00
Daniel Ceregatti
4d546241ad Add SpurglesBagZ integration. 2023-10-11 15:00:21 -07:00
Daniel Ceregatti
efac5eb7ff Add integration for ayZExpansionVehicles - mod id 2291785437 2023-10-05 11:38:11 -07:00
Daniel Ceregatti
9513fc4d97 Add support for custom integrations. The first is no food, which makes a new types.xml of all the food class items for use with CE, then sets nominal to 0 in all entries.
Have server logs go into a logs directory, with sub-directories in there with the date to contain that run's logs.
Fix XML handling output.
Update bogus DayZ version.
Add custom integration docs.
2023-09-28 15:39:13 -07:00
Daniel Ceregatti
371d6d2b38 Add support for OP Base Items mod. 2023-09-28 15:35:56 -07:00
Daniel Ceregatti
9b6b32c71b Updated docs. 2023-09-12 17:22:12 -07:00
Daniel Ceregatti
1ff326a63e Updated docs. 2023-09-12 17:19:05 -07:00
Daniel Ceregatti
6da2c62eea Set the content type header for XML files. 2023-09-12 15:13:18 -07:00
Daniel Ceregatti
87e5baf345 Add custom file integration README. 2023-09-12 15:09:14 -07:00
Daniel Ceregatti
07eb8ac7ff Add a config object to hold values like API hosts, instead of hard coding it to my local machine's name.
Make sure the file exists before trying to read it.
2023-09-11 17:26:16 -07:00
Daniel Ceregatti
4c3823d9bc Use a .env file to drive states of the stack, i.e. development or not.
Ignore the .env file.
2023-09-11 14:41:27 -07:00
Daniel Ceregatti
4b0efda369 Add integration for MMG - Mightys Military Gear and SNAFU Weapons. 2023-09-11 13:02:03 -07:00
Daniel Ceregatti
b1448d8860 Add cfgeventspawns.xml integration!
Add quirk to handle upstream XMLs not having the correct nodes.
Add initial map install based on the map in the config.
Add package to allow for XML merging in the server container.
Add an environment variable that prevents the server from starting, to test mod XML integration at server start.
Back up logs into dedicated directories based on the date when the server exits.
Improve logic for copying XML files into mpmissions.
Fix status output formatting.
Get map name from the config at script start in the server script.
Refactor XML env scripts so they don't have a hashbang.
Refactor one mod's integration with the new file naming convention.
2023-09-09 11:02:24 -07:00
Daniel Ceregatti
67cbb8319f Remove packages from the web container that were only needed in the server container. 2023-09-08 17:17:57 -07:00
Daniel Ceregatti
e6a381315f Fix lack of root node in XML when normalizing.
Refine output to only show relevant info when starting the server.
Filter mod integration by current map, even if other mpmissions directories should exist.
Remove previous cfgeconomy directories when starting, to prevent previous files from possibly existing.
Orchestrate the retrieval and normalization of XML files as 'dz x ID' now does both.
2023-09-08 12:13:29 -07:00
Daniel Ceregatti
974550da94 Handle bash logic correctly. 2023-09-08 11:51:01 -07:00
Daniel Ceregatti
287425cf9d Remove extra line. 2023-09-08 11:50:07 -07:00
Daniel Ceregatti
dd1129ee51 Remove FIX variable, as it's not necessary...yet. 2023-09-08 11:49:51 -07:00
Daniel Ceregatti
42c63dccc0 Add BaseBuildingPlus integration. This one publishes a types.xml in its mod directory, but this file lacks the root node. Adding hooks to handle specific fixes for files. 2023-09-08 11:20:11 -07:00
Daniel Ceregatti
29018b1053 Add CodeLock integration. 2023-09-07 19:53:47 -07:00
Daniel Ceregatti
a5a8464045 Use remote versions of the previously local files, now that we submitted a PR upstream and it was accepted and merged. 2023-09-07 17:17:04 -07:00
Daniel Ceregatti
51894c45ae Add Deer Isle Red Falcon Watercraft integration.
Add the ability to use local files for mod integrations.
2023-09-07 17:12:21 -07:00
Daniel Ceregatti
39f535feef There are no mpmissions in the server container when it starts for the first time. Ensure Chernarus is copied over as a default when this is detected, as the server is expected to start successfully. Presumes a default config where the map hasn't been changed.
Make development work by setting an environment variable.
Set the web container to restart instead of not, should the express server crash.
Copy XML files that are merged when the server  starts only when the mpmissions directory exists.
Refactor XML functions for better naming.
Handle display of lists when no mods are installed.
Add support for adding mpmissions for Deer Isle and mpmissions in general via mod integrations.
Add support for Red Falcon Watercraft XML files. WIP.
Add a deer isle DayZ bicycle spawn file.
2023-09-07 12:12:00 -07:00
Daniel Ceregatti
643cac2f2d There are no mpmissions in the server container when it starts for the first time. Ensure Chernarus is copied over as a default when this is detected, as the server is expected to start successfully. Presumes a default config where the map hasn't been changed.
Make development work by setting an environment variable.
Set the web container to restart instead of not, should the express server crash.
Copy XML files that are merged when the server  starts only when the mpmissions directory exists.
Refactor XML functions for better naming.
Handle display of lists when no mods are installed.
Add support for adding mpmissions for Deer Isle and mpmissions in general via mod integrations.
Add support for Red Falcon Watercraft XML files. WIP.
Add a deer isle DayZ bicycle spawn file.
2023-09-07 12:09:43 -07:00
Daniel Ceregatti
887374587d There are no mpmissions in the server container when it starts for the first time. Ensure Chernarus is copied over as a default when this is detected, as the server is expected to start successfully. Presumes a default config where the map hasn't been changed.
Make development work by setting an environment variable.
Set the web container to restart instead of not, should the express server crash.
Copy XML files that are merged when the server  starts only when the mpmissions directory exists.
Refactor XML functions for better naming.
Handle display of lists when no mods are installed.
Add support for adding mpmissions for Deer Isle and mpmissions in general via mod integrations.
Add support for Red Falcon Watercraft XML files. WIP.
Add a deer isle DayZ bicycle spawn file.
2023-09-07 12:08:12 -07:00
Daniel Ceregatti
5db38636c4 Install chernarus in mpmissions when it's not detected, to retain turnkey functionality.
Update docs.
2023-09-05 17:51:07 -07:00
Daniel Ceregatti
212da43d0a Add support for processing local XML files, as some times mods include them.
Add DayZ Bicycle XML integration.
Update docs.
2023-09-05 17:35:17 -07:00
Daniel Ceregatti
45631496f4 Update docs to account for the need to install mpmissions by hand. 2023-09-05 17:28:26 -07:00
Daniel Ceregatti
ad2f547845 Refactor function name so it's different between web and server containers.
Fix typo.
2023-08-31 17:05:57 -07:00
Daniel Ceregatti
d176eadea0 Add step that copies the server config file from the repo to the container. 2023-08-31 12:02:08 -07:00
Daniel Ceregatti
5deda87b31 Fix list formatting. 2023-08-30 23:45:13 -07:00
Daniel Ceregatti
65840a79c5 Refactor everything the relies on getting a mod by index in a listing. This had to account for context such needing to maintain mod ordering when starting the server.
Moved a lot of the functions out of scripts and into common and consolidated.
Fix some output formatting.
Make key copying only happen in a server.
2023-08-30 18:08:08 -07:00
Daniel Ceregatti
09b08a9978 Revert the server script back to starting the server instead of doing nothing. 2023-08-29 12:51:25 -07:00
Daniel Ceregatti
ed17cdc7a1 Remove shared objects added for the release branch. 2023-08-29 12:46:56 -07:00