Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exported.json in mod export - identifying mod information #346

Closed
MattMills opened this issue Mar 19, 2022 · 4 comments
Closed

exported.json in mod export - identifying mod information #346

MattMills opened this issue Mar 19, 2022 · 4 comments
Labels
feature New feature or request
Milestone

Comments

@MattMills
Copy link

Is your feature request related to a problem? Please describe.
Could you please add mod identifiers to the exported.json exported mod information such that the list of mods could be resolved back to original steam mod IDs (or other mod ID, where available)?

Describe the solution you'd like
I'd like to be able to automatically identify user mods by looking at the JSON data, and correlating them against steam mod listings.

Describe alternatives you've considered
I suppose it may be possible to look at the descriptor.mod in each individual mod file and use the remote file ID data from there, but that would require decompressing a lot more data to get to them.

Additional context
Only that I'm hoping to do so from a client side javascript web-app.

@MattMills MattMills added the feature New feature or request label Mar 19, 2022
@bcssov bcssov added this to the vNext milestone Mar 20, 2022
@bcssov
Copy link
Owner

bcssov commented Mar 20, 2022

The current spec is something like this:
Game: Used to determine which game this export belongs to.
IsSelected: Not used
MergedFolderName: Parent merged mod name which is used by Irony internally to offer a prompt to delete the whole folder
ModNames: Not used by Irony I think but some people use it to see mod names.
Mods: Used actually by Irony to match imported mods.
Name: Collection name
PatchModEnabled: Indicates whether the patch should be enabled by default during the import

So given the current spec the easiest way would be to just add something like ModIds with object information ex.

ModIds: [
	{ SteamId: id, ParadoxId: null }
]

The proper way would be to of course ditch all of these fields and just rework Mods field containing all the information but that would be a breaking change which would make lots of users angry. On the other hand I could detect maybe spec format but that would also be a pain... I'll think about it some more for future versions.

@MattMills
Copy link
Author

I'm fine with however you want to do it, thanks though!

@bcssov
Copy link
Owner

bcssov commented Jul 9, 2022

Will add additional line in the exported.json (easier for me)

@bcssov bcssov modified the milestones: vNext, v1.22 Jul 9, 2022
@bcssov bcssov closed this as completed Jul 12, 2022
@MattMills
Copy link
Author

<3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants