Skip to content

Commit 6e7e8d8

Browse files
authored
Abiotic Factor: add UE4SS option (#1821)
1 parent a16daf8 commit 6e7e8d8

4 files changed

Lines changed: 130 additions & 1 deletion

File tree

abiotic-factor.kvp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Meta.Prerequisites=[]
2121
Meta.ExtraContainerPackages=[]
2222
Meta.ConfigReleaseState=NotSpecified
2323
Meta.NoCommercialUsage=False
24-
Meta.ConfigVersion=8
24+
Meta.ConfigVersion=9
2525
Meta.ReleaseNotes=
2626
Meta.BreakingReleaseNotes=
2727
Meta.AppConfigId=2cd58de5-88a4-49f8-a71a-b09d08d1fd5e

abiotic-factorconfig.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
11
[
2+
{
3+
"DisplayName": "Disable UE4SS Console",
4+
"Category": "Abiotic Factor:stadia_controller",
5+
"Subcategory": "Server:dns:1",
6+
"Description": "",
7+
"Keywords": "",
8+
"FieldName": "Debug.ConsoleEnabled",
9+
"InputType": "number",
10+
"Hidden": true,
11+
"ParamFieldName": "Debug.ConsoleEnabled",
12+
"DefaultValue": "0",
13+
"EnumValues": {}
14+
},
15+
{
16+
"DisplayName": "Disable UE4SS GUI Console",
17+
"Category": "Abiotic Factor:stadia_controller",
18+
"Subcategory": "Server:dns:1",
19+
"Description": "",
20+
"Keywords": "",
21+
"FieldName": "GuiConsoleEnabled",
22+
"InputType": "number",
23+
"Hidden": true,
24+
"ParamFieldName": "Debug.GuiConsoleEnabled",
25+
"DefaultValue": "0",
26+
"EnumValues": {}
27+
},
228
{
329
"DisplayName": "Server Name",
430
"Category": "Abiotic Factor:stadia_controller",
@@ -167,6 +193,21 @@
167193
"True": "-UseLocalIPs "
168194
}
169195
},
196+
{
197+
"DisplayName": "Enable UE4SS UObject Listeners",
198+
"Category": "Abiotic Factor:stadia_controller",
199+
"Subcategory": "Server:dns:1",
200+
"Description": "If set, UObject listeners will be created in GUObjectArray to create a fast cache for use instead of iterating GUObjectArray. Recommended to keep disabled for UE4SS mods to avoid crashes",
201+
"Keywords": "ue4ss,uobject,listeners,bUseUObjectArrayCache",
202+
"FieldName": "bUseUObjectArrayCache",
203+
"InputType": "checkbox",
204+
"ParamFieldName": "General.bUseUObjectArrayCache",
205+
"DefaultValue": "false",
206+
"EnumValues": {
207+
"False": "false",
208+
"True": "true"
209+
}
210+
},
170211
{
171212
"DisplayName": "Additional Command Line Arguments",
172213
"Category": "Abiotic Factor:stadia_controller",
@@ -885,5 +926,21 @@
885926
"3": "High",
886927
"4": "Precise"
887928
}
929+
},
930+
{
931+
"DisplayName": "Install UE Scripting System",
932+
"Category": "Updates",
933+
"Subcategory": "Runtime Configuration:build:3",
934+
"Description": "Sets the action to take when the server is updated. If the installation option is selected, the latest build of the [igromanru experimental Unreal Engine 4/5 Scripting System](https://github.com/igromanru/AF-UE4SS) will be installed, allowing the server to be modded",
935+
"Keywords": "install,ue4ss,unreal,engine,scripting,system,igromanru,modding",
936+
"FieldName": "InstallUE4SS",
937+
"InputType": "enum",
938+
"ParamFieldName": "InstallUE4SS",
939+
"DefaultValue": "",
940+
"EnumValues": {
941+
"": "Do nothing (default)",
942+
"false": "Remove UE4SS files",
943+
"true": "Install latest igromanru build"
944+
}
888945
}
889946
]

abiotic-factormetaconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,12 @@
66
"ConfigType": "ini",
77
"ConfigFormat": "{0}={1}",
88
"ConfigFormatRegex": "^(?<key>.+?)\\s*=\\s*(?<value>.*?)$"
9+
},
10+
{
11+
"ConfigFile": "AbioticFactor/Binaries/Win64/ue4ss/UE4SS-settings.ini",
12+
"ConfigType": "ini",
13+
"AutoMap": true,
14+
"ConfigFormat": "{0} = {1}",
15+
"ConfigFormatRegex": "^(?<key>.+?)\\s*=\\s*(?<value>.*?)$"
916
}
1017
]

abiotic-factorupdates.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
[
2+
{
3+
"UpdateStageName": "Remove UE4SS",
4+
"UpdateSourcePlatform": "Windows",
5+
"UpdateSource": "Executable",
6+
"UpdateSourceData": "powershell.exe",
7+
"UpdateSourceArgs": "-NoProfile -Command \"Set-Location 'abiotic-factor/2857200/AbioticFactor/Binaries/Win64'; Remove-Item 'dwmapi.dll','version.dll','ue4ss' -Recurse -Force -ErrorAction SilentlyContinue *> $null\"",
8+
"UpdateSourceConditionSetting": "InstallUE4SS",
9+
"UpdateSourceConditionValue": "false",
10+
"SkipOnFailure": true
11+
},
12+
{
13+
"UpdateStageName": "Remove UE4SS",
14+
"UpdateSourcePlatform": "Linux",
15+
"UpdateSource": "Executable",
16+
"UpdateSourceData": "/bin/bash",
17+
"UpdateSourceArgs": "-c \"cd ./abiotic-factor/2857200/AbioticFactor/Binaries/Win64 && rm -rf dwmapi.dll version.dll ue4ss >/dev/null 2>&1\"",
18+
"UpdateSourceConditionSetting": "InstallUE4SS",
19+
"UpdateSourceConditionValue": "false",
20+
"SkipOnFailure": true
21+
},
222
{
323
"UpdateStageName": "Abiotic Factor Download",
424
"UpdateSourcePlatform": "All",
@@ -32,5 +52,50 @@
3252
"UpdateSourceData": "/bin/bash",
3353
"UpdateSourceArgs": "-c \"rm -rf \\\"{{$FullRootDir}}.wine\\\" >/dev/null 2>&1; WINEPREFIX=\\\"{{$FullRootDir}}.wine\\\" WINEARCH=win64 WINEDEBUG=-all XDG_RUNTIME_DIR=/tmp /usr/bin/wineboot --init\"",
3454
"SkipOnFailure": false
55+
},
56+
{
57+
"UpdateStageName": "UE4SS Download",
58+
"UpdateSourcePlatform": "All",
59+
"UpdateSource": "FetchURLFromJQ",
60+
"UpdateSourceData": "https://api.github.com/repos/igromanru/AF-UE4SS/releases/latest",
61+
"UpdateSourceArgs": "$.assets.[1].browser_download_url",
62+
"UpdateSourceTarget": "{{$FullBaseDir}}AbioticFactor/Binaries/Win64",
63+
"UnzipUpdateSource": true,
64+
"OverwriteExistingFiles": true,
65+
"DeleteAfterExtract": true,
66+
"UpdateSourceConditionSetting": "InstallUE4SS",
67+
"UpdateSourceConditionValue": "true",
68+
"SkipOnFailure": false
69+
},
70+
{
71+
"UpdateStageName": "UE4SS version.dll Download",
72+
"UpdateSourcePlatform": "All",
73+
"UpdateSource": "FetchURL",
74+
"UpdateSourceData": "https://raw.githubusercontent.com/igromanru/AF-UE4SS/refs/heads/master/version.dll",
75+
"UpdateSourceTarget": "{{$FullBaseDir}}AbioticFactor/Binaries/Win64",
76+
"OverwriteExistingFiles": true,
77+
"UpdateSourceConditionSetting": "InstallUE4SS",
78+
"UpdateSourceConditionValue": "true",
79+
"SkipOnFailure": false
80+
},
81+
{
82+
"UpdateStageName": "Remove UE4SS dwmapi.dll",
83+
"UpdateSourcePlatform": "Windows",
84+
"UpdateSource": "Executable",
85+
"UpdateSourceData": "powershell.exe",
86+
"UpdateSourceArgs": "-NoProfile -Command \"Set-Location 'abiotic-factor/2857200/AbioticFactor/Binaries/Win64'; Remove-Item 'dwmapi.dll' -Force -ErrorAction SilentlyContinue *> $null\"",
87+
"UpdateSourceConditionSetting": "InstallUE4SS",
88+
"UpdateSourceConditionValue": "true",
89+
"SkipOnFailure": false
90+
},
91+
{
92+
"UpdateStageName": "Remove UE4SS dwmapi.dll",
93+
"UpdateSourcePlatform": "Linux",
94+
"UpdateSource": "Executable",
95+
"UpdateSourceData": "/bin/bash",
96+
"UpdateSourceArgs": "-c \"cd ./abiotic-factor/2857200/AbioticFactor/Binaries/Win64 && rm -f dwmapi.dll >/dev/null 2>&1\"",
97+
"UpdateSourceConditionSetting": "InstallUE4SS",
98+
"UpdateSourceConditionValue": "true",
99+
"SkipOnFailure": false
35100
}
36101
]

0 commit comments

Comments
 (0)