Mudlet / Mudlet

⚔️ A cross-platform, open source, and super fast MUD client with scripting in Lua
https://mudlet.org
GNU General Public License v2.0
732 stars 267 forks source link

Duplication of module contents after saving with module running on multiple loaded profiles #7484

Open techjoec opened 1 week ago

techjoec commented 1 week ago

Brief summary of issue / Description of requested feature:

If I have 8 profiles open, and all use 3 common modules via Module Manager, often changes from one profile will cause all others to duplicate their module contents. Note that only one module is flagged to sync currently (save to disk) however if I mark the others to Sync they will often write the module file back to disk including the duplication.

Steps to reproduce the issue / Reasons for adding feature:

  1. Load 8 profiles with the same module. Profile1 Sync on, the rest Sync off
  2. Make some changes to some triggers in a trigger group of that module, move things, whatever. Save Profile, close editor.
  3. Swap around the other profiles and test a trigger. Often you will find the triggers are firing 2,3,4+ times from Profiles2-8. NOTE: Profile1 won't have the duplication.

Error output / Expected result of feature

No duplication when profiles2-8 reload the module.

Extra information, such as the Mudlet version, operating system and ideas for how to solve / implement:

Win64, test snapshot but this has happened since before 4.18 as well.

ZookaOnGit commented 1 week ago

Discord thread with images; https://discord.com/channels/283581582550237184/283582068334526464/1296363091818450954

techjoec commented 1 week ago

image

example after a few saves