Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

In this detailed tutorial, I will walk you through the process of compiling source code, explaining where to download it and what is necessary to install the source effectively.

Installing the Source

Step 1: Prepare Your Hosting Environment

You will need a host server that runs FreeBSD version 9.2 or later, and it must have a stable internet connection.

Step 2: Download the Source Code

To begin, you need to obtain the source code. You can download it from the following link:

This is the hidden content, please
<!-- Replace with the appropriate link or image -->

Step 3: Upload the Source Code

After downloading the source code, upload it to your host server. It is recommended to place it in the /usr/src directory for ease of future tutorials.

Step 4: Update the Ports Collection

Next, to ensure you install the latest ports, you need to update your ports collection. Run the following command:

 
This is the hidden content, please

If you haven't installed portsnap, this step is necessary for those setting up a host solely for compilation. For users who are compiling on a server already in use, you’ll likely execute this command during MySQL installation, so this download may not be necessary.

 
This is the hidden content, please

Step 5: Install Required Ports

You will need to install several ports, including gmake, makedepend, svn, devil, g++, and python. Execute the following commands one at a time:

a) Install gmake:

 
This is the hidden content, please

b) Install makedepend:

 
This is the hidden content, please

c) Install subversion:

 
This is the hidden content, please

d) Install devil:

 
This is the hidden content, please

e) Install g++:

 
This is the hidden content, please

f) Install Python:

 
This is the hidden content, please

If any of these tools are already installed, you can skip that specific installation and move on to the next. Please be patient; for me, it took nearly 8 hours to install everything.

Compiling the Source Code

Once you have made the necessary changes and are ready to compile the source, you will execute the following commands:

To Compile the Database:

 
This is the hidden content, please

To Compile the Game:

 
This is the hidden content, please

You can find the compiled game file in /usr/src/YourSourceDirectory/Server/game, while the database file will be located in /usr/src/YourSourceDirectory/Server/db.

This guide should help you compile the source code successfully. Happy coding!

 

This is the hidden content, please

 

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...