Skip to content

adamharley/torch-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Torch for Docker (experimental)

Building on the work of radu706 of the Torch Discord getting the CLI version of Torch running under Wine, this Docker image brings the GUI version of Torch to the web and VNC so you can have a truly headless server.

In order to keep the image size down and simplify updates, this image contains only the Torch server and will download the Space Engineers dedicated server on first run. The SteamCMD update progress does not appear in the console but it is working.

If copying an existing world, make sure to change the path of <LoadWorld> in SpaceEngineers-Dedicated.cfg to Z:\torch-server\Instance\Saves\. If you want to create a world within the Torch GUI, change <Autostart> to false in Torch.cfg, remove the -autostart flag in supervisord.conf and restart.

Warning: This image is experimental. Performance appears to be optimal with 4 vCPUs made available, 8 actually causes performance to drop. Wine is weird.

Ports

  • TCP 5900: VNC (x11vnc)
  • TCP 6080: Web UI (noVNC)
  • UDP 27016: Game server

Known Bugs

  • Torch themes don't work
  • Keen's remote API doesn't work
  • Title bars don't render unless virtual desktop setting is set after first boot, run winetricks vd=800x600 to fix it

Build Notes

  • Space Engineers is theoretically okay with .NET Framework 4.0 and Visual C++ 2017 redistributables since that's what it ships with
  • Torch is built against (according to packages.config) .NET Framework 4.6.1 and Visual C++ 2013
  • However, booting with .NET Framework 4.6.1 on Wine results in fatal errors because of missing calls in a DLL, so you really need .NET Framework 4.6.2
  • Booting with .NET Framework 4.7 or higher results in rendering issues
  • Booting with Wine 5 RC1 under Debian Unstable results in Torch being unable to attach to the SE server
  • Torch GUI requires Arial font to be installed or it'll fail fatally
  • Window management must be disabled for Wine to render a titlebar and a virtual desktop must then be used to stop the cursor disappearing on window focus
  • Winetricks setting verbs must be called individually or they only appear to work
  • Running as root is a necessary evil unless a decent solution can be found for setting ownership of Docker volumes
  • Using bash -c is necessary to force the Torch CLI to appear under X11 instead of passing to the command line
  • Running Torch CLI from the command line will only pass all output if run by a user terminal, not Docker or supervisord
  • Setting supervisord's PID file to /dev/null will replace it with a regular file
  • Wine's STDERR is a firehose of insignificant warning messages

About

Torch (Space Engineers) server Docker image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published