-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pin commands not working #3
Comments
Same issue here |
Noticed the same thing. Haven't been able to figure out why the data isn't being unpackaged properly. From what I can tell it's still the standard .net BinaryReader, no real changes to the valheim code. Every other field in the RPC package works fine, just not the message :( I will try to put a hack in until I can get a proper fix. |
I put as very unsightly hack in 5af53c0 which "fixed" the problem for me. Need to do more testing tomorrow. If it works for others, I'll cut a new release. |
Nice! Thanks! |
I ran into a similar issue with one of my mods, they made a change to the way messages are packed and I believe you will need to update WebMap.cs to reflect this. From the most recent de-compilation of this.m_nview.InvokeRPC(ZNetView.Everybody, nameof (Say), (object) (int) type, (object) UserInfo.GetLocalUser(), (object) text, (object) PrivilegeManager.GetNetworkUserId()); In the middle there is the change, (I think to support Xbox players) they swapped out sending just the player name with the var package = new ZPackage(data.m_parameters.GetArray());
package.SetPos(0);
int _ = package.ReadInt(); //type of message
var userInfo = new UserInfo();
userInfo.Deserialize(ref package);
string message = package.ReadString() ?? "";
message = message.Trim(); FWIW I noticed no player messages (including pins) show up in the webmap on my server. I think this is the cause. I had the same trouble in another mod (unpacking would fail silently and messages would just be the empty string) until noticing this and unpacking the say messages correctly. |
@ben-bartholomew thank you! Exactly what I needed to see. |
Player chat messages don't seem to be detected, and as a result the pin commands aren't working.
OS: Windows
Version:
WebMap log excerpt:
The text was updated successfully, but these errors were encountered: