Server Setup
This guide will help you start your own playable old Drift City server. You'll be using the 2008 TW Docker Repack and configuring it to run locally on your computer for modding and/or playing.
Requirements
- A computer running Windows or Windows Server
- SQL Server 2022 directly from Microsoft
- newer is probably okay, just keep in mind this guide assumes 2022
- SQL Server Management Studio directly from Microsoft
- 2008 TW Docker Repack files from the RaGEZONE thread
- Visual Studio Code
- alternatively any advanced text editor that has proper encoding options
If you know what Docker and Docker Compose are and have previously used them, you can stop here and just use the repack files since they include a docker-compose config.
Steps
Set up SQL Server
- Simple:
- Run installer (SQL2022-something)
- Run Installation -> New SQL Server standalone installation
- Set up the database, selecting the following when relevant:
- developer edition
- no azure extension for sql server
- include database engine services
- mixed mode authentication, create and write down password
- Detailed:
- run installer (SQL2022-something)
- click
Custom - click
Install - it downloads and does stuff
SQL Server Installation Centerpops up- click
Installation - click
New SQL Server standalone installation
- click
- says please wait,
SQL Server 2022 Setuppops up - make sure free edition says
Developer - click
Next - click
I accept - click
Next Microsoft Updatestep- click
Next
- click
Install Rulesstep- click
Next
- click
Azure Extension for SQL Serverstep- click
Azure Extension for SQL Serverto make sure it's not checked - click
Next
- click
Feature Selectionstep- click
Database Engine Servicesto make sure it's checked - click
Next
- click
Instance Configurationstep- click
Next
- click
Server Configurationstep- click
Next
- click
Database Engine Configurationstep- click on
Mixed Modeto select it - enter a password and write it down (this guide will refer to this as database server password later)
- click
Add Current User - click
Next
- click on
Ready to Installstep- click
Install
- click
Completestep- click
Close
- click
- close
SQL Server Installation Center
Set up SQL Server Management Studio
- run installer (SSMS-something)
- click
Install - click
Close
Creating a database for ZoneServer
- launch
Microsoft Sql Server Management Studio 18 - click
Connect - right click the server in the left sidebar and click
Properties- write down the name displayed near the top (this guide will refer to this as database server name later)
- click on
Connectionsand make sureAllow remote connections to this serveris checked - click
OK
- right click
Databasesin the left sidebar - click
New Database- name it
SKDBTW - click
Options - for
Recovery model:chooseSimple - click
Ok
- name it
- open the
Filemenu at the top and underOpenchooseFile- find the
zoneserver-dockerfolder and in thedbfolder select01_initialize_databaseand pressOpen - click
Execute(with the little green play icon) - when it's done it should show
Commands completed successfully.in the lower half of the window
- find the
- open the
Filemenu at the top and underOpenchooseFile- find the
zoneserver-dockerfolder and in thedbfolder select02_create_userand pressOpen - click
Execute(with the little green play icon) - when it's done it should show
Commands completed successfully.in the lower half of the window
- find the
Configuring database connectivity (ODBC)
- launch
ODBC Data Sources (32-bit) - click on the
System DSNtab - click
Add- choose
SQL Server Native Client 11.0 - for
Name:writeSKDBTW - for
Server:write the database server name you wrote down when creating the database
- choose
- click
With SQL Server authentication using a login ID and password entered by the user- for
Login ID:writesa - for
Password:write the database server password you wrote down when setting up the database
- for
- click
Next - click
Change the default database to:and writeSKDBTW - click
Next - click
Finish - click
Test Data Source...to check if everything was configured correctly- if you followed every step of this guide, it should say
TESTS COMPLETED SUCCESSFULLY! - click
OK, clickOKagain, and clickOKto close the last ODBC window.
- if you followed every step of this guide, it should say
Set up Visual Studio Code
you can skip this if you decided to use some other editor instead. these settings are for convenience
- make sure the following options are selected:
Add "Open with Code" action to Windows Explorer file context menuAdd "Open with Code" action to Windows Explorer directory context menu
Configuring the server to use the new database
- find the
zoneserver-dockerfolder and go to theserverfolder inside it - open the file named
GDBC(right click it andopen with->visual studio code)- visual studio code should open up with the contents of the file displayed. if it's showing the
Get Startedpage, you can click on the X next toGet Startedto close it.
- visual studio code should open up with the contents of the file displayed. if it's showing the
- you should see the contents of the file as follows:
[DBCONN]
0 SKDBTW
1 sa
2 z0ne!server
- replace
z0ne!serverwith your database server password - click on
Filein the top left and then clickSaveto save your changes
Enabling legacy console
- launch
Command Prompt - click on the icon in the top left and in the menu that pops up click
Properties - click on
Use legacy consolenear the bottom - click
OK - close the command prompt window
Trying it out
- find the
zoneserver-dockerfolder and go to theserverfolder inside it - double-click on
ZoneServerto start the game server- if a
Windows Security Alertpops up, make sure all the checkboxes are checked and pressAllow access
- if a
- find the
zoneserver-dockerfolder and go to theclientfolder inside it - double-click on
DriftCityto run the game - log in with username
adminand passwordadmin
Author
Perl