Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Malin001/Legilimens-Hogwarts-Legacy-cpp
Legilimens is a tool to help you find your last few missing collectibles in Hogwarts Legacy and finally get that 100% completion. Now rewritten in C++
https://github.com/Malin001/Legilimens-Hogwarts-Legacy-cpp
Last synced: about 1 month ago
JSON representation
Legilimens is a tool to help you find your last few missing collectibles in Hogwarts Legacy and finally get that 100% completion. Now rewritten in C++
- Host: GitHub
- URL: https://github.com/Malin001/Legilimens-Hogwarts-Legacy-cpp
- Owner: Malin001
- License: mit
- Created: 2023-02-23T00:33:54.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-12T05:09:52.000Z (almost 2 years ago)
- Last Synced: 2024-08-01T21:44:41.474Z (5 months ago)
- Language: C
- Size: 3.77 MB
- Stars: 32
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- starred - Malin001/Legilimens-Hogwarts-Legacy-cpp - Legilimens is a tool to help you find your last few missing collectibles in Hogwarts Legacy and finally get that 100% completion. Now rewritten in C++ (C)
README
# Legilimens
Legilimens is a tool to help you find your last few missing collectibles in Hogwarts Legacy and finally get that 100% completion. All you need to do is run Legilimens with your save file, and it will analyze and return a list of every collectible that you're missing, including a link to a Youtube video with a timestamp showing its location. Legilimens does **not** edit your save file, it only reads the databases contained within it.You can find the old (Python) version of this tool [here](https://github.com/Malin001/Legilimens-Hogwarts-Legacy-Collectible-Finder). You can also find this tool on [Nexus](https://www.nexusmods.com/hogwartslegacy/mods/556).
#### What Legilimens can find:
- Field Guide Pages
- Collection Chests
- Demiguise Statues
- Vivarium Chests
- Butterfly Chests
- Daedalian Keys
- Merlin Trials
- Balloon Sets
- Landing Platforms
- Ancient Magic Hotspots
- Infamous Foes
- "Finishing Touch" achievement enemies (inconsistent)#### What it *can't* find:
- Items that you are *required* to get during a quest. For example, there are two field guide pages that you are forced to pick up during the History of Magic class quest
- Collectible items that can be bought from vendors
- Collectible items that are rewards for completing quests## Usage
There's now a video guide, available [here](https://www.youtube.com/watch?v=wWsCV8JuCGo)Simply run `Legilimens.exe` and follow the prompts on screen. Alternatively, you can drag and drop your save file onto `Legilimens.exe`, or run it from the command line as described below.
#### Running from the command line
The first (optional) positional argument is the path to your .sav file. If you don't provide this, Legilimens will prompt you for it when it runs.You can pass filters to Legilimens to only show certain types of collectibles, using `--filters FILTER1 FILTER2 ...`. The available filters are: ALL, PAGES, CHESTS, DEMIGUISE, DAEDALIAN, MERLIN, ASTRONOMY, LANDING, BALLOONS, HOTSPOT, FOE, ACHIEVEMENTS, TRAITS, CONJURATIONS, WANDS, SORTTYPE. If you don't provide any filters, Legiliments will prompt you for it when it runs
You can remove the `"Press enter to close this window..."` prompt by passing the argument `--dont-confirm-exit` to Legilimens
You can choose where the output file goes with `-o [OUTPUT_FILE]`. It can be a path relative to the folder containing `Legilimens.exe`, or an absolute path
You can also pass `-o` without a file after it to make Legilimens not output to a file at all
Some example commands:
- `Legilimens.exe C:\Users\USER\AppData\Local\HogwartsLegacy\Saved\SaveGames\USERID\HL-00-00.sav --filters ALL` will find every collectible
- `Legilimens.exe C:\Users\USER\AppData\Local\HogwartsLegacy\Saved\SaveGames\USERID\HL-00-00.sav --filters ALL SORTTYPE` will find every collectible and sort them by type instead of location
- `Legilimens.exe --filters PAGES DEMIGUISE` will prompt you for your save file, and then print all of the missing collection chests and demiguise statues
- `Legilimens.exe C:\Users\USER\AppData\Local\HogwartsLegacy\Saved\SaveGames\USERID\HL-00-00.sav --filters ALL -o output.txt` will write the output to `output.txt` in addition to printing it out
- `Legilimens.exe C:\Users\USER\AppData\Local\HogwartsLegacy\Saved\SaveGames\USERID\HL-00-00.sav --filters ALL -o` will only print out the output and won't write it to a file## FAQ
#### Legilimens says I'm missing Butterfly Chest #1, but there aren't any butterflies there and I've already done the "Follow the Butterflies" quest?
- This is a known bug with Hogwarts Legacy, where following any of the other 14 butterflies allows you to complete the quest, which then prevents the intended quest butterflies from ever appearing. [This](https://hogwarts-legacy-save-editor.vercel.app) save editor has a fix for it, as does [this](https://www.nexusmods.com/hogwartslegacy/mods/778) mod, but I haven't tested either one myself and take no responsibility for them, so make sure you backup your save before using them!
#### I'm missing a single conjuration exploration collectible, but Legilimens doesn't detect anything?
- This is almost certainly another [bug in the game](https://hogwartslegacy.bugs.wbgames.com/bug/HL-3868), and I haven't found anything that indicates it's a problem with Legilimens. [This](https://www.nexusmods.com/hogwartslegacy/mods/832) mod has a fix for it, but I haven't tested it myself and take no responsibility for it, so make sure you backup your save before using it!
#### I have 33/34 Field Guide Pages in The Bell Tower Wing, but Legilimens says I've completed them all. Where is it?
- This is a known bug in Hogwarts Legacy that has since been patched, where a certain Bell Tower Wing [flying page](https://youtu.be/KnHZ5gVb_qk&t=104) doesn't count towards your total. I don't know if the patch retroactively fixed the problem.
#### It's detecting the wrong enemies for the "Finishing Touches" achievement
- I did my best to make it as accurate as possible, but achievements are broken in my game, so testing the Finishing Touches achievement is basically impossible. Hopefully it's helpful for a few people though.
#### Legilimens says that I'm missing something that I've already collected, or doesn't detect all of my missing collectibles, or links to the wrong Youtube video/timestamp, or any other error.
- It's likely an error in my code, so open an [issue](https://github.com/Malin001/Legilimens-Hogwarts-Legacy-cpp/issues) on GitHub, and attach your `.sav` file. I'll do my best to figure out what went wrong and fix it as soon as possible. If you don't have a GitHub account, you can also email your save file to me at [email protected], or post the output of Legilimens on [Nexus](https://www.nexusmods.com/hogwartslegacy/mods/556). ***If you don't send me either the save file or output, I won't be able to fix the problem for everyone else.***
#### I'm getting the error "SQLite was unable to read parts of the database", which is preventing me from finishing certain collectibles. How can I fix this?
- For some reason, it's possible for parts of your save file to be corrupted and unreadable by SQLite. Unfortunately, I haven't been able to figure out a fix or workaround yet. Sorry.
#### "It doesn't work"
- Make sure you've either read the instructions or watched the [video guide](https://www.youtube.com/watch?v=wWsCV8JuCGo), and read the FAQ. If you're still having problems, ***actually describe what's going wrong*** so I can help you fix it## Credit
- Thanks to [100% Guides](https://www.youtube.com/@100Guides), [Game Guides Channel](https://www.youtube.com/@GameGuideslolz), and [Lukinator 2321](https://www.youtube.com/@lukinator2321) on Youtube for making the videos that Legilimens links to.
- Thanks to [ekaomk](https://github.com/ekaomk/Hogwarts-Legacy-Save-Editor), whose Hogwarts Legacy Save Editor code I looked at to learn how to read the save files, and who created a fix to the butterfly quest bug.
- Thanks to [p-ranav](https://github.com/p-ranav) for creating the [argparse](https://github.com/p-ranav/argparse) and [tabulate](https://github.com/p-ranav/tabulate) C++ libraries, and [aafulei](https://github.com/aafulei) for creating the [color-console](https://github.com/aafulei/color-console) library.
- Thanks to [kaivar](https://www.nexusmods.com/hogwartslegacy/users/49715466) for creating a fix for the [139/140 conjuration bug](https://www.nexusmods.com/hogwartslegacy/mods/832) and the [butterfly bug](https://www.nexusmods.com/hogwartslegacy/mods/778).
- Thanks to [lillaka](https://www.nexusmods.com/users/2211740) for not only giving me ideas to improve the mod, but actually implementing those ideas and giving me the code.