Skip to content

Legilimens is a tool to help you find your last few missing collectibles in Hogwarts Legacy and finally get that 100% completion. Works with field guide pages, collection chests, demiguise statues, vivarium chests, butterfly chests, daedalian keys, merlin trials, balloon sets, landing platforms, ancient magic hotspots, and infamous foes.

License

Malin001/Legilimens-Hogwarts-Legacy-Collectible-Finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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.

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

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>/

How to use the Python script:

  1. 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.
  2. Download and extract the latest Legilimens Python release. You should end up with legilimens.py and collectibles.json in the same folder.
  3. Either drag your .sav file onto legilimens.py, or run the script with python "<path>/<to>/legilimens.py" "<path>/<to>/<your>/<save>/<file>.sav", or just run python "<path>/<to>/legilimens.py" and input the path to your .sav file when prompted.

How to use the executable:

  1. Download and extract the latest Legilimens executable release.
  2. Either drag your .sav file onto legilimens.exe, or just run legilimens.exe and input the path to your .sav file when prompted.

How to output to a text file

  1. First, open the command prompt and navigate to the folder containing legilimens.exe or legilimens.py by running cd path/to/legilimens/folder
  2. Then, you can run legilimens.exe path/to/your/save/file.sav > output.txt or python legilimens.py path/to/your/save/file.sav > output.txt
  3. 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

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 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!

I'm missing a single conjuration exploration collectible, but Legilimens doesn't detect anything?

  • 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.

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 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.

"It doesn't work"

  • 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

Building your own executable

If you want the convenience of the executable release, while still knowing exactly what code it contains, you easily build it yourself:

  1. Download the GitHub repository
  2. Run pip install cx_Freeze
  3. Run python setup.py build
  4. The folder containing the executable and dependencies should now be located in build/

Credit

  • 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.

About

Legilimens is a tool to help you find your last few missing collectibles in Hogwarts Legacy and finally get that 100% completion. Works with field guide pages, collection chests, demiguise statues, vivarium chests, butterfly chests, daedalian keys, merlin trials, balloon sets, landing platforms, ancient magic hotspots, and infamous foes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages