The frobots_client repository contains the scenic elements that you need to run the FUBARs arena to develop your own Frobots locally.
git clone git@github.com:Bittoku/frobots_client.git
In order to get a bearer token, you need to have a Frobots account. Please contact @slopyjalopi in our Discord's #beta-group channel and give him your public SSH key.
Once your SSH keys are set up, you have to port forward to the Frobots server using the following command. (Replace the username with the account username that will be provided to you):
ssh -N -L 127.0.0.1:4000:127.0.0.1:4000 [username]@ec2-13-231-63-178.ap-northeast-1.compute.amazonaws.com
# Note: You have to keep this process running the background to proceed with the following steps.
After port forwarding, you can now access the development website through http://localhost:4000/
. This will load the Frobots website on your local machine and where you can create an account.
Once you have created an account, you can obtain your Bearer Token by going to User > Show from the homepage.
- Clone the backend repository here.
- Start the backend server:
frobots_backend$ iex -S mix phx.server
- Port forward to the dev server:
ssh -N -L 127.0.0.1:4000:127.0.0.1:4000 [username]@ec2-13-231-63-178.ap-northeast-1.compute.amazonaws.com # Note: You have to keep this process running the background to proceed with the following steps.
- Download the latest release here.
- Unzip the files and start a new terminal session in that directory.
- Set your token:
export CLIENT_TOKEN="<your-bearer-token>"
- Run the client:
bin/frobots_client start
- Press the Download button to get the template Frobots and any previously saved Frobot. These template Frobots will then be located in the
frobots_client-<release-tag>-beta/lib/frobots--<release-tag>/priv
underbots/
andtemplates/
. - You can use your downloaded Frobot template Lua code as a base and create your own Frobot in the
priv/bots/
folder and name it anything you want. - Upload your Frobot to the server.
- Restart the client to see your newly added Frobot and select it to start playing.
- Build a release binary for the client using the following command:
frobots_client$ mix deps.get frobots_client$ MIX_ENV=prod mix release
- Run the binary
_build/dev/rel/frobots_client/bin/frobots_client start
-
You might need to install the libraries for the Scening to work:
For Ubuntu users:
apt-get install pkgconf libglfw3 libglfw3-dev libglew2.1 libglew-dev
For macOS users:
brew install glfw3 glew pkg-config