Show the player avatar in join and leave messagesSolved

After updating to the new v2.0.0 update, Steam avatars are no longer being displayed. I deleted the following files prior to unloading and reloading the plugin as well:

  1. oxide.unload Welcomer
  2. Deleted: /home/container/oxide/config/Welcomer.json
  3. Deleted: /home/container/oxide/lang/en/Welcomer.json
  4. Uploaded new Welcomer.cs to /home/container/oxide/plugins
  5. oxide.reload Welcomer

Before, using v1.5.6:



After, uising v2.0.0:

What does your config look like?

qBSiKGTf90O1z7O.png Dana

What does your config look like?

{
"Avatar Image": 0,
"Enable Chat Welcome Message": true,
"Enable Console Welcome Message": true,
"Enable Join Message": true,
"Enable Newcomer Join Message": true,
"Enable Leave Message": false,
"Clear Data On Wipe": true
}

Your "Chat Avatar" option is set to 0, meaning it'll maintain the Rust default avatar.

zuOeS9RswmIYL8e.png Dana

Your "Chat Avatar" option is set to 0, meaning it'll maintain the Rust default avatar.

Sure, I get that, but why did the previous version pull in Player's avatars when they joined while this one does not any longer? Did you remove that option?

Merged post

In comparing the two versions, in the Welcomer.cs there is a bunch of code now gone that used to pull in Player's Steam avatars.

Examples are:

[JsonProperty(PropertyName = "Chat Icon (SteamID64)")]
public ulong ChatIcon = 0;

[JsonProperty(PropertyName = "Display Players Steam Avatar - Enabled")]
public bool SteamAvatar = true;

SteamAvatar = true,

#region Helpers
private void Broadcast(string message, ulong playerId)
{
Server.Broadcast(message, config.SteamAvatar ? playerId : config.ChatIcon);
}​


Was this code removal, intentional?
nOP9a0LW55pvUkj.png Dana

Your "Chat Avatar" option is set to 0, meaning it'll maintain the Rust default avatar.

Any feedback on the above?

It'll be added back

Following up - is there going to be another update reverting the chat avatars?

The new update will be ready tomorrow.

3wA5dxUXFP7cGrJ.png Dana

The new update will be ready tomorrow.

Thanks for updating, however it's still not pulling in the player's steam avatars after deleting the Data / Lang / Config files, uploading the new Welcomer.cs file, changing the following value:

"Show Player Avatar": true,

Then reloading the plugin and joining the server. I even re-joined to see if it would show but still nothing:

Thanks!

It's working for me when I tested it

Hmm, odd - I just tested on another server and it is working fine now. Going to re-do my steps on the initial server and report back.

Appreciate it!

Merged post

UPDATE: OK we're all good - not sure what happened on the initial server but I'm all set now. Thank you!

Locked automatically