Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

deal with steam deployment isolation

Aperta
#5,719 2 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp
Ambito
desktop, devtools

Direzione di ricerca

The issue describes changes to the DFHack launcher and dfhooks, including dfhooks.ini, but names no source files or tests. Start by locating the launcher and dfhooks entry points and tracing how they find the game and load DFHack. Done means supporting separate Steam install folders, the stated backward compatibility, and deferred hook updates after DF exits; the issue has had no comment for over 180 days.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

We've been getting reports that the beta version of the Steam client is installing DFHack in a folder labeled "Dwarf Fortress 2346660" instead of in "Dwarf Fortress", which is breaking the way that we make our dfhooks library visible to Dwarf Fortress

After some discussion on discord the following approach seems to me to be the best method for dealing with this:

  • Let Steam install DFHack wherever it likes
  • The DFHack launcher will, each time it is launched, locate the DF installation and if necessarily push dfhooks.dll/dfhooks.ld.so into that folder, along with a dfhooks.ini that contains the path of the DFHack installation
  • dfhooks will be modified to read this dfhooks.ini and use it to locate dfhack.dll/dfhack.ld.so and load it. This location will also be passed to the dfhack initialization and will be used as the dfhack app root folder location.
  • If the launcher is being launched in "show-activity" mode (because the game was launched from DF, not from DFHack) it will check to see if an update to dfhooks.dll is needed and will schedule that update after DF exits (to avoid a locked file conflict) when needed

Backward compatibility:

  • If dfhooks.ini is missing assume DFHack is installed in the same folder as DF
  • If the parameter for passing the dfhack root folder to dfhack.dll is missing, assume DFHack is installed in the current working directory
Lingua principale
C++
Stelle
2.1k
Fork
509
Merge medio
2g 19h
PR unite (30g)
25

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DFHack/dfhack

Tutte le issue di DFHack/dfhack

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.