To name raw files, do I pick the filename prefix based on the first tag of the raw?
So a file starting with "[Creature:Jotunn" tag could be named "creature_Jotunn.txt", and a file starting with "[Entity:Jotunn" could be named "entity_Jotunn.txt" and a file starting with "[Plant:Snowbulb" could be named "entity_Snowbulb.txt", right?
These are the filenames I'm using for Arctic Additions at the moment, if anyone wants to double check:
- creature_Arctic_Additions-Animal-Mammoth_Mastodon.txt
- creature_Arctic_Additions-Animal-Mastodon_man.txt
- creature_Arctic_Additions-Animal-Mastodon.txt
- creature_Arctic_Additions-Animal-Woolly_Boar_Giant.txt
- creature_Arctic_Additions-Animal-Woolly_Boar_man.txt
- creature_Arctic_Additions-Animal-Woolly_Boar.txt
- creature_Arctic_Additions-Animal-Woolly_Rhinoceros_Giant.txt
- creature_Arctic_Additions-Animal-Woolly_Rhinoceros_man.txt
- creature_Arctic_Additions-Animal-Woolly_Rhinoceros.txt
- creature_Arctic_Additions-Creature-Jolly_Snowman.txt
- creature_Arctic_Additions-Megabeast-Blizzard_Incarnate.txt
- creature_Arctic_Additions-Monster-Blizzard_Harpy.txt
- creature_Arctic_Additions-Semi-megabeast-Krampus.txt
- creature_Arctic_Additions-Species-Jotunn.txt
- creature_Arctic_Additions-Vermin-Aurora_Fairy.txt
- creature_Arctic_Additions-Vermin-Hotheaded_Borer_Giant.txt
- creature_Arctic_Additions-Vermin-Hotheaded_Borer_man.txt
- creature_Arctic_Additions-Vermin-Hotheaded_Borer.txt
- creature_Arctic_Additions-Vermin-Lemming_Giant.txt
- creature_Arctic_Additions-Vermin-Lemming_man.txt
- creature_Arctic_Additions-Vermin-Lemming.txt
- creature_Arctic_Additions-Vermin-Snowflake_Fairy.txt
- entity_Arctic_Additions-Species-Jotunn.txt
- plant_Arctic_Additions-Grass-Hoarfrost.txt
- plant_Arctic_Additions-Grass-Lichen.txt
- plant_Arctic_Additions-Plant-Icicle.txt
- plant_Arctic_Additions-Plant-Snowbulb.txt
(Jotunn get two files because the author added two bits of code for them.)
Thanks!
The prefix is required, and you can have any suffix you like so long as it is unique. The easiest way to keep it unique is to base it on your mod's name so that it's unlikely to collide with anyone else's work. The name on the first line ought to match the filename, but strictly speaking it will work even if they don't.
In very odd cases, most of which involve creature variations, you might care what order the raws parse. Within a prefix-type, raws are processed in alphabetical order based on the name on the first line. So, if you wanted to make an AERO mod that makes flying variants of a lot of vanilla creatures, you might need to use creature_z_AERO.txt, but in the vast majority of modding situations the name is just for identification.