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

Is there any way to convert the exported (and modified) JSON file back to appinfo.vdf? #6

Closed
gitacct5 opened this issue Jan 23, 2023 · 4 comments
Labels
stale This issue or pull request has no recent interaction

Comments

@gitacct5
Copy link

Not sure if this is something easy to implement...

@Grub4K
Copy link
Owner

Grub4K commented Jan 23, 2023

The JSON does not retain the type information (eg. color, integer type, ...). If you suggest a way of retaining that information through JSON then I can implement it.

What is your usecase, just changing existing values or adding/removing values? In the first case the type can be guessed from the type of the original value in the vdf. For adding values I have no idea on how to reliably convert values to their underlying type.

@gitacct5
Copy link
Author

Just thinking here (not sure if it's feasible), maybe the program can output 2 paired JSON files with the same structure, one has the value, and the other has the type informaiton?

I was initially looking for a way to change app names, remove localization info, etc. I know tools like SteamEdit has similar features, but for batch-editing, JSON is way easier to read and manipulate than a binary file.

@Grub4K
Copy link
Owner

Grub4K commented Jan 24, 2023

Outputting two json files seems reasonable, just remember you would have to edit both to make it work. Do you have a specific format for each data type in mind (like string values, numeric values, etc)?

I will prepare the commandline to support this with switches to read from and write to specified destinations. If you dont have specific ideas in mind allow me some time to come up with a solid solution on my own.

@gitacct5
Copy link
Author

Don't have a data type format in mind but I'll think about it... Thank you for considering!

@Grub4K Grub4K added the stale This issue or pull request has no recent interaction label Nov 28, 2023
@Grub4K Grub4K closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale This issue or pull request has no recent interaction
Projects
None yet
Development

No branches or pull requests

2 participants