sweetgiorni / AnyPortal

A Valheim mod for more flexible portals
Do What The F*ck You Want To Public License
17 stars 11 forks source link

Clients lose all portals on log out #19

Open Chronokill opened 3 years ago

Chronokill commented 3 years ago

Running a ~4 man server and just unlocked portals. They work at first, but when a client logs off and back on, any portals that are not near a person (perhaps unloaded) are forgotten.

jamesbyo commented 2 years ago

Confirmed on a 3 man server but only with some sort of network mod enabled on the server, in our case BetterNetworking, but there was another one that did it too. The only portals that save are where players have their spawn set. Removed the network mod and it all came back.

Berkajerk commented 2 years ago

Same problem.

No mods loaded on dedicated server. AnyPortal removed from local client and connected portals on lost on logout.

Edit: Rebooting the dedicated server and then rebuilding the portal seems to have fixed the issue. Unsure if every player will need to.

SauceyGit commented 2 years ago

This is happening today, as of patch 0.208.1. Last night, all portals were working and could be selected as a destination. This morning, after taking version 0.208.1 of the client and updating the dedicated server, the drop-down was completely blank.

If you walk over to where another portal is located, the game will see that portal in the drop-down again, but if you select that destination, it'll reset after a second.

https://youtu.be/ND95DnArr9s

Athrunen commented 2 years ago

@SauceyGit have you tried https://github.com/sweetgiorni/AnyPortal/issues/18#issuecomment-1001745253 ?

SauceyGit commented 2 years ago

@Athrunen does that need to be on both the client and server? Just updating the server actually wiped all the portals from the list, which were in the above video.

edit: no luck on server-side only. no luck with client and server using that .dll.

I was originally using the thundertstore upload by Tjs1000, then tried using "anyportalfix" by Augie.

Did IG change something that the mod is using to find and link these entries in the recent patch?

Athrunen commented 2 years ago

If definitely should be on the server, but the patch shouldn't affect the client.

But if you use the fix by Augie that should be the correct version.

They might have changed something but I currently don't have Valheim installed, so I can't check.

SauceyGit commented 2 years ago

image Not sure if it helps, but when trying to interact with a portal, the following is showing in the BepInEx log.

  1. Press E to open AnyPortal menu
  2. Observe the destination is "None"
  3. Select destination.
  4. Portal fires up.
  5. Portal dies down.
  6. Destination reverts to "None"

You have to move really quickly between setting a destination and moving through the portal to actually go through it, or it deactivates the destination before you pass through. Last night, we had a lot of portals accidentally get renamed to "W" and "WA" 🤣

Athrunen commented 2 years ago

Sorry, only saw this now.

But yeah, either something changed somewhere in ZDOMan i.e the networking or they changed something in TeleportWorld i.e the actual teleport.

Alternatively, the location for the game's own portal connection could have changed and is interfering(because the patch to deactivate it failed), but I would need to see a full log to know that.