No edit summary |
|||
Line 6: | Line 6: | ||
#* Configuration files including JSON familiarity | #* Configuration files including JSON familiarity | ||
#* Docker & Docker Compose | #* Docker & Docker Compose | ||
# A Patreon linked Resonite account that has access to the Headless Beta Code | # A Patreon linked Resonite account that has access to the Headless Beta Code | ||
#* You only need ONE account to get the code. | #* You only need ONE account to get the code. | ||
# A spare Steam account | |||
== Recommendations == | == Recommendations == | ||
Line 15: | Line 15: | ||
# Use a separate machine - It is not recommended to run a headless on the same machine that you run Resonite on. This could lead to performance issues for both clients if you run them both at the same time. | # Use a separate machine - It is not recommended to run a headless on the same machine that you run Resonite on. This could lead to performance issues for both clients if you run them both at the same time. | ||
# Use a separate Resonite account - A separate account causes less issues in the long term. | # Use a separate Resonite account - A separate account causes less issues in the long term. | ||
# Use a separate Steam account from the one you use to play games - This prevents any issues with conflicting logins etc. | |||
== Install Docker & Docker Compose == | == Install Docker & Docker Compose == | ||
Line 27: | Line 28: | ||
#* If all goes well, you'll see a pleasant message from Docker telling you that everything worked. | #* If all goes well, you'll see a pleasant message from Docker telling you that everything worked. | ||
# Run <code>docker compose version</code> to verify that you also have Docker Compose, you should see the Docker Compose version printed. | # Run <code>docker compose version</code> to verify that you also have Docker Compose, you should see the Docker Compose version printed. | ||
== Get the Files == | |||
For this setup we'll be using some sample files that are available on a [GitHub Repository](https://github.com/Yellow-Dog-Man/BasicDockerHeadlessSetup). So if you're familiar with git, you can probably leave off here and follow the directions there. | |||
But if you're not familiar with git, don't worry. You don't even need git, just keep reading right here on the wiki. | |||
# [https://github.com/Yellow-Dog-Man/BasicDockerHeadlessSetup/archive/refs/heads/Headless.zip Download the files as a zip] | |||
#* This zip comes directly from [https://github.com/Yellow-Dog-Man/BasicDockerHeadlessSetup] | |||
# Extract the zip file | |||
# You should now have a folder called "Headless" | |||
== Specifying some credentials == | |||
Next, we'll need to gather some credentials and place them in a file within the "Headless" folder. | |||
So be prepared with your: | |||
* [[Patreon#Headless_Server|Patreon Headless Code]] | |||
* Username and Password to a spare Steam account | |||
** The Steam account does not need to own any games | |||
** The Steam account does not need to be a Resonite Patreon | |||
** We recommend using a separate Steam account from the one you use to play Resonite. | |||
With those prepared: | |||
# Inside the "Headless" folder, create a new file called <code>.env</code>. | |||
# Add a line: <code><nowiki>RES_HEADLESS_CODE=<Headless Code></nowiki></code> where <code><nowiki><Headless Code></nowiki></code> is replaced by the [[Patreon#Headless_Server|Patreon Headless Code]]. | |||
# Add a line: <code><nowiki>RES_STEAM_LOGIN=<Steam Username> <Steam Password></nowiki></code> where <code><nowiki><Steam Username></nowiki></code> and <code><nowiki><Steam Password></nowiki></code> | |||
# Save the file | |||
== Running a Headless == | |||
This is the last step, everything should be ready! | |||
# Open a Terminal window in the Headless folder | |||
#* On Windows, this can be done by: | |||
#*# holding shift and pressing right click in some empty space within the Headless folder in Windows Explorer | |||
#*# selecting "Open PowerShell window here" | |||
#* On Linux, for common distributions such as Ubuntu you can right click in the folder browser and select "Terminal" or "Open Terminal". | |||
#** ''Editors Note: It's been awhile since i've been in Linux from the point of view as a new user, if someone can edit that in it would help. But keep in mind "New User" [[User:ProbablePrime|ProbablePrime]] ([[User talk:ProbablePrime|talk]]) 09:07, 13 March 2024 (UTC)''' | |||
# In the Terminal window enter <code>docker compose up<code> | |||
After this a huge amount of items should appear in the terminal, this might be overwhelming but just wait, after awhile(any where from 3 to 10 minutes) you should see: <code>resonite-headless | World running...</code>. | |||
This means your headless is running. | |||
== Joining your Headless == | |||
Inside Resonite on your regular account: | |||
# Open the world browser | |||
# Select the "Headless Sessions" item on the left | |||
# Type "Testing" into the search bar | |||
# You should see your headless' session | |||
# Click it | |||
# Click Join | |||
== Limitations and where to go== | |||
Due to the simplicity of this guide, you'll probably notice a few things you'll want to change or correct, due to that here's a few links to get you started: | |||
* Your world is just a simple grid world and you want it to be a custom world | |||
** Replace the contents of "Config.json" with one of the [[Headless_Client/Example_Configurations| example configuration files]]. | |||
* Your Headless has a weird name | |||
** This name is based on an internal part of the Docker runtime. | |||
** To override it, simply add a Resonite user's username and password to one of our [[Headless_Client/Example_Configurations| example configuration files]]. | |||
** Or take a look at our [[Headless_Client/Configuration_File|configuration guide]] | |||
** The Resonite account does not need to: | |||
*** Be a Patreon | |||
*** We Recommend using a separate Resonite account from the one you use on Resonite regularily. | |||
* You want Builder permissions in your Headless | |||
** Take a look at our [[Headless_Client/Configuration_File|configuration guide]] | |||
* Your question isn't answered? | |||
** Take a look at our [[Headless_Client/Configuration_File|configuration guide]] | |||
** Ask on our [https://discord.gg/resonite Discord]. | |||
== See Also == | |||
* [[Headless Client/Setup|Setup a Headless]] - How to setup a headless for the first time | |||
* [[Headless Client/Managing Worlds|Managing Worlds]] - Guidance on world management with a headless. | |||
* [[Headless Client/Docker|Docker Setup]] - Guidance on creating a headless using Docker. | |||
* [[Headless Client/Configuration File|Configuration File]] - Learn about Headless Configuration Files | |||
* [[Headless Client/Commands|Commands]] - Learn about Headless Commands |
Revision as of 09:07, 13 March 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Prerequisites
- Basic familiarity with:
- Command Line Systems
- Configuration files including JSON familiarity
- Docker & Docker Compose
- A Patreon linked Resonite account that has access to the Headless Beta Code
- You only need ONE account to get the code.
- A spare Steam account
Recommendations
Before you get started here are some recommendations:
- Use a non-windows machine - While this setup works for Windows, Docker on windows can break depending on your CPU, Operating System setup and even sometimes the motherboard. For less issues, stay off windows.
- Use a separate machine - It is not recommended to run a headless on the same machine that you run Resonite on. This could lead to performance issues for both clients if you run them both at the same time.
- Use a separate Resonite account - A separate account causes less issues in the long term.
- Use a separate Steam account from the one you use to play games - This prevents any issues with conflicting logins etc.
Install Docker & Docker Compose
- Visit Docker's Get Docker page
- Follow instructions for your operating system
- Ensure you also have Docker Compose. Depending on your setup, this may be included already but if not there's a Docker documentation page which has the details.
Test Docker Setup
To verify that docker is setup on your machine and working correctly:
- Open a terminal window
- Enter
docker run hello-world
- If all goes well, you'll see a pleasant message from Docker telling you that everything worked.
- Run
docker compose version
to verify that you also have Docker Compose, you should see the Docker Compose version printed.
Get the Files
For this setup we'll be using some sample files that are available on a [GitHub Repository](https://github.com/Yellow-Dog-Man/BasicDockerHeadlessSetup). So if you're familiar with git, you can probably leave off here and follow the directions there.
But if you're not familiar with git, don't worry. You don't even need git, just keep reading right here on the wiki.
- Download the files as a zip
- This zip comes directly from [1]
- Extract the zip file
- You should now have a folder called "Headless"
Specifying some credentials
Next, we'll need to gather some credentials and place them in a file within the "Headless" folder.
So be prepared with your:
- Patreon Headless Code
- Username and Password to a spare Steam account
- The Steam account does not need to own any games
- The Steam account does not need to be a Resonite Patreon
- We recommend using a separate Steam account from the one you use to play Resonite.
With those prepared:
- Inside the "Headless" folder, create a new file called
.env
. - Add a line:
RES_HEADLESS_CODE=<Headless Code>
where<Headless Code>
is replaced by the Patreon Headless Code. - Add a line:
RES_STEAM_LOGIN=<Steam Username> <Steam Password>
where<Steam Username>
and<Steam Password>
- Save the file
Running a Headless
This is the last step, everything should be ready!
- Open a Terminal window in the Headless folder
- On Windows, this can be done by:
- holding shift and pressing right click in some empty space within the Headless folder in Windows Explorer
- selecting "Open PowerShell window here"
- On Linux, for common distributions such as Ubuntu you can right click in the folder browser and select "Terminal" or "Open Terminal".
- Editors Note: It's been awhile since i've been in Linux from the point of view as a new user, if someone can edit that in it would help. But keep in mind "New User" ProbablePrime (talk) 09:07, 13 March 2024 (UTC)'
- On Windows, this can be done by:
- In the Terminal window enter
docker compose up
After this a huge amount of items should appear in the terminal, this might be overwhelming but just wait, after awhile(any where from 3 to 10 minutes) you should see: resonite-headless | World running...
.
This means your headless is running.
Joining your Headless
Inside Resonite on your regular account:
- Open the world browser
- Select the "Headless Sessions" item on the left
- Type "Testing" into the search bar
- You should see your headless' session
- Click it
- Click Join
Limitations and where to go
Due to the simplicity of this guide, you'll probably notice a few things you'll want to change or correct, due to that here's a few links to get you started:
- Your world is just a simple grid world and you want it to be a custom world
- Replace the contents of "Config.json" with one of the example configuration files.
- Your Headless has a weird name
- This name is based on an internal part of the Docker runtime.
- To override it, simply add a Resonite user's username and password to one of our example configuration files.
- Or take a look at our configuration guide
- The Resonite account does not need to:
- Be a Patreon
- We Recommend using a separate Resonite account from the one you use on Resonite regularily.
- You want Builder permissions in your Headless
- Take a look at our configuration guide
- Your question isn't answered?
- Take a look at our configuration guide
- Ask on our Discord.
See Also
- Setup a Headless - How to setup a headless for the first time
- Managing Worlds - Guidance on world management with a headless.
- Docker Setup - Guidance on creating a headless using Docker.
- Configuration File - Learn about Headless Configuration Files
- Commands - Learn about Headless Commands