r/unrealengine • u/A_K_I_M_B_O • 23d ago
Player Character freezes/disappears/teleports after moving a certain distance in World Partition level Solved
I'm trying to make a world partitioned level, but I've noticed that the player character starts breaking down once I move a certain distance. The landscape is made from an imported heightmap. The character often teleports, freezes (but retains some control), and disappears. All of these happen in the video! This only happens on world partition, I've tried the same map without wp and this doesn't happen.
SOLVED: Fixed it. Very dumb issue. In world settings there's a setting that overrides game mode. If you enable it you don't need to place a player character in the world, because the game mode will automatically spawn one wherever your lever editor location is. If you place one and set it as player 0 you will spawn two characters, but the world partition will be built around the one you aren't controlling. Therefore if you move too far away from the "zombie" character you will enter unloaded areas and disappear.
1
u/nomadgamedev 23d ago
either it's an issue with your landscape or you're hitting the world bounds and run into floating point errors. the max recommended size is 21km² i believe.
In UE5 you can use Large World Coordinates to get around that, which extends the limit to millions of km like our solar system
1
u/A_K_I_M_B_O 23d ago edited 23d ago
Then it has to be the landscape, given that my landscape is around 2km2. But again, I don't know why it only happens with world partition.
1
u/nomadgamedev 23d ago
which version are you on? I believe I had a similar issue in 5.3 a while ago. It was an engine bug that would cause world partition collisions to fail after a while. I believe it's fixed in 5.4
1
u/A_K_I_M_B_O 23d ago
5.5.1 Now I believe it probably has something to do with world bounds, because when I spawn close to the edges the character doesn't even load. Do you know if there's a setting that changes bounds? As I've said, my world is pretty small, so I don't think I'm hitting the WP limit.
1
u/nomadgamedev 23d ago
hard to say, i don't work enough on level creation. I'd check the collision of landscape tiles, and the collision view modes in the editor too.
could also be your movement system, i believe you're using ALS? Is it the same with flying movement or a regular third person character?
world partition has a command to view the current state of cells while playing
1
u/A_K_I_M_B_O 23d ago
Fixed it. Very dumb issue. In world settings there's a setting that overrides game mode. If you enable it you don't need to place a player character in the world, because the game mode will automatically spawn one wherever your lever editor location is. If you place one and set it as player 0 you will spawn two characters, but the world partition will be built around the one you aren't controlling. Therefore if you move too far away from the "zombie" character you will enter unloaded areas and disappear.
1
1
u/AutoModerator 23d ago
If you are looking for help, don‘t forget to check out the official Unreal Engine forums or Unreal Slackers for a community run discord server!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.