Skip to content

Commit

Permalink
profile sync 1.0.1a
Browse files Browse the repository at this point in the history
  • Loading branch information
Kezyma committed Dec 24, 2021
1 parent 35299b0 commit b60350c
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 7 deletions.
2 changes: 1 addition & 1 deletion readme/pluginfinder/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Please note that the plugins found within Plugin Finder are produced and maintai
### [Installation Instructions](https://kezyma.github.io/?p=pluginfinder)

#### Other Plugins
##### [Root Builder](https://www.nexusmods.com/skyrimspecialedition/mods/31720), [Reinstaller](https://www.nexusmods.com/skyrimspecialedition/mods/59292), [Shortcutter](https://www.nexusmods.com/skyrimspecialedition/mods/59827)
##### [Root Builder](https://www.nexusmods.com/skyrimspecialedition/mods/31720), [Reinstaller](https://www.nexusmods.com/skyrimspecialedition/mods/59292), [Shortcutter](https://www.nexusmods.com/skyrimspecialedition/mods/59827), [Curation Club](https://www.nexusmods.com/skyrimspecialedition/mods/60552)
13 changes: 13 additions & 0 deletions readme/profilesync/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Profile Sync
Profile Sync is a plugin for Mod Organizer 2, it allows you to maintain the same mod order (while keeping the enabled/disabled state) across multiple profiles.

Some of the things you can do with Profile Sync:
- Keep your mod order synchronised across multiple profiles.
- Create multiple sync groups to have different sets of profiles with different mod orders.
- Exclude individual profiles that you want to customise and test.
- Save time arranging the same mod in every profile each time you install a new one.

### [Installation Instructions](https://kezyma.github.io/?p=profilesync)

#### Other Plugins
##### [Root Builder](https://www.nexusmods.com/skyrimspecialedition/mods/31720), [Reinstaller](https://www.nexusmods.com/skyrimspecialedition/mods/59292), [Shortcutter](https://www.nexusmods.com/skyrimspecialedition/mods/59827), [Plugin Finder](https://www.nexusmods.com/skyrimspecialedition/mods/59869), [Curation Club](https://www.nexusmods.com/skyrimspecialedition/mods/60552)
5 changes: 5 additions & 0 deletions readme/profilesync/readme.url
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,11
[InternetShortcut]
IDList=
URL=https://kezyma.github.io/?p=profilesync
2 changes: 1 addition & 1 deletion readme/reinstaller/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Some of the things you can do with Reinstaller:
### [Installation Instructions](https://kezyma.github.io/?p=reinstaller)

#### Other Plugins
##### [Root Builder](https://www.nexusmods.com/skyrimspecialedition/mods/31720), [Shortcutter](https://www.nexusmods.com/skyrimspecialedition/mods/59827), [Plugin Finder](https://www.nexusmods.com/skyrimspecialedition/mods/59869)
##### [Root Builder](https://www.nexusmods.com/skyrimspecialedition/mods/31720), [Shortcutter](https://www.nexusmods.com/skyrimspecialedition/mods/59827), [Plugin Finder](https://www.nexusmods.com/skyrimspecialedition/mods/59869), [Curation Club](https://www.nexusmods.com/skyrimspecialedition/mods/60552)
2 changes: 1 addition & 1 deletion readme/rootbuilder/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Some of the things you can do with Root Builder:
### [Installation Instructions](https://kezyma.github.io/?p=rootbuilder)

#### Other Plugins
##### [Reinstaller](https://www.nexusmods.com/skyrimspecialedition/mods/59292), [Shortcutter](https://www.nexusmods.com/skyrimspecialedition/mods/59827), [Plugin Finder](https://www.nexusmods.com/skyrimspecialedition/mods/59869)
##### [Reinstaller](https://www.nexusmods.com/skyrimspecialedition/mods/59292), [Shortcutter](https://www.nexusmods.com/skyrimspecialedition/mods/59827), [Plugin Finder](https://www.nexusmods.com/skyrimspecialedition/mods/59869), [Curation Club](https://www.nexusmods.com/skyrimspecialedition/mods/60552)
2 changes: 1 addition & 1 deletion readme/shortcutter/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Some of the things you can do with Shortcutter:
### [Installation Instructions](https://kezyma.github.io/?p=shortcutter)

#### Other Plugins
##### [Root Builder](https://www.nexusmods.com/skyrimspecialedition/mods/31720), [Reinstaller](https://www.nexusmods.com/skyrimspecialedition/mods/59292), [Plugin Finder](https://www.nexusmods.com/skyrimspecialedition/mods/59869)
##### [Root Builder](https://www.nexusmods.com/skyrimspecialedition/mods/31720), [Reinstaller](https://www.nexusmods.com/skyrimspecialedition/mods/59292), [Plugin Finder](https://www.nexusmods.com/skyrimspecialedition/mods/59869), [Curation Club](https://www.nexusmods.com/skyrimspecialedition/mods/60552)
4 changes: 2 additions & 2 deletions src/profilesync/profilesync.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def addProfileToGroup(self, groupName=str, profileName=str):
if len(groups[groupName]["Profiles"]) == 1:
self.syncToGroup(profileName) # First addition, construct the initial group modlist.
elif len(groups[groupName]["Profiles"]) > 1:
self.syncToProfiles(groupName) # Further additions need to sync immediately.
self.groupToProfile(groupName, profileName) # Just set this to the group order.

def syncToGroup(self, profileName=str):
self.organiser.refresh(True)
Expand Down Expand Up @@ -99,8 +99,8 @@ def syncFromCurrent(self):
self.setGroupModlist(group, modNl)

def groupToProfile(self, groupName=str, profileName=str):
qInfo("Sync from Group " + groupName + " to Profile " + profileName)
if groupName != "":
qInfo("Sync from Group " + groupName + " to Profile " + profileName)
groupList = self.getGroupModlist(groupName)
mods, enabled = self.profileModlist(profileName)
results = []
Expand Down
2 changes: 1 addition & 1 deletion src/profilesync/profilesync_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class ProfileSyncPlugin(SharedPlugin):

def __init__(self):
super().__init__("ProfileSync", "Profile Sync", mobase.VersionInfo(1,0,0, mobase.ReleaseType.ALPHA))
super().__init__("ProfileSync", "Profile Sync", mobase.VersionInfo(1,0,1, mobase.ReleaseType.ALPHA))

def init(self, organiser=mobase.IOrganizer):
self.profilesync = ProfileSync(organiser)
Expand Down

0 comments on commit b60350c

Please sign in to comment.