# World Tree -- playing together (two PCs) Both players need the **same build**: unzip the same `world_tree_mp.zip` anywhere (for example `D:\Games\world_tree_mp`). One player **hosts**, the other **joins**. The game starts in the guild hall. The quest board there takes the party into the endless sewer, and a team death brings everyone back. ## 1. Host Double-click **`Play.bat`**. You are in the guild hall. Press **H**, then click **Host here**. The hall reloads as a listen server on **UDP port 7777**. The H panel then lists this PC's addresses ("LAN", "VPN (Tailscale)"). Read the right one out to your friend (see 3). `Host.bat` does the same in one step: it starts the hall already hosting. ## 2. Join Double-click **`Play.bat`**, press **H**, type the host's address and click **Join**. The port is 7777 unless the host says otherwise (`IP:port`). Within a few seconds you appear in the hall beside the host. If the connection fails, the game puts you back in the hall alone, and the panel says why. `Join.bat` does the same without the menu: it asks for the address. ## 3. Which address? Pick one | Situation | Host's address | Extra setup | |---|---|---| | Same house / network | its LAN IP: run `ipconfig`, read "IPv4 Address" (e.g. `192.168.1.20`) | none | | Over the internet, **no router access** (easiest) | its **Tailscale** IP, `100.x.y.z` | both install [Tailscale](https://tailscale.com) and sign in; the host shares their machine with the friend (or both join one tailnet). [ZeroTier](https://www.zerotier.com) works the same way: both join one network ID and use the host's ZeroTier IP | | Over the internet, with router access | the host's **public** IP (search "what is my ip") | on the host's router, forward **UDP 7777** to the host PC's LAN IP. TCP is not needed | The host's address stays the same for the whole session. The joiner types it once. ## 4. Windows Firewall (the host) The first time you host, Windows asks whether `world_tree.exe` may use the network. Tick **both Private and Public** and click Allow. Tailscale's and ZeroTier's adapters usually count as *Public*, so with only Private ticked the friend cannot get in. If you clicked Cancel, or no window appeared, open a command prompt **as administrator** and run: ``` netsh advfirewall firewall add rule name="World Tree 7777" dir=in action=allow protocol=UDP localport=7777 ``` The joiner needs nothing. Outgoing traffic is allowed by default. ## 5. In the game - **E** at the quest board opens it. Propose a run. Everyone votes with **Y / N**. The vote passes on a majority, or after 30 s. Then both players travel together. - A **team death** returns everyone to the hall after about 4 s. The console command `Hub.Return` does the same at any time. - Controls: WASD, mouse to look, **RMB** aim, **LMB** Flare, **Q** Blink (hold, release), **E** use / torch / ladder, **I** bag, **mouse wheel** + **G** draughts, **M** map, **MMB** swap shoulder. ## If it does not connect 1. Is the host actually hosting? The H panel should say "Hosting on port 7777". 2. Is the address right? With Tailscale or ZeroTier, can the joiner `ping` the host's 100.x / ZeroTier address? 3. Check the firewall rule (section 4). With router forwarding, check that the rule is UDP and points at the host PC's current LAN IP. 4. Are both players on the **same build**? A different exe cannot join. Logs are in `%LOCALAPPDATA%\world_tree_mp\Saved\Logs\world_tree.log` (paste the folder into the Explorer address bar). Send that file if something breaks. Known limits of this test build: - In the sewer you can split up: the sewer loads around **every** player, and each player's map shows only where they have been. It is pitch black wherever there is no wall torch, so carry one (E at a wall torch). - A player who joins mid-run does not see which torches have already been taken. - Run **one** copy of the game per PC.