WineHQ

TradeWars Game Server

Application Details:

Version: 2.20b
License: Free to use
URL: http://www.eisonline.com
Votes: 0
Latest Rating: Gold
Latest Wine Version Tested: 5.22

Maintainers: About Maintainership

No maintainers. Volunteer today!

Free Download TradeWars Game Server Downloads

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

TWGS installs successfully into a fresh WINEPREFIX with no winetricks needed. One of the dialog windows during installation may appear misshapen. TWGS has also been tested with PlayOnLinux and found working well.

TWGS is started by running twgs.exe. By default, TWGS is configured to listen on port 23. This will result in an expected error message upon startup:

Error binding player listener (10013)

However, this would only succeed with root privilege (or equivalent), and so this is not alarming. The listening port and other server settings are mainly found via the menu path: Server -> Configure. From there, explore the four tabs.

TWGS works in general and can be used as expected, save for "Autorun" and "Run as service" type features which do not provide their original convenience under WINE.

Confirmed to work: Game initialization (called "Big Bang"), game import and export, external maintenance, gold aliens, alien manager, Tedit, administration via the admin port, gameplay via the standard port, logging, node snooping, extreme game parameters (30,000 sectors, 1000 NPC aliens) and long-term operation.

What does not

A problem exists where only 63 simultaneous connections will be supported, even if the server is licensed for more. The problem is described in Bug 50352 - Maximum sockets per process is set very low.

TWGS will detect on startup if the maximum number of sockets it will be allowed to open is too low. If it will hit that limit before a license limit, an error will be shown, but TWGS will still be usable for up to 63 simultaneous connections.

Workarounds

Regarding the limit of 63 simultaneous connections:

Workaround 1: Do nothing, as the limit is going to be very difficult to reach without connecting to TWGS about 63 times yourself.

Workaround 2: Rebuild WINE with WS_MAX_SOCKETS_PER_PROCESS > 202, per the bug.

What was not tested

After a couple years of operation, very little has been left untested.

Hardware tested

Graphics:

  • GPU: Unknown
  • Driver: unknown

Additional Comments

It's generally suggested to install to C:/EIS/TWGS/ instead of under "Program Files" as many 3rd party utilities (which also work under WINE) break when encountering spaces in paths.


A problem has been observed where a game's FERRENGI.DAT grows without bounds, potentially to the point of filling the disk. The game had Gold Aliens enabled, and thus Gold Ferrengi, which means the game does not actually utilize FERRENGI.DAT which belongs to internal Ferrengi only. Nonetheless, some combination of running under WINE and game parameters could cause this problem which causes TWGS to fill this file with zeros. Since the file is not used, symlink it to /dev/null:

FERRENGI.DAT -> /dev/null

The following files may help provide hints with running TradeWars in a server-like manner with the GUI in a VNC session.

The following systemd unit references the "vncserver" service, a part of tigervnc. A persistent Xvnc session begins as the user tw2002, configured by assigning display :2 to user tw2002 in /etc/tigervnc/vncserver.users, then enabling the corresponding vncserver@:2.service. This VNC session can then be connected to.

tw2002.service

[Unit]
Description=TradeWars 2002 Game Server
After=vncserver@:2.service
Requires=vncserver@:2.service
[Service]
Type=exec
Restart=no
User=tw2002
KillMode=process
ExecStart=/srv/tw2002/bin/twgs-start
ExecStop=/srv/tw2002/bin/twgs-stop
TimeoutStopSec=30
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target

twgs-start

#!/bin/bash
export WINEPREFIX="/srv/tw2002/wineprefix"
export WINEDEBUG=fixme-all,trace-all
export DISPLAY=:2
cd ${WINEPREFIX}/'dosdevices/c:/EIS/TWGS/'
exec wine twgs.exe

twgs-stop

#!/bin/bash
export WINEPREFIX="/srv/tw2002/wineprefix"
export WINEDEBUG=fixme-all,trace-all
export DISPLAY=:2
cd ${WINEPREFIX}/'dosdevices/c:/EIS/TWGS/'
wine twgs.exe shutdown

selected in Test Results table below
Operating systemTest dateWine versionInstalls?Runs?Used
Workaround?
RatingSubmitter
CurrentArch Linux x86_64Jan 08 20215.22Yes Yes YesGoldGavin Cooper 
ShowLinux Mint 17.1 "Rebecca" x86-64Feb 08 20151.6.2Yes Yes BronzeCharlie Wilson 

Known Bugs

Bug # Description Status Resolution Other apps affected
50352 Maximum sockets per process is set very low UNCONFIRMED View

Show all bugs

HowTo / Notes

Configuring the game server

The following was extracted from a user comment made in October, 2016 and may not be relevant to current Wine:

Change the player port to 2002 (from the default 23)

Comments

Comments Disabled

Comments for this application have been disabled because there are no maintainers.
Back