Skip to main content

Setup local server

  • Clone uniksim depot with the old_login branch : https://gypso@bitbucket.org/gypso/uniksim.git
  • Run npm install in the main directory
  • Install and run Xampp (Installation location (by default) -> C:\xampp )
  • Make the <uniksimroot>/public folder the root of a php virtual host
    • Add the next lines to this file : C:\xampp\apache\conf\extra\httpd-vhosts.conf

<VirtualHost *:80>
     ServerAdmin webmaster@localhost
     DocumentRoot C:/dev/uniksim/public
     ServerName uniksimdev
     ServerAlias www.uniksimdev
     <Directory "C:/dev/uniksim/public">
         Options All
         AllowOverride All
         Require all granted
     </Directory>
</VirtualHost>


    • Add the next lines to this file :  C:\windows\system32\drivers\etc\hosts

127.0.0.1 localhost

127.0.0.1 uniksimdev


  • Run php composer.phar install in the main directory
  • Start the Apache and the MySQL modules in the Xampp Control Panel
  • Setup in phpMyAdmin
    • Open the Admin panel of the MySQL module in the Xampp Control Panel
    • Create a new database named uniksim with the utf8_general_ci collation
    • Within the SQL tab in the new database, setup the database structure by running the content of :<uniksimroot>/uniksim_example.sql 
  • Setup the game
    • Get the current game version for the client in the constant table within the uniksim database in phpMyAdmin and add the folders builds/<client_version> in <uniksimroot>/public/
    • Copy your Unity build to the <client_version> folder
  • Duplicate <uniksimroot>/.env.example and rename it .env
  • Install Redis for Windows
  • Install Visual Studio Code and open it, drag and drop <uniksimroot>/node.js, and run the
    Server debug configuration