If you received an error message indicating that your Rogue Cloud client API version is no longer supported or if you just want to ensure you have the most recent version of the Rogue Cloud client code, follow these instructions to get up to date.
If you use Codewind, then how you update depends on which IDE you are using. Or, regardless of IDE, you can update by using the Git CLI if you prefer.
- Select
Viewfrom the menu bar andSCM. - Look for the
...icon in theSource Control: Gitview, click the...icon, and then selectPull.
- Right-click
gameclientin theEnterprise ExplorerorProject Explorerview. - Select
Team>Pull.
- Locate your project on disk:
- In Visual Studio Code, right-click your project in the
Codewindview and selectOpen Project Overview. Then, look for theLocation on Diskfield. - In Eclipse, right-click your project in the
Codewind Explorerview and selectOpen Project Overview. Then, look for theLocation on Diskfield.
- From the command line, enter
cd (path to project on disk)andgit pull.
You can use any of three methods to upgrade the Rogue Cloud client code from Microclimate.
With this method, you can pull the latest changes from the official rogue-cloud-client repository entirely within the code editor UI.
- In the code editor view, select
View>Git. - Inside the Git view, select the
...icon. Then, selectPull.... - From
Pick a remote to pull the branch from:, selectOrigin.
After the latest changes are pulled, Microclimate detects the change, and you see a notification in the Build logs view.
If you are familiar with the Git command line tool, you can use this method to pull from the in-browser terminal:
- In the code editor view, select
File>New Terminal, which opens a new command line window inside the code editor. - You should already be in the
microclimate-workspacedirectory. If not, entercd /microclimate-workspaceto go to the correct directory. - Pull the latest changes from the remote repository by running the following commands:
cd roguecloudclient
git pull
Method 3: Use this method if you encounter errors with the previous methods or if you want to start your project from scratch.
WARNING: This method deletes all the Rogue Cloud code including any changes you made to your AI code. Make sure you have backed up any important changes to your AI code, if applicable. Don't forget to note your username and password!
- Read and heed the warning. 😄
- Select
Projectsto go to the Microclimate Projects view. - Click the
roguecloudclientcontext icon. Then, selectDelete project. - Follow the Add Rogue Cloud to Microclimate steps on the installation page (https://github.com/codewind-resources/rogue-cloud/blob/master/docs/GettingStarted.md). Now, you have a fresh copy of the
rogue-cloud-clientrepository.