-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Manually updating via json #453
Comments
~Xenia script General ~ Define the path to the exceptions file$exceptionsFile = "{PlayniteDir}\Emulation\Emulators\Xenia\xenia canary\Achievements\exceptions.txt" First, we need to read the exceptions from the file$exceptions = @{} Now, we can check if an image name is in the exceptionsFunction Get-TitleName ($image_name_no_ext) { $logFile = "{PlayniteDir}\Emulation\Emulators\Xenia\xenia canary\xenia.log" Copy-Item $jsonFile $newJsonFile if (Test-Path $logFile) {
} |
~ Skate 1 - Xenia Script ~ $logFile = "{PlayniteDir}\Emulation\Emulators\Xenia\xenia canary\xenia.log" Copy-Item $jsonFile $newJsonFile if (Test-Path $logFile) {
} |
Ive made custom script that looks in xenia log for all achievements. extracts in txt in sections of "Locked" and "Unlocked"
e.g
Unlocked:
"Looking Good" - 2024-01-01-03
Locked:
"Horder" - Own 5 cars
it also uses {DatabseId}.json copies, edits the copy with info from txt such as what's unlocked and the date and time in the same format as original json, it then replaces orginal.json file keeping same structure and compression
result = it updates json with correct data but doesn't update in playnite unless using playnite gui and manually updating Game data that way.
Script is still early stages and some games Dont work unless static string e.g would need replace {ImageNameNoExt} in script with static string fort some games such as "skate." even if iso or game name is same it don't work unless static string is used
other games work if in "exception.txt" as format followed
"Forza Horizon 2 Presents Fast & Furious" = "FH2: Fast & Furious"
if can update achievement data this way then we can add support for xbox 360 Games via "Xenia"
if also works with xenia can we do it for any emu or game, as long as it points to {DatabaseId}.json?
e,g games that use SSE or Goldberg generate data to json file or txt file with stats ect. cant we uses this?
The text was updated successfully, but these errors were encountered: