First-Install detection and global.dat replacement
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 45/100
Rechercherichtung
Das Issue beschreibt ein plattformübergreifendes Python-Skript, das Erstinstallationen von Spielen erkennt und globale .dat-Dateien ersetzt. Beginnen Sie mit der Untersuchung der vorhandenen Windows-Batch-Dateien im Repository, um die aktuelle Logik zu verstehen. Überprüfen Sie die verlinkte Datei MGHelper.cs, um zu sehen, wie Unity auf Speicherpfade zugreift. Implementieren Sie für jede Plattform (Windows, Mac DRM-frei, Linux DRM-frei, Steam) die Pfaderkennung und die Logik für Sicherung/Kopieren von Dateien wie angegeben. Das Testen erfordert die Simulation verschiedener Installationszustände.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
I wonder if we should try one suggestion I gave a long time ago, that was supplying our own configuration file during installation. Might be useful at least for the console arcs
For windows
- when any higurashi game is installed, check the %appdata%\Mangagamer\higurashi04 folder (where the last part changes for each game)
- if there exists a
global.dat.backupfile, then this is a re-install/upgrade. Take no action - if there is no
global.dat.backupfile, rename the oldglobal.dattoglobal.dat.backupand copy in the desiredglobal.dat
- if there exists a
For DRM Free mac:
same as above, but use path:
DRM Free Mac version saves to ~/Library/Application Support/unity.MangaGamer.Higurashi When They Cry - Ch.4 Himatsubushi/ but I'd feel better about reading the CFBundleIdentifier from the Info.plist to get that last directory's name. You can use defaults read <full path to Info.plist> CFBundleIdentifier to get this.
For DRM Free Linux:
same as above, but use path:
DRM Free Linux version saves to ~/.config/unity3d/MangaGamer/<full game name> though I don't remember the exact capitalization used for the full game name
For steam linux/mac:
For steam, I would guess Linux will be the same (it's based off a file in the game assets) but for the Mac one, since it sounds like they name the main application bundle differently, the may have changed the bundle identifier too. If someone with the mac steam version could upload the Info.plist files from some of their games (located at gamename.app/Contents/Info.plist) that would be helpful.
Actual code used in the game to access save files
https://github.com/07th-mod/higurashi-assembly/blob/tsumi-mg/Assets.Scripts.Core/MGHelper.cs#L181 idealpersona - "I think the Application class is Unity, so you may have to replace those references with new code according to their docs"
I'm writing this up for when/if we make a cross-platform python script. For now will jsut be implemented by modifying our existing windows only batch files.
NOTE to any other developers: feel free to edit this comment if some of the information is wrong.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 214
- Forks
- 12
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus 07th-mod/python-patcher
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 75/100
07th-mod/python-patcher#214 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
07th-mod/python-patcher#193 ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 75/100
07th-mod/python-patcher#137 ·
-
enhancement help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
07th-mod/python-patcher#83 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
07th-mod/python-patcher#80 · 11 Kommentare ·
Alle Issues in 07th-mod/python-patcher
Ähnliche Issues
-
refactor
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 5 Tagen
-
translation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
ciderapp/translations#87 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
Maintainer antworten meist innerhalb von 1 Tag
-
component: split-view platform: windows
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
zen-browser/desktop#15616 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag