- VMWare Setup
- Gerrit Code Review
- Thread: Fast Track VM Image for Development
- Create a Gmail or Yahoo account. (If needed)
The screenshots have been edited to hide personal information. What may appear to be blank space is where your personal information will be inputed, like username, email, ssh key, etc.
Certain steps will process rather quickly and others will take considerable time. Review each screenshot carefully and visit Thread: Development Documentation – *All Links and Information Inside*.
Research the SWGEmu forums to understand the processes and steps to successfully build/dissect/rebuild your owm SWGEmu server.
- Open VMWare Player/Workstation
- Open SWGEmu_DenEnv.vmx
- Open Terminal
- Type the following in the prompt: getstarted fresh’
- getstarted Info:
- Within the SWGEmu DevEnv machine, there is a shell script called getstarted, located in /home/swgemu/bin.
- Using getstarted will run you through the entire setup process again.
- Using getstarted from a terminal will reset the VM to default.
- getstarted fresh The argument fresh to getstarted will reset everything and get you to the latest code base without having to re-download the entire vm image and setup VMware etc..
- getstarted – Run the setup script again from where you left off, you can run getstarted fresh to started from scratch.
Step 1 >> Editor
- During your setup you’ll be asked to choose between three unix-based editors, vim, gvim, and nano.
- This tutorial uses vim.
Step 2 >> Git config
- NOTE: Be sure to have registered an account at Gerrit Code Review prior to completeing the remaining steps.
- Input your username associated with Gerrit Code Review.
- Input your email account associated with Gerrit Code Review.
Step 3 SSH Key >> Git config
- Automated process that informs you that you’ll need a SSH key.
- SSH keys are a more secure means of identifying trusted computers without involving passwords.
- No user input is required here.
Step 4 >> Gerrit registration
- This step will automatically launch Iceweasel and open up Gerrit Code Review.
- Sign into Gerrit Code Review through OpenID. I suggest using a Gmail or Yahoo account.
- Click on your name located in the upper right corner and select Settings.
- Click on SHH Public Keys.
- Cick on Add Keys.
- Within the Terminal, select, right-click, and copy the SSH key that was generated in Step 4.
- Within Iceweasel. paste the SHH key into the Add SSH Public Key box, then click Add.
- Back in Terminal, you’ve been asked “Have you done this yet?” Do not answer Y (yes) until you’ve successfully copied and pasted the SSH key into your Gerrit account.
- Once you’ve entered Y, you’ll be ask to enter your Gerrit username.
Step 5 >> Verify Gerrit user/SSH Key
- This step verifies your username and SSH key.
- No user inut required here.
Step 6 >> Git repos
- This process is time consuming. Relax from your hard work.
- At this stage, Core3 repository is cloned onto your SWGEmu DevEnv hardrive ~/wokspace/core3.
- The repository PublicEngine is cloned onto your SWGEmu DevEnv hardrive ~workspace/PublicEngine.
- The repository Tools is cloned onto your SWGEmu DevEnv hardrive ~workspace/Tools.
- Links, an engine library, and fresh copy MySQL database (with outstanding patches executed) are created.
Step 10 >> Server configuration
- This step allows you to edit the server configuration file, config.lua
- You can edit this file later with Gedit.
- The file is located swgemu/workspace/core3/MMOCoreORB/bin/Conf/config.lua
Step 11 >> TRE files
- NOTE: You must make sure to copy all the *.tre files from your game disk to: /home/swgemu/workspace/tre
- There are two methods to transfer TRE files.
- Via Terminal command line
- Or copy from computer’s hard drive and paste into your VM’s hardrive.
- I used this method.
- To access your files via the command line input the following:
- cd ../../
- cd mnt/hgfs/shared
- ls -a
- lists all files (even hidden files).
- From here you’ll have to change to the directories where your TRE files are kept.
- This will vary from user to user.
- If your unfamiliar with the Linux Command Line you’ll have to do some homeowork:
- To copy and paste via GUI do the following:
Step 12 >> Setup Eclipse
- This process imports projects into Eclipse.
- This import will take considerable time.
Step 13 >> Go for it
- You can build here by typing Y.
- Or just say N and build in Eclipse.
- When finished buiding, open a terminal type run_dev.