Getting the source code
From Wiki
Contents |
[edit] ArcEmu SVN repository information
- Official SVN:
svn://arcemu.info/svn/trunk - Official Scripts SVN:
svn://arcemu.info/arcscripts/Trunk
[edit] Step 1: Installing a Subversion client
To checkout (download) the source code you must first have a SVN client. Install one of the following:
- TortoiseSVN is a GUI client for Windows. Recommended for Windows users. It integrates into Windows Explorer, however, will not do so on any server edition. It's recommended to use one of the below clients instead.
- Ankh is a GUI client built into Visual Studio.
- SCPlugin is a GUI client similar to TortoiseSVN for Mac OS X. Recommended for Mac OS X users.
- RapidSVN is a GUI client which has both a Windows and Linux version.
- Subversion is the official client. It does not have a GUI. Recommended for all other operating systems.
Note: If you copy over source code checked out on a Windows machine to any other machine running a different operating system, it might not compile or work correctly.
[edit] Step 2: Checking out
[edit] TortoiseSVN
Create a new folder at C:\ArcEmu\Source (or any other folder name). Go there, right click and choose SVN Checkout. Enter the URL above and leave the revision box blank (unless you want to download an older version). Press OK to checkout the source code.
[edit] SCPlugin
Create a new folder wherever you want. Enter the folder, right click, select subversion then check out in a manner similar to that of TortoiseSVN.
[edit] RapidSVN
Select Repository -> Checkout... or press CTRL+O. Enter the URL above in the first textbox, and either type in or browse to the folder to checkout the source to in the second textbox. It is recommended to leave checkboxes at their default settings. Click OK.
To update in the future, select the entry under the Bookmarks tree, right-click and select Update... or press CTRL+U.
[edit] Subversion
Use the following command and parameters:
svn checkout --username anonymous <repository URL from above>
If you are prompted for a password, simply press enter.
Subversion 1.6.5: You may ignore the --username <user-name> directive when attempting to anonymously log into the ArcEMU repository. When the --username directive is not used, Subversion assumes anonymous access is requested.
Assuming that a user wanted to get all of the code from svn://arcemu.info/svn/trunk/, the user would enter the following at the command prompt:
svn co svn://arcemu.info/svn/trunk/
In addition, the following is also acceptable:
svn checkout svn://arcemu.info/svn/trunk/
Please ONLY check out of the TRUNK directory, unless you need a tag or branch.
[edit] Ankh for Visual Studio 2008
Select File -> Open -> Subversion Project -> and fill in head (you have to select it), fill in source with your repository URL -> select an appropriate folder on your harddrive -> log in with username anonymous and it should work (no password).
[edit] Additional reading
If you're having trouble performing certain actions with subversion, please read the SVN Manual to learn how subversion works and how to use it.
[edit] Updating the SVN
[edit] TortoiseSVN
Right-click your arcemu folder and click on SVN Update. When it says "At Revision: (Current revision.)" it is done updating. Click OK. After updating the SVN, you need to recompile in order to stay up-to-date.
[edit] RapidSVN
Expand your ArcEmu Bookmark, in the Bookmarks sidebar. Right-click the bookmark and select Update, or just press CTRL+U. After updating the SVN, you need to recompile in order to stay up-to-date.
[edit] Conclusion
You're now ready to move on to Compiling: Windows, Linux, FreeBSD, or Mac OS X
