azuravian / playnite-LocalInstallButton

Adds button to assist with installing local PC games.
Creative Commons Zero v1.0 Universal
11 stars 7 forks source link

Updates needed #15

Open Koriebonx98 opened 6 months ago

Koriebonx98 commented 6 months ago

1) zip/rar installs: Personally I tend to keep my games as a heavily compressed zip/rar file. If user has install set up to zip/rar use winrar to extract?

2) addon only works if user has set up for a game as follows

Game install path; “D:/Games”

play actions

install: “{InstallDir}\Game Name\setup.exe”

Game Name: “Name of Game” Exe path = “{InstallDir}\Game Name\Game.exe” WorkingDir = “{InstallDir}”

plz fix so user can have “install” as any location user chooses, I don’t want to have it set as “D:/Games/Game Name/Game Name [Repack]” and “D:/Games/Game Name/Game Name” i keep my repacks in a different folder to the game folder separate with “[Repack]

3) More options:

“location of default Install Path” This could be set for default installation of games e.g “D:/Games”

“Drive priority” User sets up multiple install paths with priority list, plugin could then install to drives in order, if drive 1 runs out or doesn’t have enough storage then proceed to next location

4) Play Action: if Game has already been installed before and has a play action leading to exe/ rom ect use that as the exe. If game installs in same Dir as before then use the exe, if user installed to different “Drive:/Games” then Detect what drive letter & Replace in “InstallDir”

azuravian commented 6 months ago

I'll be moving everything to a new repository soon as this is being replaced by a library plugin instead of this general plugin. Comments below:

  1. This is something I had not considered. I will work to implement this prior to launching the new plugin.
  2. I'm not clear on what is being asked here. The current implementation does not require you to install on the same drive as your repack, or other installation media. You can choose to install anywhere you like and when installation is complete the plugin asks for the play executable. It then creates an install path and Play action based on the provided exe.
  3. This is likely not possible due to the different installers used by different games. I don't have a way to interface with each installer to specify the path. This does give me an idea though. I could have the library plugin work to automatically detect installers for games that are not currently in the library using the default path for your installers.
  4. This will not be necessary with the new plugin. The new plugin will handle uninstalls for you. When you use the plugin to uninstall, it will automatically remove the associated play actions, therefore you won't have a game that is uninstalled with a play action pointing to an old install path.
Koriebonx98 commented 6 months ago

1) thank you, it would be a big help.

2) for exmaple if I have “Lego Batman” in playnite and the install path is “D:/Games/Lego Batman” plug in doesn’t work, I have to have install path as “D:/Games” then in play action I have to use “{InstallDir}/Lego Batman/Lego Batman.exe” as the default exe ans then “{InstallDir}/Lego Batman [Repack]/setup.exe” as the install action for it to work as intended? I’m not sure if this is a bug. But I tend to have “Games/Lego Batman” and “Games/Lego Batman [Reoack]” so it’s 2 different folders

3) so it would have a setting for default installer location? That could come in handy.

but if possible to set default dir via repacks that would be a huge help and possibly automate it esp in fullscreen mode.

4) have as an option, I personally like to keep a database of all games for stuff like succes story in playnite. It would be neat if I had game data already there. Like if exe has been set up before then use that exe as play action e.g “{InstallDir}/Name.exe” but check what drive game is installed to and update it in the game path. So keepnplay actions but change the install dir accordingly

azuravian commented 6 months ago

For number 2, this is not how it should work. I do not use actions to store my installers, so I will test and make sure that the new extension works as expected with actions. You should be able to store the installer in any location you like and then install to any location you like, including separate drives.

I will look into 3. Maybe I can set up some sort of default you could use.

  1. I keep all of my games in Playnite as well, whether installed or not, but I only need a play action when they are actively installed.
Koriebonx98 commented 4 months ago

I have made a pluggin that auto adds pc games to playnite.

it searches all drives for a “Games” folder, any folder inside gets added as game. Any exe gets added as playaction. However it doesn’t auto get metadata so user has to do manually.

It does add dups so recommend dup hider & install status addons.

If game exsit in playnite, it uses that game entry instead of making new one (unles dup) and updates the InstallDir.

you could possibly use bits of my pluggin with yours for a smoother outcome?

azuravian commented 1 week ago

Will be shutting down this repository. My plugin is now a Library plugin and is at https://github.com/azuravian/playnite-LocalLibrary

Check it out

Koriebonx98 commented 1 week ago

Here’s my addon if you wanted to get some ideas:

https://github.com/Koriebonx98/Main-Stuff

any chance you could help me with my uninstall button? I’m struggling but close to completing