74 lines
		
	
	
		
			6.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			74 lines
		
	
	
		
			6.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
| {
 | |
|     "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
 | |
|     "meta": {
 | |
|         "update_url": null,
 | |
|         "version": "PTDL_v2"
 | |
|     },
 | |
|     "exported_at": "2024-06-01T00:03:45+00:00",
 | |
|     "name": "Citadel: Forged with Fire",
 | |
|     "author": "eggs@goover.dev",
 | |
|     "description": "Citadel: Forged With Fire is a massive online sandbox RPG set in the mystical world of Ignus. Featuring magic, spellcasting, building, exploring and crafting as you fight to make a name for yourself and achieve notoriety across the land.",
 | |
|     "features": [
 | |
|         "steam_disk_space"
 | |
|     ],
 | |
|     "docker_images": {
 | |
|         "ghcr.io/parkervcp/games:source": "ghcr.io/parkervcp/games:source"
 | |
|     },
 | |
|     "file_denylist": [],
 | |
|     "startup": "./CitadelServer.sh",
 | |
|     "config": {
 | |
|         "files": "{\r\n    \"Config/Game.ini\": {\r\n        \"parser\": \"file\",\r\n        \"find\": {\r\n            \"ConnectionPort=\": \"ConnectionPort={{server.build.default.port}}\",\r\n            \"QueryPort=\": \"QueryPort={{server.build.env.QPORT}}\",\r\n            \"Password\": \"Password={{server.build.env.ADMIN_PASSWD}}\"\r\n        }\r\n    }\r\n}",
 | |
|         "logs": "{}",
 | |
|         "startup": "{\r\n    \"done\": \"Steam Server initialized and registered with UWorks\"\r\n}",
 | |
|         "stop": "^C"
 | |
|     },
 | |
|     "scripts": {
 | |
|         "installation": {
 | |
|             "container": "ghcr.io/parkervcp/installers:debian",
 | |
|             "entrypoint": "bash",
 | |
|             "script": "#!/bin/bash\r\n# steamcmd Base Installation Script\r\n#\r\n# Server Files: /mnt/server\r\n\r\n## just in case someone removed the defaults.\r\nif [ \"${STEAM_USER}\" == \"\" ]; then\r\n    echo -e \"steam user is not set.\\n\"\r\n    echo -e \"Using anonymous user.\\n\"\r\n    STEAM_USER=anonymous\r\n    STEAM_PASS=\"\"\r\n    STEAM_AUTH=\"\"\r\nelse\r\n    echo -e \"user set to ${STEAM_USER}\"\r\nfi\r\n\r\n## download and install steamcmd\r\ncd /tmp\r\nmkdir -p /mnt/server/steamcmd\r\ncurl -sSL -o steamcmd.tar.gz https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz\r\ntar -xzvf steamcmd.tar.gz -C /mnt/server/steamcmd\r\ncd /mnt/server/steamcmd\r\n\r\n# SteamCMD fails otherwise for some reason, even running as root.\r\n# This is changed at the end of the install process anyways.\r\nchown -R root:root /mnt\r\nexport HOME=/mnt/server\r\n\r\n## install game using steamcmd\r\n./steamcmd.sh +force_install_dir /mnt/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} +app_update ${SRCDS_APPID} ${EXTRA_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6\r\n\r\n## set up 32 bit libraries\r\nmkdir -p /mnt/server/.steam/sdk32\r\ncp -v linux32/steamclient.so ../.steam/sdk32/steamclient.so\r\n\r\n## set up 64 bit libraries\r\nmkdir -p /mnt/server/.steam/sdk64\r\ncp -v linux64/steamclient.so ../.steam/sdk64/steamclient.so\r\n\r\n##Copy steamclient.so to correct Dir\r\nmkdir -p $HOME/Citadel/Plugins/UWorks/Source/ThirdParty/Linux\r\nchmod -R a+w,a+x $HOME/Citadel/Plugins/UWorks/Source/ThirdParty/Linux\r\nif [[ ! -f $HOME/Citadel/Plugins/UWorks/Source/ThirdParty/Linux/steamclient.so ]]; then \r\n\tln -s ../../../../../../linux64/steamclient.so $HOME/Citadel/Plugins/UWorks/Source/ThirdParty/Linux/steamclient.so\r\n\r\nfi\r\n\r\n## Create Game.ini\r\nmkdir $HOME/Config\r\n\r\nif [[ -d $HOME/Citadel/Saved/Config/LinuxServer ]]; then \r\n\trm -rf $HOME/Citadel/Saved/Config/LinuxServer\r\nfi\r\n\r\nif [[ -d $HOME/Engine/Saved/Config/LinuxServer ]]; then \r\n\trm -rf $HOME/Engine/Saved/Config/LinuxServer\r\nfi\r\n\r\nmkdir -p $HOME/Citadel/Saved/Config\r\nmkdir -p $HOME/Engine/Saved/Config\r\n\r\nln -s ../../../Config $HOME/Citadel/Saved/Config/LinuxServer\r\nln -s ../../../Config $HOME/Engine/Saved/Config/LinuxServer\r\n\r\n#rm -fR $HOME/Citadel/Saved/Config/LinuxServer/Game.ini\r\ncat \u003c\u003cEOT \u003e $HOME/Config/Game.ini\r\n[UWorks]\r\nConnectionPort=7777\r\nQueryPort=27015\r\n\r\n[/Script/Citadel.SocialManager]\r\nPassword=changeme\r\n\r\n[/Script/Citadel.CitadelGameInstance]\r\nWorldCreationSettings=(ServerName=\"CitadelServer\",Password=\"YourServerPassword\",ServerType=PVP,PlayerLimit=20,bPrivate=true,ExperienceMultiplier=1.000000,InventoryCapacityMultipler=1.000000,KnowledgePointEarnedMultiplier=1.000000,CharacterPointEarnedMultiplier=1.000000,bUnlimitedResources=false,PlayerDamageMultiplier=1.000000,ArmorMultiplier=1.000000,BaseManaRegen=1.000000,bInventoryWeightRestrictions=true,MagicFindMultiplier=1.000000,CraftingMagicFindChanceMultiplier=1.000000,FlyingCostMultiplier=1.000000,FlyingSpeedMultiplier=1.000000,ResourceCollectionMultiplier=1.000000,StructureDamageMultiplier=1.000000,bRespectNoBuildZones=true,MagicStructureManaRegenerationMultiplier=1.000000,MagicStructureManaConsumptionMultiplier=0.000000,bFreeBuildMode=false,TimeOfDayLock=Auto,NPCPopulationMultiplier=1.000000,StructureDecayMultiplier=2.000000,bThronesDecay=true)\r\nEOT\r\n\r\nchmod +x $HOME/CitadelServer.sh\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\""
 | |
|         }
 | |
|     },
 | |
|     "variables": [
 | |
|         {
 | |
|             "name": "SRCDS_APPID",
 | |
|             "description": "ID",
 | |
|             "env_variable": "SRCDS_APPID",
 | |
|             "default_value": "489650",
 | |
|             "user_viewable": false,
 | |
|             "user_editable": false,
 | |
|             "rules": "required|numeric|in:489650",
 | |
|             "field_type": "text"
 | |
|         },
 | |
|         {
 | |
|             "name": "Query Port",
 | |
|             "description": "port",
 | |
|             "env_variable": "QPORT",
 | |
|             "default_value": "27015",
 | |
|             "user_viewable": true,
 | |
|             "user_editable": false,
 | |
|             "rules": "required|string|max:100",
 | |
|             "field_type": "text"
 | |
|         },
 | |
|         {
 | |
|             "name": "Admin Password",
 | |
|             "description": "",
 | |
|             "env_variable": "ADMIN_PASSWD",
 | |
|             "default_value": "",
 | |
|             "user_viewable": true,
 | |
|             "user_editable": true,
 | |
|             "rules": "required|string|max:100",
 | |
|             "field_type": "text"
 | |
|         },
 | |
|         {
 | |
|             "name": "Auto Update",
 | |
|             "description": "1 = on; 0 = off",
 | |
|             "env_variable": "AUTO_UPDATE",
 | |
|             "default_value": "1",
 | |
|             "user_viewable": true,
 | |
|             "user_editable": true,
 | |
|             "rules": "required|string|max:20",
 | |
|             "field_type": "text"
 | |
|         }
 | |
|     ]
 | |
| } |