Hint: For Linux rookies who get stuck if you want your Terminal to go back a folder type `cd ..`. It's recommended not to use or log in as a root user.
Once you have downloaded RCBot2 src code create a folder named "build" in the main /rcbot folder by typing `mkdir build` or if you using Linux Mint with a Cinnamon Desktop, simply right-click in the /rcbot folder window and click [Create New Folder] and name it "build"
Now say for example you want to compile RCBot2 for TF2 debug build what you need to do is type this in the Terminal located in /rcbot2/build like this:-
Now in order to use install AMBuild you will need to install Visual Studio 2015 or later. The way to obtain AMBuild from git is similar to `git clone https://github.com/alliedmodders/ambuild` and `pip install ./ambuild` but as you noticed that "sudo" isn't used as that is mainly for Linux.
But before that in order to install Python 3 and have it loaded directly from Visual Studio Developer PowerShell, you can either install Chocolatey or Scoop. Personally, from my side, the Python 3 package from MS Store got some privilege flaws that make Python 3 hard to load and execute .py files.
But for this tutorial, I will show you on using Scoop. Simply go to Start Menu and find and select [Developer PowerShell for VS]. Once you have opened the PowerShell, type these into the console:
And now it should be ready for RCBot2 src code to be compiled, but like before from the Linux Compiling step you may encounter some Troubleshooting issues. So to keep those to a minimum follow those steps. Type `cd` and the Folder Address like this for example if you got RCBot2 src code downloaded from a second HDD or USB Flash Drive - if not and from C:\ drive, ignore the second line if so:-
CODE
PS C:\> cd E:\rcbot2-master\build PS C:\> e:
Don't forget to create /build folder in /rcbot2. Now say for example you want to compile RCBot2 for TF2 debug build what you need to do is type this in the Terminal located in /rcbot2/build like this:-
And hopefully, the RCBot2 package for Windows is compiled and ready!
Troubleshooting: If you cannot get AMBuild to compile using Developer PowerShell or locate the SDKs properly try typing the full directory address like for example:
Also if Developer PowerShell does not appear to work on your side you could try using [Developer Command Prompt for VS] to see if it will compile better with this app. The downside with this app is you will definitely need to use the `cd E:` as the PowerShell more or less automatically reassigns you to that destination folder and that it will not keep a backlog of the commands you had typed when you are finished with the Developer Command Prompt.
And before I forget be sure to keep AMBuild and Python 3 up-to-date. For keeping Python 3 up-to-date simply type `scoop update *` to keep the packages up-to-date. Of course, for Linux Computers like Debian or Ubuntu requires typing `sudo apt update` followed by `sudo apt upgrade`. IPB WARNING [2] preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead (Line: 376 of /sources/classes/bbcode/class_bbcode.php) (WIP) Guide on how to compile RCBot2 Src Code - RCBot Forums
IPB WARNING [2] Cannot modify header information - headers already sent by (output started at /var/www/vhosts/bots-united.com/subdomains/rcbot/httpdocs/forums/sources/classes/bbcode/class_bbcode.php:373) (Line: 0 of Unknown)