[GH-ISSUE #3632] [FEATURE] LGSM Compress UE maps improvements #2419

Closed
opened 2026-02-27 03:02:50 +03:00 by kerem · 0 comments
Owner

Originally created by @L34T on GitHub (Oct 24, 2021).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3632

User Story

Not all Unreal Engine games use .ut2 map format
Hardcoded in
github.com/GameServerManagers/LinuxGSM@2caea172a3/lgsm/functions/compress_unreal2_maps.sh (L28) github.com/GameServerManagers/LinuxGSM@2caea172a3/lgsm/functions/compress_unreal2_maps.sh (L33)

Expected fix

a) use Server config(ini) [URL] MapExt variable instead of ut2.
b) use LGSM game presets. config-lgsm/{server}/_default.cfg defaultmap="{map}.{ext}" if dot found. With fallback to ut2. Need testing to prevent possible ext errors, but anyway it must fix more bugged behavour than can create.
c) remove .ut2(it is Maps folder so expecting only maps inside). Possible conflict with Not expected fix.

Why it need to be fixed(Expected fix)

  1. It is LGSM code(affects lgsm servers only).
  2. Now it have unexpected behavior on kfserver and roserver(.rom). But UE games have lots of other MapExt that may have influence on other server implementations.
  3. Module DO NOT FILTER input files(map.ext.uz2.uz2.uz2...) Right now on almost default kfserver I've got compressed maps ~0.5GB. If do not remove them manually we now have geometric progression for each compress maps run. After 10 runs we will got 500GB+. So it not even "Automated"-ready.

Not expected fix

compressedmapsdir="${rootdir}/Maps-Compressed" is fastdl analogue.
I expecting wontfix(so I do not create different issue for that "Not expected fix"), but if anyone want I must write it to prevent possible conflict with Expected fix.
I'll skip story part. Now exists 3 variants:

  1. uncompressed files on server. No fastld.
  2. compressed files on server. No fastdl.
  3. compressed files on fastdl. Compressed all not-default content(maps, textures, mods). All compressed files in one fastdl dir(UE version specific).

This will most likely fix: ut99server, ut2k4server, roserver, kfserver.
Now 1 and 2 works for roserver, kfserver(due to current MapExt mv bug). Maybe on some other servers too.
Expected behavour(user selection):
a) let MapExt files stay in dirs(for no fastdl)
b) move all compressed files to ~/public_html/fastdl/. Print hint(webdl settings in Game config file, [IpDrv.HTTPDownload] RedirectToURL= and UseCompression=True)

Basic info

  • Distro: not distro specific
  • Game: [Killing Floor] [Red Orchestra: Ostfront 41-45]
  • Command: [map-compressor]
  • LinuxGSM version: [v21.3.2]

Further Information

A clear description of what the feature is and any ideas on how to achieve this.
Make "Expected fix". It will fix roserver and kfserver. Map Compression module would be Automated-ready.
"Not expected fix" described for reference only(as It may require old servers refactoring for map-compressor, maybe fastdl and lgsm-logic).

Further Reading

Provide any useful documentation or resources that might help.
Redirection and Compression - UnrealAdminWiki

Originally created by @L34T on GitHub (Oct 24, 2021). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3632 ## User Story Not all Unreal Engine games use .ut2 map format Hardcoded in https://github.com/GameServerManagers/LinuxGSM/blob/2caea172a3cb533aef971fc8065e824e3014fc79/lgsm/functions/compress_unreal2_maps.sh#L28 https://github.com/GameServerManagers/LinuxGSM/blob/2caea172a3cb533aef971fc8065e824e3014fc79/lgsm/functions/compress_unreal2_maps.sh#L33 ### Expected fix a) use Server config(ini) `[URL] MapExt` variable instead of ut2. b) use LGSM game presets. `config-lgsm/{server}/_default.cfg` `defaultmap`="{map}.{ext}" if dot found. With fallback to ut2. Need testing to prevent possible ext errors, but anyway it must fix more bugged behavour than can create. c) remove `.ut2`(it is Maps folder so expecting only maps inside). Possible conflict with Not expected fix. ### Why it need to be fixed(Expected fix) 1. It is LGSM code(affects lgsm servers only). 2. Now it have unexpected behavior on kfserver and roserver(.rom). But UE games have lots of other MapExt that may have influence on other server implementations. 3. Module DO NOT FILTER input files(map.ext.uz2.uz2.uz2...) Right now on almost default kfserver I've got compressed maps ~0.5GB. If do not remove them manually we now have geometric progression for each compress maps run. After 10 runs we will got 500GB+. So it not even "Automated"-ready. ### Not expected fix `compressedmapsdir="${rootdir}/Maps-Compressed"` is fastdl analogue. I expecting wontfix(so I do not create different issue for that "Not expected fix"), but if anyone want I must write it to prevent possible conflict with Expected fix. I'll skip story part. Now exists 3 variants: 1. uncompressed files on server. No fastld. 2. compressed files on server. No fastdl. 3. compressed files on fastdl. Compressed all not-default content(maps, textures, mods). All compressed files in one fastdl dir(UE version specific). This will most likely fix: ut99server, ut2k4server, roserver, kfserver. Now 1 and 2 works for roserver, kfserver(due to current MapExt mv bug). Maybe on some other servers too. Expected behavour(user selection): a) let MapExt files stay in dirs(for no fastdl) b) move all compressed files to `~/public_html/fastdl/`. Print hint(webdl settings in Game config file, `[IpDrv.HTTPDownload] RedirectToURL=` and `UseCompression=True`) ## Basic info * **Distro:** not distro specific * **Game:** [Killing Floor] [Red Orchestra: Ostfront 41-45] * **Command:** [map-compressor] * **LinuxGSM version:** [v21.3.2] ## Further Information A clear description of what the feature is and any ideas on how to achieve this. Make "Expected fix". It will fix roserver and kfserver. Map Compression module would be Automated-ready. "Not expected fix" described for reference only(as It may require old servers refactoring for map-compressor, maybe fastdl and lgsm-logic). ## Further Reading Provide any useful documentation or resources that might help. [Redirection and Compression - UnrealAdminWiki](https://wiki.unrealadmin.org/Redirection_and_Compression#Compression)
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#2419
No description provided.