DFHack 53.11-r3rc1
[p]This is a prerelease build for final testing![/p][h2]Highlights[/h2][h3]Rework for Steam client compatibility[/h3][p]The overwhelming purpose for this release is to rework DFHack so that it will work seamlessly when installed via Steam. Steam recently changed its client in a way that made our prior method of installing DFHack where DF could "see" it stop working. With a single tiny exception, the entirety of this update is to facilitate being able to install DFHack via Steam with a minimum of user hassle.[/p][h2]Highlights[/h2][p]Rework for Steam client compatibility; Windows console encoding[/p][h3]Rework for Steam client compatibility[/h3][p]The overwhelming purpose for this release is to rework DFHack so that it will work seamlessly when installed via Steam. Steam recently changed its client in a way that made our prior method of installing DFHack where DF could "see" it stop working. With a single tiny exception, the entirety of this update is to facilitate being able to install DFHack via Steam with a minimum of user hassle.[/p][h3]Windows console encoding[/h3][p]Dwarf Fortress recently was updated to force UTF-8 for all interactions with the operating system in Windows; however, this change did not reach to the text console used by DFHack on Windows, which is still defaulting to the user's default system code page. This has caused some anomalous behavior for users whose default system code page is not already UTF-8. This update includes a tiny change that forces this console to also use UTF-8 regardless of the user's default system code page.[/p][h2]Announcements[/h2][h3]Special instructions for this update[/h3][p]One of the side effects of the changes made by the Steam client is that people who were using DFHack before the Steam client change now have a "stranded" installation of DFHack still living in their Dwarf Fortress installation folder. This installation must be removed for DFHack to work correctly going forward. Our installer has code to detect this. On Windows, the user will be asked for permission to remove the legacy installation, while on Linux a popup with instructions on how to remove the legacy installation will be displayed.[/p][p]In addition, for technical reasons, DFHack can no longer completely install itself into Dwarf Fortress solely by installing the app on Steam. As a result, it is now necessary to launch from the DFHack application at least once after installing DFHack so DFHack can install itself into Dwarf Fortress. After this, it should be possible to launch from either Dwarf Fortress or DFHack the same way as before.[/p][p]If you have problems with DFHack not working after installing this update which are not resolved by launching the DFHack application, we recommend the following process:[/p]
- [p]Uninstall DFHack via Steam[/p]
- [p]Remove the following files and folders from the Dwarf Fortress installation folder:[/p]
- [p][c]hack[/c] (entire folder/directory)[/p]
- [p][c]stonesense[/c] (entire folder/directory)[/p]
- [p][c]binpatch.exe[/c] (Windows) / [c]binpatch[/c] (Linux)[/p]
- [p][c]dfhack-run.exe[/c] (Windows) / [c]dfhack-run[/c] (Linux)[/p]
- [p]all files named [c]allegro_*.dll[/c] (Windows) or [c]liballegro_*.so[/c] (Linux)[/p]
- [p][c]dfhack-client.dll[/c] (Windows) / [c]libdfhack-client.so[/c] (Linux)[/p]
- [p][c]dfhooks_dfhack.dll[/c] (Windows) / [c]libdfhooks_dfhack.so[/c] (Linux)[/p]
- [p][c]lua53.dll[/c] (Windows) / [c]liblua53.dll[/c] (Linux)[/p]
- [p][c]protobuf-lite.dll[/c] (Windows) / [c]libprotobuf-lite.so[/c] (Linux)[/p]
- [p]Reinstall DFHack via Steam[/p]
- [p]Launch DFHack once[/p]
- [p]Core: Windows console will always use UTF-8 regardless of system code page settings[/p]
- [p]Steam launcher: Switch to injection strategy, allowing Dwarf Fortress and DFHack to be installed in disparate locations[/p]
- [p]Make DFHack relocatable so that it doesn't depend on being fully co-installed with Dwarf Fortress[/p]