Development Server Setup
    As a developer - you may find the necessity to build a clean server/folder with the latest PEQ database without messing up an existing folder - today this is easy to do and applies for either Linux or Windows
    This assumes you have Perl / MySQL and the rest of the environment already installed
Creating a New Folder
    First, create your server folder that you wish use, the examples are going to be used with Linux, but the command line is almost identical for Windows
    In Linux - the base installer uses /home/eqemu/ - so let's use that directory as our base
1
mkdir eqemu_test
2
cd eqemu_test
Copied!
Using eqemu_server.pl
    Now that we are in our server folder, we can either copy the eqemu_server.pl from another server folder, or we can pull down a fresh copy from Github
    You can use curl, wget or manually create the file
1
curl -O https://raw.githubusercontent.com/EQEmu/Server/master/utils/scripts/eqemu_server.pl && chmod 755 eqemu_server.pl && ./eqemu_server.pl new_server
Copied!
1
wget --no-check-certificate --cache=no https://raw.githubusercontent.com/EQEmu/Server/master/utils/scripts/eqemu_server.pl && chmod 755 eqemu_server.pl && ./eqemu_server.pl new_server
Copied!
Setting Environment Parameters
    The script will prompt for a few questions, this is to ask for a valid MySQL user/password so the script can install a new environment properly, it is also going to ask for your new database name so it can associate the new folder with that database
1
[New Server] For a new server folder install, we assume Perl and MySQL are configured
2
[New Server] This will install a fresh PEQ Database, with all server assets
3
[New Server] You will need to supply database credentials to get started...
4
5
[Input] MySQL User: eqemu
6
[Input] MySQL Password: eqemu
7
[New Server] Success! We have a database connection
8
[Input] Specify a NEW database name that PEQ will be installed to: peq_new
Copied!
    Note: If you do not supply valid MySQL credentials - the command will halt and not continue. Make sure to also use a simple database name to prevent issues
Waiting for Installation
    Next, this is going to kick off installer routines - and build the source in the following directory:
      /home/eqemu/eqemu_test_source/Server/build
      When this is done compiling, the folder you created will by symlinked to this custom build directory
    Once complete, you will see installation summary info presented to you
    1
    [New Server] New server folder install complete
    2
    [New Server] Below is your installation info:
    3
    [Install] Installation complete...
    4
    [Install] Server Info (Save somewhere if needed):
    5
    - mysql_eqemu_db_name peq_new
    6
    - mysql_eqemu_user eqemu
    7
    - mysql_eqemu_password eqemu
    8
    [Install] Linux Utility Scripts:
    9
    - server_start.sh Starts EQEmu server (Quiet) with 30 dynamic zones, UCS & Queryserv, dynamic zones
    10
    - server_start_dev.sh Starts EQEmu server with 10 dynamic zones, UCS & Queryserv, dynamic zones all verbose
    11
    - server_stop.sh Stops EQEmu Server (No warning)
    12
    - server_status.sh Prints the status of the EQEmu Server processes
    13
    [Configure] eqemu_config.json Edit to change server settings and name
    Copied!
    Type exit out of the menu and return back to the prompt
Server Start Test
    If necessary, return back to your original folder and start your respective start script whether you are in Windows or Linux, in Linux we will use ./server_start.sh
1
[email protected]:/home/eqemu/eqemu_test# ./server_start.sh
2
[Status] Loading items...
3
[Status] Loading factions...
4
[Status] Loading loot...
5
[Status] Loading skill caps...
6
[Status] Loading spells...
7
[Status] Loading base data...
8
Server started - use server_status.sh to check server status
9
10
[email protected]:/home/eqemu/eqemu_test#
11
Akka's Linux Server Launcher
12
Zones to launch: 30
13
14
[email protected]:/home/eqemu/eqemu_test# ./server_status.sh
15
16
Akka's Linux Server Launcher
17
World: UP Zones: (30/30) UCS: UP Queryserv: UP
Copied!
That's it!
Your new server partition should be ready for you to use and manipulate however you need
Last modified 2yr ago
Copy link