WineHQ

Farming Simulator 22 dedicated server

No Screenshot

Submit Screenshot

Farming Simulator 22 (1.8.2.0)

Application Details:

Version: 1.8.2.0
License: Retail
URL: https://farming-simulator.com/
Votes: 0
Latest Rating: Garbage
Latest Wine Version Tested: 7.22-staging

Maintainers: About Maintainership

Test Results

Old test results
The test results for this version are very old, and as such they may not represent the current state of Wine. Please consider submitting a new test report.
Selected Test Results

What works

Web server (everything in the web server work, except the game server process starting)

What does not

  • Starting game server from web server.
  • Server seem to bind on first network interface and server is not reachable when connecting not from localhost (see workarounds)

When starting game server from web server, in logs I am getting below messages:

0160:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 000000000089B3F8, 43) stub
0160:fixme:kernelbase:AppPolicyGetProcessTerminationMethod FFFFFFFFFFFFFFFA, 000000000011F560

and in server logs file, I am getting these:

[07/Jan/2023:13:18:12] Error: Unable to start game server process
[07/Jan/2023:13:18:12] Unable to start game server

Workarounds

I've tried to spin it up in Docker container. The trick of accessing web server:

  1. In dedicatedServer.xml, set web server port to 8081
  2. start dedicated server (Docker container) and port forward "8080/8080/tcp".
    1. Doesnt work with --net=host
    2. Web server binds on 127.0.0.1:8081 and won't accept any connections that are not from 127.0.0.1.
    3. Either setup NAT rule or spawn reverse proxy. E.g. using Caddy it can be achieved using one liner: caddy reverse-proxy --from :8081 --to localhost:8080
  3. access web server in the browser: http://127.0.0.1:8080

What was not tested

Game server itself (web server does not start game server process)

Hardware tested

Graphics:

  • GPU: Unknown
  • Driver: unknown

Additional Comments

Here is how (attempt to) dockerize it:

1. Create Dockerfile:

FROM alpine:3.17.0

# Install wine & other dependencies
RUN apk add --no-cache ca-certificates wget samba-winbind-clients libldap bash caddy krb5 libldap wine

# Install winetricks and disable crash messages
#RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/... winetricks
#RUN env WINE=/usr/bin/wine64 /usr/bin/winetricks nocrashdialog

# Prepare/configure mountpoints
RUN mkdir -p '/root/.wine/drive_c/users/root/Documents/My Games'
RUN ln -s /data '/root/.wine/drive_c/users/root/Documents/My Games/FarmingSimulator2022'
RUN mkdir -p /game

# Setup docker image
COPY --chmod=0755 start.sh /start.sh
WORKDIR /game
ENTRYPOINT ["/start.sh"]


2. Create start.sh:

#!/bin/bash
caddy reverse-proxy --from :8081 --to localhost:8080 &
/usr/bin/wine64 "$@" &
wait -n
exit $?


3. From your Windows PC, copy game files to docker image workspace. Name the folder "game".

4. From your Windows PC, copy directory "...\Documents\My Games\FarmingSimulator2022" to docker image workspace. Name the folder "data".

5. Build docker image:

docker build -t f22:0.1 .

6. Run docker container (I did not forward game server ports, just web ports for testing):

docker run --rm -it -p 8080:8081/tcp -v `pwd`/game:/game -v `pwd`/data:/data f22:0.1 /game/dedicatedServer.exe

7. After lots of errors/warnings, you will see this:

Config file: Z:/game/dedicatedServer.xml
GIANTS Dedicated Server/9.1.0.0
Initializing mod download manager... 0138:fixme:kernelbase:AppPolicyGetThreadInitializationType FFFFFFFFFFFFFFFA, 0000000001F0FE10
(5384.36) ms
0024:fixme:file:NtLockFile I/O completion on lock not implemented yet
Build initial mod meta cache... (281.63) ms

URL(s): http://127.0.0.1:8080

Please refer to config file for initial admin password.

Press 'CTRL-C' to stop the server...

selected in Test Results table below
Operating systemTest dateWine versionInstalls?Runs?Used
Workaround?
RatingSubmitter
CurrentUbuntu 22.04 "Jammy" (+ variants like Kubuntu)Jan 07 20237.22-stagingN/A No YesGarbageErikas Rudinskas 

Known Bugs

Bug # Description Status Resolution Other apps affected

Show all bugs

Comments

Back