First-Install detection and global.dat replacement
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
L'issue descrive uno script Python multipiattaforma per rilevare le prime installazioni dei giochi e sostituire i file global.dat. Inizia esaminando i file batch di Windows esistenti nel repository per comprendere la logica attuale. Rivedi il file MGHelper.cs collegato per vedere come Unity accede ai percorsi di salvataggio. Per ciascuna piattaforma (Windows, Mac senza DRM, Linux senza DRM, Steam), implementa il rilevamento del percorso e la logica di backup/copia dei file come specificato. I test richiederanno la simulazione di diversi stati di installazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- JavaScript
- Stelle
- 214
- Fork
- 12
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di 07th-mod/python-patcher
-
SSL/TLS Errors Index PageAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
07th-mod/python-patcher#214 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
07th-mod/python-patcher#193 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
07th-mod/python-patcher#137 ·
-
enhancement help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
07th-mod/python-patcher#83 ·
-
Missing cert on Fedora LinuxAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
07th-mod/python-patcher#80 · 11 commenti ·
Tutte le issue di 07th-mod/python-patcher
Issue simili
-
Add: Digi 4K LogoApertacheck:passed logos:add
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
component/administration domain/framework needs-triage Platform(Default) priority/low
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
semantic-release/gitlab#1032 ·
-
agent/guide documentation hive/hosted-available-lke648397-260827-5n31
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
I maintainer di solito rispondono entro 1 giorno
-
[aw] Upgrade availableApertaagentic-workflows
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
githubnext/gh-aw-workshop#3933 ·
I maintainer di solito rispondono entro 2 giorni