We recommend using the Thunderstore Mod Manager or an alternative for installing mods
A chat improvement mod for Valheim that aims to add quality-of-life features to Valheim, this mod has features for both servers and clients and is packed in a single .dll file.
With 2.0.0 introduced, VChat now has the ability to host custom server-wide channels, these channels can be customised by the players, this feature adds a varieity of uses, examples would be clans, factions, parties, temporary one-on-one chats, and probably more! Please note that for now these channels are only supported for dedicated servers. The server-sided binary data is stored next to the .db world file, as 'worldName.vchat.bin'.
To use the custom channels in your own mod, the simplest way is to add VChat as a dependency to your mod.
Then create a channel using the
ServerChannelManager class after the event
VChatPlugin.OnInitialised is triggered.
When the channel is created, you can use
ServerChannelManager.SendMessageToAllPeersInChannel to send a message and
ServerChannelManager.OnCustomChannelMessageReceived to read messages from the custom channels.
Alternatively, you can also use network messages to handle channels, feel free to explore the data structures for that.
.s /l .say .local .y /sh .yell .shout .w /whisper .g /global [text] .[customChannelName] [text]
Switches to the provided chat channel, and if text is entered, also send a message to that channel.
Adds a channel to the server with the provided name, channel names must be unique.
Disbands a channel with the name, provided you have the permission to do so - either being the owner of the channel or an administrator in-game.
.remove [channel] [player]
Remove a player from a channel. The owner of the channel can also be removed by an administrator.
.invite [channel] [player]
Invites an online player to the channel, if you have the permission - having access to the channel means you can invite.
/accept .accept [channel]
Accepts a received channel invite, if no argument is specified, it will accept the first found invite.
/decline .decline [channel]
Declines a received channel invite, if no argument is specified, it will accept the first found invite.
.setcolor [customChannelName] [value]
Changes the color of a custom channel with the provided color, this accepts either a html string like #ff0000 or a name, like 'red'.
.setlocalcolor /setshoutcolor .setwhispercolor .setglobalcolor [value]
Changes the chat colour for the chat channel visible in the command name, this accepts either a html string like #ff0000 or a name, like 'red'.
Toggles the chat to always show or hide.
Toggles the chat to show when a message is sent, this has no effect if .showchat is enabled.
Toggles if the chat should be click-through, for example when the map is in front of the chat window.
Sets the amount of messages that should be recorded so that the history can be called up with the up and down arrow. This is disabled if it's set to 0. Note that these are not saved to a file, restarting Valheim will clear this list.
Changes the default channel that's set when logging in, accepted values are: whisper, normal, shout and global.
.sethidetime /sethidedelay .setht [seconds]
Changes the amount of time in seconds that the chat window will stay active.
.setfadetime /setft [seconds]
Changes the amount of time in seconds it should take to transition the chat window's opactiy from active to inactive (or hidden), this occurs after the hide timer.
.setopacity /set% [0-100]
Changes the opacity of the active chat, when pressing enter the opactiy will always be 100. This value ranges from 0 to 100, where 0 means completely transparent and 100 is fully opaque.
.setinactiveopacity /setiopacity .seti% [0-100]
Changes the opacity of the inactive chat, this is only relevant when always displaying the chat window. This value ranges from 0 to 100, where 0 means completely transparent and 100 is fully opaque.
Changes the width of the chat window, this is based of 1920x1080 values regardless of the screen resolution. The default width is 500.
Changes the height of the chat window, this is based of 1920x1080 values regardless of the screen resolution. The default height is 400.
Changes the maximum amount of visible messages in the chat window, if this is set to 15 the function will resume as normal.
Or you can use the mod manager r2modman.
Please note that the install buttons only work if you have compatible client software installed, such as the Thunderstore Mod Manager. Otherwise use the zip download links instead.
|Upload date||Version number||Downloads||Download link|