Open Xymanek opened 5 years ago
This would be cool. Detecting/checking the folder and copying the files shouldn't be a problem, but there is obviously a bit more involved.
How this could be implemented:
Did I forget something? Suggestions?
Other considerations:
Alternative: An alternative to all that would be to provide a customized installer. The installer could then provide choices to
This would probably be a much better experience for "normal" users. But that is out of my expertise, I don't have experience creating installers apart from the (pretty limited) visual studio installer project.
Does not exist: Ask the user if he wants to replace the original launcher (never ask again option/setting). If user chooses yes, copy files (backup original launcher) and show result/info. Maybe close AML and re-start through steam.
This is malware behaviour (replace legitimate executable with another) and is likely to be flagged as such by user's AV heuristics.
Maybe some notification?
Its probably a valid point, but I am really not sure if that will be a problem. I suppose that would be something to assess during beta-testing. I expect the launcher to require admin privileges to have the required write permissions. What do yo mean with "Maybe some notification?"?
What do yo mean with "Maybe some notification?"?
Mention somewhere that AML is doing this. Otherwise I'd expect a deluge of "Is this a virus?" posts here, on Steam, on Reddit... I'm sure there will be anyway, but at least mentioning it somewhere beyond the change log means some people would read it.
What do yo mean with "Maybe some notification?"?
Mention somewhere that AML is doing this. Otherwise I'd expect a deluge of "Is this a virus?" posts here, on Steam, on Reddit... I'm sure there will be anyway, but at least mentioning it somewhere beyond the change log means some people would read it.
Of course we should notify the user, but I already suggested to do that. You even quoted me on that part:
Ask the user if he wants to replace the original launcher (never ask again option/setting). If user chooses yes, copy files (backup original launcher) and show result/info.
Following the 21/05/2021 launcher update for xcom 2, this method still works, albeit done slightly differently:
Steam\steamapps\common\XCOM 2\Launcher
launcher.exe
(+ .pdb
+ .exe.config
)settings.json
location is now in the same folder as the exe (previously it was in the game root)Following the 21/05/2021 launcher update for xcom 2, this method still works, albeit done slightly differently:
- The directory for binaries is now
Steam\steamapps\common\XCOM 2\Launcher
- The exe name is now
launcher.exe
(+.pdb
+.exe.config
)- The
settings.json
location is now in the same folder as the exe (previously it was in the game root)
Thanks for your help but I just tried this and it doesn't work, it still uses the 2k launcher. I think the 2k launcher was just updated again today 26/05/2021 and possibly now launches in the "2kLauncher" folder from "Launcher.json" so I'm not sure how to use this same logic to bypass it.
18 and #42 can be easily fixed, with the small caveat that the application must be launched from steam (which seems like a perquisite for steam to do its controller trickery). 3 things are required for that to work:
1) Copy the binaries over to
Steam\steamapps\common\XCOM 2\Binaries\Win64\Launcher
2) Rename the exe to match the vanilla one (ModLauncherWPF.exe
) 3) Move thesettings.json
toC:\Steam\steamapps\common\XCOM 2
(since that's the working directory that steam uses)Then when launching the "game" from steam, AML will be used with same configs as before. Furthermore, when launching the actual game from AML, the controller stuff will properly work (tested by me and Mr. Nice for many a month)