Comments (4)
I've spent a little time looking at nile and legendary. Seems like Epic store manifest data in flat (*item) files, which are relatively straight forward to update based on a shift in game location. AG however, use sqlite files to store library data. The below seems to be the target file to update. I could probably make a PR to add this functionality if there is interest. If not, I'll just write something quick and dirty for my own needs.
%localappdata%\Amazon Games\Data\Games\Sql\GameInstallInfo.sqlite
from nile.
This functionality is simple, just make nile move the game directory to desired location and update metadata in installed.json
from nile.
So, my focus was a little more around keeping AG launcher updated with the current install location, rather than nile (which might be out of scope for what you're doing here).
It's still straightforward, and I wrote + tested something last night which achieves my need by offering a pretty simple cli to select installed games, move them to a different location, and update Amazons sqlite stored info accordingly. See example drop of code below. But perhaps a better way to handle this would be to just update nile's installed.json, and focus on developing out some kind of resync functionality between nile and AG launcher? Similar to what legendary offers. What would you prefer?
DATABASE_PATH = os.path.expanduser(os.path.join("~", "AppData", "Local", "Amazon Games", "Data", "Games", "Sql", "GameInstallInfo.sqlite"))
conn = sqlite3.connect(DATABASE_PATH)
cursor = conn.cursor()
cursor.execute("UPDATE DbSet SET InstallDirectory = ? WHERE ProductAsin = ?", (new_install_game_dir, game_id))
conn.commit()
conn.close()
from nile.
It feels best to have it as separate sync feature like legendary
from nile.
Related Issues (20)
- Missing file sds-proto2.proto in the repo HOT 2
- Mint 21 Python error HOT 2
- Not able to install on Linux Mint 21. HOT 6
- black screen when log in auth HOT 4
- No suitable graphics backend found HOT 2
- Not really an issue just wanting help, is there anyway to change where the games are installed? I'd like to install them to an external hard drive HOT 2
- How install games? HOT 2
- qurl error trying to run HOT 4
- Nile not opening a browser tab on auth HOT 1
- FuelPump DRM HOT 6
- Debian Sid packages HOT 12
- Steam Deck - Failed to load module "canberra-gtk-module" HOT 2
- JSON error when launching installed game HOT 4
- Non-interactive login support HOT 2
- UNINSTALL misspelled HOT 1
- Game doesn't launch on Linux when fuel.json Command contains back-slashes HOT 6
- Running on a native windows machine HOT 3
- SSL: CERTIFICATE_VERIFY_FAILED during install HOT 1
- Is it possible to get a log file when installing a game with nine? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nile.