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

Raft prefabs / vanilla prefabs detached from each other, placed randomly with weird rotations after walking far and coming back #125

Open
NaturalBornCamper opened this issue Aug 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@NaturalBornCamper
Copy link

NaturalBornCamper commented Aug 10, 2024

What happened?

When going far away (At least enough to make ships disappear from rendering distance, but farther might be better) then coming back to my ship, a multitude of prefabs (from both ValheimRaft and Vanilla) can be seen detached from the ship in weird positions and angles.

This doesn't seem to happen when loading the game while the ship is within the render distance. Furthermore the prefabs are back in the right position if leaving the game and loading back.

OBSERVATIONS:

  • I have reset my config multiple times
  • Seems to happen less if running a dedicated server, but I'm not sure at all.
  • It looks like the hulls collide with each other, so they get damaged and it gets worse. Tried repairing everything which helps a lot, but the problem still happens again eventually.
  • I don't think it's an issue of "too many prefabs to load" because I started having issues with the first unfinished ship, then tried building a second one in a different way, then a 4rd one in yet another different way.

SCREENSHOTS:
image

image

image

image

image

image

Steps to reproduce

  1. Load attached world
  2. From spawn, go west to the coast, 3 different ships are there using a variety of prefabs from ValheimRaft or Vanilla (problem happens with each, but less with the ship only made of vanilla prefabs)
  3. Already the ships might be all messed up, but if not go far outside of their render area for a long enough time for the garbage collector to do its thing. Might help to go in a dungeon, do other things like kill enemies or cut trees. You can also go far, quit the game, load back then walk to the ships.
  4. Ships will be all messed up. If it didn't happen, a few tries might be needed.

Log outputs

Nothing useful in the logs, but I can add them later if needed, although the attached world is probably the best

Environment

OS:
- **OS**: Windows 10
- **Graphics**: DX11
Mods:
- **BepInEx**: 5.4.2202
- Jotunn 2.20.3
- **ValheimRAFT**: 2.2.4

Files

Config file
World.zip

@NaturalBornCamper NaturalBornCamper added the bug Something isn't working label Aug 10, 2024
@NaturalBornCamper
Copy link
Author

NaturalBornCamper commented Aug 12, 2024

I feel like it might be a problem with the ValheimRaft prefabs loading before the Vanilla prefab. When your ship comes into view, you see the ValheimRaft prefabs loading first, then the boat sways a bit and the rest of the prefabs appears. Then they collide and smash between each other, they get damaged and it gets worse and worse with time:

Valheim.2024.08.11.-.23.09.25.203.DVR.mp4

As you can see in the video, it looks like the ValheimRaft Prefabs are unmoving, while the Vanilla prefabs are moving

@soulscythe
Copy link

Hi, just dropping in to mention I'm seeing the same problem. Seems like generally the Raft prefabs become un-linked from the physics object, becoming static.

Weirdly, making no changes to the ship or it's parts and just saving and re-loading the game after returning to the ship seems to have put everything back in the right place, and physics are behaving normally again. So maybe there is some difference to the loading logic when loading a saved game versus loading things as they come into view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants