shun126 / UE5-DungeonGeneratorDemo

Unleash Limitless Dungeon Exploration with Unreal Engine 5's Plugin. Create custom rulesets and generate efficiently for a unique and immersive experience.
https://www.fab.com/ja/listings/11fce4d9-8996-4323-9aac-9cfacbfb95eb
MIT License
30 stars 6 forks source link

Multiplayer support #5

Closed shun126 closed 6 months ago

shun126 commented 1 year ago

Multiplayer support. Perhaps synchronization of generation by synchronizing random seed. In the case of run-time generation, differences in generation speed can occur, so synchronization of dungeon generation completion may be necessary.

erox455 commented 7 months ago

Not quiet in sync yet...the client runs into invisible walls sometimes. The generation differs partly.

Screenshot 2024-05-06 014912

Screenshot 2024-05-06 014951

erox455 commented 7 months ago

Not quiet in sync yet...the client runs into invisible walls sometimes. The generation differs partly.

But it looks like, it doesn't happen always. I can send you my project if you want.

shun126 commented 7 months ago

Thank you very much.I could not confirm a similar phenomenon locally. If it is possible.Could you please tell me the CRC at the time of the occurrence, the CRC can be found in the properties of the Dungeon Generate Actor.

ありがとうございます。ローカルでは似た現象を確認できませんでした。 もしも可能でしたら。発生時のCRCを教えてください。CRCはDungeon Generate Actor のプロパティで確認できます。

erox455 commented 7 months ago

This one for example:

CRC32: 1945914762 Seed: 1715068645

Screenshot 2024-05-07 100058 Screenshot 2024-05-07 100448 Screenshot 2024-05-07 100427

Screenshot 2024-05-07 101300

erox455 commented 7 months ago

Same seed CRC32: 1537423947

When I detach from the player controller in editor (listen server) I don't see the corridor (same on client), but I can walk it and it renders when I attach to the player controller again. Really strange.

Screenshot 2024-05-07 103549 Screenshot 2024-05-07 104829 Screenshot 2024-05-07 103625 Screenshot 2024-05-07 103654

Same seed but still differs from the first generation: Screenshot 2024-05-07 103142

erox455 commented 6 months ago

Same issue in your/this demo project with my Generator Actor Params: Screenshot 2024-05-08 221905 Screenshot 2024-05-08 221853

shun126 commented 6 months ago

Thank you for providing the CRC. You have helped me understand a little more about the cause.

There was an error in the handling of the random numbers. I also discovered that unordered containers are rarely ordered differently on the server and client.

It will take some time to fix it. Thank you very much.

erox455 commented 6 months ago

Thank you for providing the CRC. You have helped me understand a little more about the cause.

There was an error in the handling of the random numbers. I also discovered that unordered containers are rarely ordered differently on the server and client.

It will take some time to fix it. Thank you very much.

Glad I could help. :)

shun126 commented 6 months ago

Supported in plugin version 1.5.11 プラグインバージョン1.5.11で対応しました