h0tw1r3 / valheim-webmap

Live Valheim world map on the web! Server side only BepInEx mod.
MIT License
15 stars 4 forks source link

Wrong position on webmap, y=0 #4

Open kandohar opened 1 year ago

kandohar commented 1 year ago

On the first image, in-game i'm on (3000,-1300), but on the webmap image, everybody stay at y=0 and I appear at (3000,0).

ingame

webmap

h0tw1r3 commented 1 year ago

@kandohar are you using any other plugins (client or server)?

kandohar commented 1 year ago

No, I self host the Valheim server on a Ubuntu Server installed with Steamcmd. I then manually installed BepInEx and your plugin only.

h0tw1r3 commented 1 year ago

I'm running the exact same setup. Could you check the websocket data being received by the browser? I'd like to isolate if the server is sending a 0, or if it's a javascript code issue.

kandohar commented 1 year ago

On the same spot in-game, i got: `players -387667534

97 97 3158,48,-1359,69 000` Using Firefox dev tools. Same visual result on Edge and Chrome.
kandohar commented 1 year ago

And to be more precise, the player marker stay around the 0 line, moving slightly up and down, but sometimes, it jump for a split second to the correct position and then fall back to the 0 line. (EDITED)

h0tw1r3 commented 1 year ago

Cheers! That helps a lot. I'll try to dig into it this weekend