SL2 Analyzer
Read a FromSoftware .sl2 save and report what is in it
Loading...
Searching...
No Matches
gen_ds1_known_flags.py File Reference

Go to the source code of this file.

Namespaces

namespace  gen_ds1_known_flags
 

Functions

 gen_ds1_known_flags.addressing ()
 Load the group-base and area-index tables out of the addressing CSV.
 
 gen_ds1_known_flags.address (fid, groups, areas)
 Byte offset of a flag's uint32 and the bit mask inside it, or None.
 
 gen_ds1_known_flags.clean (name, fid, category)
 Tidy a display name: drop the trailing id and the category echo.
 
 gen_ds1_known_flags.main ()
 

Variables

 gen_ds1_known_flags.BASE = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 
 gen_ds1_known_flags.ADDRESSING
 
 gen_ds1_known_flags.KNOWN = os.path.join(BASE, "test", "flag_data", "files2", "ds1_known_event_flags.csv")
 
 gen_ds1_known_flags.OUT = os.path.join(BASE, "db_ds1", "known_flags.json")
 
list gen_ds1_known_flags.CATEGORY_ORDER
 The order categories are printed in — roughly the order they matter to a reader, rather than alphabetical.
 
dict gen_ds1_known_flags.EXCLUDE_CATEGORIES = {"Boss Fight"}
 Categories dropped on evidence, not taste.
 
dict gen_ds1_known_flags.PREFIX_STRIP
 Leading text that only repeats the category it is printed under.