Giter Club home page Giter Club logo

devenv's Introduction

SWGEmu Development Environment setup


Special Thanks to lordkator for the initial FastTrack VM Image and the scripts that this repository is based on.


Tested with Ubuntu 20.3 and Mint

Latest MtG Tre files can be downloaded from HERE.

Install a new VM in VirtualBox (or download the above link and import appliance).

##Impotant Note!! Please ensure you run sudo apt-get update and sudo apt-get upgrade BEFORE running the following scripts if using the MtG Base Image.

Once complete

For this exercise, use the following user/password:

swgemu

password: 123456

Import scripts

Copy this series of commands into a terminal: Installs git, downloads scripts and installs them. ## DO NOT LOGIN AS ROOT!!!!

And just to make sure you don't ignore it and do it anyway!!

DO NOT LOGIN AS ROOT!!!!

YOU WILL BREAK THE INSTALL IF YOU DO THIS AS ROOT!!

So..

Copy this long series of commands into your console..

sudo apt-get update && sudo apt-get install -y -q git && git clone https://github.com/ModTheGalaxy/DevEnv.git && cp -i ~/DevEnv/README.md ~/Documents && mkdir setup && mkdir run && cp -r ~/DevEnv/run/* ~/run/ && chmod -v +x ~/DevEnv/bin/* && cat ~/DevEnv/bin/pathto &>> ~/.bashrc

Run scripts

Once the above has completed, run the following from the command line.

  1. cd ~/DevEnv/bin

  2. ./reqd - Installs required packages and programs including Lua, BerkelyDB, etc.

  3. ./setup - Setup of development environment follows these steps:

    • Clone repos and checkout a local branch of mtgserver/master
    • Server configuration
    • For MySQL databases, passwords are [sudo]123456, then 123456 for the two DB's
    • Tre files (They will need to be copied or moved)
    • Asks if you want to build and run the server.
  4. Will build the server. However if it fails, use the following:

  5. cd ~/workspace/Core3/MMOCoreORB

  6. build server with make -j8

  7. While the server is building, is a good time to copy your tre files to the server. There is a shared folder set up in the VM.

  8. On your host computers C drive, create a folder called c:\vmshare

  9. Copy your tre files to this folder, **YOU WILL CURRENTLY HAVE TO RENAME YOUR TRE FOLDER "TRE" AS IT IS CURRENTLY CALLED NIL **

  10. Open a new terminal and press the up arrow until you see this command: Then hit Enter.

sudo mount -t vboxsf vmshare ~/share/

  1. The folder should now be available in the Debian file explorer, you should be able now, to drag the files actross to /tre

  2. Once the build process has finished, it should immediately launch the server. If it does not, then:

  3. cd ~/workspace/Core3/MMOCoreORB/bin

  4. Run server with ./core3

  5. you can run the "latest" script to update code and engine submodule as you wish. It will do a quick git-stash, git-pull, and git-stash-apply so you can get to the latest code w/o losing local work.

Setup MySQL

You will need to manually setup MySQL workbench. Easiest way is to set it up from the command line.

From command line run:

sudo mysql -u root

use mysql;

update user set password=PASSWORD("12345678") where User='root';

UPDATE user SET plugin='mysql_native_password' WHERE User='root';

FLUSH PRIVILEGES;

exit;

Now open workbench from start/programming.

Log in as root uping p/w 12345678

open galaxy table and edit IP address to your VM's address (default is localhost 127.0.0.1), save, apply, exit, reboot.


devenv's People

Contributors

scurby avatar lasko2112 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.