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.
Legilimens has now been rewritten in C++ to allow for use as a completely standalone executable! It also has filters, automatic save file detection, and much better formatting. Check it out here.
You can also find this tool on Nexus.
- 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)
- 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
There's now a video guide, available here
Legilimens is available both as an executable file for convenience, and as a Python script for those wary of viruses so that you can actually see the code that you're running. Note that you can likely find your save files in C:/Users/<user>/AppData/Local/HogwartsLegacy/Saved/SaveGames/<user_id>/
- Install any version of Python 3. I've only tested it with Python 3.10, but it should work with earlier/later versions as well.
- Download and extract the latest Legilimens Python release. You should end up with
legilimens.py
andcollectibles.json
in the same folder. - Either drag your
.sav
file ontolegilimens.py
, or run the script withpython "<path>/<to>/legilimens.py" "<path>/<to>/<your>/<save>/<file>.sav"
, or just runpython "<path>/<to>/legilimens.py"
and input the path to your.sav
file when prompted.
- Download and extract the latest Legilimens executable release.
- Either drag your
.sav
file ontolegilimens.exe
, or just runlegilimens.exe
and input the path to your.sav
file when prompted.
- First, open the command prompt and navigate to the folder containing
legilimens.exe
orlegilimens.py
by runningcd path/to/legilimens/folder
- Then, you can run
legilimens.exe path/to/your/save/file.sav > output.txt
orpython legilimens.py path/to/your/save/file.sav > output.txt
- Legilimens will write to the file
output.txt
instead. Remember to hit enter for the "Press enter to close this window..." even though it doesn't appear on screen
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 save editor has a fix for it, as does this 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!
- This is almost certainly another bug in the game, and I haven't found anything that indicates it's a problem with Legilimens. This 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 doesn't count towards your total. I don't know if the patch retroactively fixed the problem.
- 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 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 Malin4750@gmail.com, or post the output of Legilimens on Nexus. 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.
- Make sure you've either read the instructions or watched the video guide, and read the FAQ. If you're still having problems, actually describe what's going wrong so I can help you fix it
If you want the convenience of the executable release, while still knowing exactly what code it contains, you easily build it yourself:
- Download the GitHub repository
- Run
pip install cx_Freeze
- Run
python setup.py build
- The folder containing the executable and dependencies should now be located in
build/
- Thanks to 100% Guides, Game Guides Channel, and Lukinator 2321 on Youtube for making the videos that Legilimens links to.
- Thanks to ekaomk, 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 kaivar for creating a fix for the 139/140 conjuration bug and the butterfly bug.
- Thanks to lillaka for not only giving me ideas to improve the mod, but actually implementing those ideas and giving me the code.