A Discord bot that simplifies the process of starting Dream Car Builder servers.
This project enables easy scalability for hosting Dream Car Builder (DCB) servers. It consists of two main components:
- The Bot: Connects to Discord via the Discord Bot API and hosts a Node.js WebSocket server.
- The Node: Easily deployable, it connects to the bot's WebSocket server. The bot communicates with nodes to start and stop servers.
- Node.js 20.18.0 LTS (Windows) or newer (untested with older versions)
- Dream Car Builder server
- Node.js 20.18.0 LTS (Linux) or newer (untested with older versions)
- WineHQ (tested with Wine 9.0, should work with other versions)
- Dream Car Builder server
To host a node, follow these steps:
The node files are available in the releases section of this repository.
- Download
DCB_node.zip
and extract its contents to your Dream Car Builder server directory (usually located insteamapps/common/DCB Server
).- This can be found through your Steam library: DCB Server > cog icon > Manage > Browse local files
- Download the most recent
maps.zip
file and extract themaps
folder into your Dream Car Builder server directory - Your
DCB Server
directory should now contain three new folders:index.js
,example.env
,package.json
, andmaps
.
- Edit
example.env
with the appropriate information (IP, PORT, etc.), then rename the file to.env
. - Run
npm install
in the command line to install dependencies:- Windows: Open Command Prompt in the current directory by typing
cmd
in the File Explorer address bar.
- Windows: Open Command Prompt in the current directory by typing
Ensure that all necessary ports are forwarded. If unsure, search for guides on port forwarding specific to your router.
- Make sure all required ports are forwarded.
- Start the server by running
node .
in your command line:- Consider creating a batch file to automate this step.
- If the connection is successful, you should see a message: "
Connected to server
".- If you encounter errors such as
ECONNREFUSED
orETIMEDOUT
, check your.env
settings (IP and PORT) and verify that the bot is running. Contact the bot host if issues persist.
- If you encounter errors such as