Crowd Control for Valheim - client mod 2.0.1
============================================

Windows client. Built against Valheim on Unity 6000.0.61f1 with
BepInEx 5.4.23.3 (Doorstop 4.4.0).


INSTALL
-------
Extract the contents of this zip directly into the Valheim folder - the one
with valheim.exe in it. You should end up with:

    Valheim\winhttp.dll
    Valheim\doorstop_config.ini
    Valheim\BepInEx\core\...
    Valheim\BepInEx\plugins\CrowdControl.dll
    ...

If you already have BepInEx installed, only copy the BepInEx\plugins\ files
and leave the rest alone - overwriting a working loader is the usual way to
break an install.


CHECK IT LOADED
---------------
Start Valheim, then look in BepInEx\LogOutput.log for:

    [Info   :   BepInEx] Loading [Crowd Control 2.0.1]
    [Info   :Crowd Control] Loaded WarpWorld.CrowdControl. Patching.

If BepInEx.dll never appears in the log at all, Doorstop did not load;
that is a loader problem rather than a mod problem.


USING IT ON A DEDICATED SERVER
------------------------------
With this installed, on a server running the Crowd Control server mod:

    /cc link      link your Crowd Control account (returns a code to enter
                  in the Crowd Control app)
    /cc status    show whether you are linked
    /cc unlink    drop the link

These need this mod. Valheim only sends chat to you and to other players,
never to the server, so a vanilla client has no way to send a server a
command. Without the mod you can still play, and the server will tell you
in chat what you are missing, but you cannot link and viewer effects cannot
target you.

Singleplayer and player-hosted games are unchanged: the mod talks to the
Crowd Control desktop app exactly as before.


WHAT IS NOT PROVEN YET
----------------------
Verified: the plugin loads on a dedicated server, server mode starts, the
server reaches Crowd Control, and the server can message unmodded clients.

Not yet verified, because it needs a licensed game client, which the machine
this was built on does not have:

  - this DLL actually loading in the Valheim *client*
  - the client-to-server handshake
  - an effect arriving and being applied

So treat the first run as the test of those. The build is a Debug build and
the Crowd Control client libraries in it were compiled from source with
signing disabled; a release should ship official signed Release builds.
