Ismoh / NoitaMP

WIP! Not working, atm! NoitaMP, Noita Multiplayer: First synchronous multiplayer mod for Noita!
GNU General Public License v3.0
116 stars 12 forks source link

World synchronisation :rage4: #39

Open Ismoh opened 2 years ago

Ismoh commented 2 years ago

The most valuable issue of all issues 😞

We could use a research for beeing able to sync the world. Atm the world is synced by quitting the game, because the world is saved to disc and can be sent as a zip/archive by network.

@willjallen already had a quick look in memory to get the world shown and inside the camera bounds. Any news on that?

Do you have any ideas or suggestions to investigate research? @shebpamm @DevonX

I also had the idea to read all world files (which are binary files) in lua and sent simply the content to the clients, but I am not sure if the clients will read those files whenever those are changed. This might be an idea to investigate time.

Volunteers? Or question to this? Feel free to add comments :)

Ismoh commented 2 years ago

There is a lua file watcher, with this tool we can get the selected save slot. The save slot isnt accessible by the Noita API. Check the latest file changed date and time to find the selected save folder.

https://github.com/EvandroLG/lua-watcher

Ismoh commented 2 years ago

There is a lua file watcher, with this tool we can get the selected save slot. The save slot isnt accessible by the Noita API. Check the latest file changed date and time to find the selected save folder.

https://github.com/EvandroLG/lua-watcher

This might be also interested for checking changed world files.

Ismoh commented 1 year ago

Keep #70 in mind, when working on this!

Ismoh commented 1 year ago

Thanks to @dextercd for his awesome tool/mod, being able to achieve this! https://github.com/dextercd/Noita-Synchronise-Expansive-Worlds

Ismoh commented 11 months ago

Create a PR into #67 when done, because I'll soon merge #67 into this branch.