Skip to content
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

spawn and logout point not updating for raft (beds) and when ship moves #76

Open
zolantris opened this issue May 19, 2024 · 1 comment
Labels
enhancement New feature or request Planned Feature A feature that has been planned for future release

Comments

@zolantris
Copy link
Owner

What happened?

Spawn points should update for player when the raft moves. If the player dies while another player is sailing, the player should spawn at that bed.

Steps to reproduce

n/a

Log outputs

n/a

Environment

OS:
- **OS**: Windows 11 | Ubuntu 20.04
- **Graphics**: DX11 (or Vulkan)
Mods:
- **BepInEx**: 5.4.2202
- Jotunn 2.15.2
- **ValheimRAFT**: Major.Minor.Patch
@zolantris zolantris added bug Something isn't working enhancement New feature or request Planned Feature A feature that has been planned for future release and removed bug Something isn't working labels May 19, 2024
@zolantris
Copy link
Owner Author

zolantris commented May 22, 2024

Might have a fix soon. But it's a deep dive. There's both the logout and customs pawn point that need to be tracked.

Problems

  • If the player logs in they need to be put in the boat even if it has moved.
  • But to do that you need data stored, meaning the player needs to store a record about the ship it was on...
  • players do not store information with zdos since they are non persistent and only save their data and reload it on login/logoff.

Possible solutions

  • make the player store data on a ship in the game related to a persistent player ID. If ANY ship zdo contains that I'd on login place the player there.
  • create a logged out list for ships that is a list of all players logged out on a ship.
  • If the logged out players exceeds 30. Clear the list.

@zolantris zolantris changed the title spawn point not updating for raft beds spawn and logout point not updating for raft beds May 22, 2024
@zolantris zolantris changed the title spawn and logout point not updating for raft beds spawn and logout point not updating for raft (beds) and when ship moves May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Planned Feature A feature that has been planned for future release
Projects
None yet
Development

No branches or pull requests

1 participant