Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- First, follow these steps:
- 1. Open HOI4 launcher
- 2. Go to mods
- 3. Open mod tools
- 4. Create new mod
- 5. Fill in the prompts
- 6. Go to documents/paradox interactive/Hearts of Iron IV/mod/MY_NEW_MOD
- 7. Create these new folders:
- MY_NEW_MOD/common/units/names_ships
- MY_NEW_MOD/localisation
- 8. Go to MY_NEW_MOD/common/units/names_ships and create a file called "TAG_ship_names.txt" where TAG is to be replaced with the tag of your country.
- 9. Go to MY_NEW_MOD/localisation and create a file called "TAG_ship_names_l_english.yml" where TAG is to be replaced with the tag of your country.
- ##### TAG_ship_names.txt #####
- ### This is an example, read below for the details. All the way at the bottom will be a completed example.
- TAG_NAME_LIST = {
- name = NAME_THEME_NAME_LIST
- for_countries = { TAG }
- can_use = {
- not = { has_government = communism }
- }
- type = ship
- ship_types = { ship_hull_submarine submarine ship_hull_light destroyer ship_hull_cruiser light_cruiser heavy_cruiser ship_hull_heavy battle_cruiser battleship ship_hull_carrier carrier }
- prefix = "Prfx. "
- fallback_name = "Prfx. Generic Name %d"
- unique = {
- "First Name" "Second Name" "Third Name"
- }
- }
- #####
- ### TAG_NAME_LIST = { ... }
- ### this is the system's name for the name list, this must be unique. Usually it is named after the country tag, followed by the name lists name.
- ### name = ...
- ### This is used for localization, which is a separate file.
- ### for_countries = { ... }
- ### Which countries can use this name list, can include multiple tags (a tag is a three letter code for a country).
- ### can_use = { ... }
- ### Use this to deny or allow the use of this name list in certain situations, in this case this name list can NOT be used when you are communist.
- ### Type = ship
- ### what type of equipment you're making this for.
- ### ship_types = { ... }
- ### which types of ship you want the name list to be used for, all of the types are listed in the example. Remove this if you want it
- ### prefix = "..."
- ### whatever shows up in front of the names, like "HMS" for british ships, "Hr.Ms." for Dutch, "USS" for the USA, etc.
- ### fallback_name = "..."
- ### When all the names have been used up it will resort to using this name, if you want to use numbers, use "%d" for numbers (1, 2, 3, etc.) and "%s" for roman numerals (I, II, III, IV, V, etc.). if you use a prefix, make sure it's added here as well.
- ### unique = { "..." "..." "..." }
- ### here is where all your names go, your set prefix isn't needed here.
- ### this is for 1 name list, repeat the process for any additional name lists.
- ##### finished example #####
- HOL_FISH_SUB = {
- name = HOL_NAME_THEME_FISH_SUB
- for_countries = { HOL }
- type = ship
- ship_types = { ship_hull_submarine submarine }
- prefix = "Hr.Ms. "
- fallback_name = "Hr.Ms. Onderzeeboot %d"
- unique = {
- "Dolfijn" "Zeehond" "Zwaardvis" "Tijgerhaai" "Walrus" "Zeeleeuw" "Potvis" "Tonijn" "Bruinvis" "Hamerhaai" "Orca" "Walvis" "Platvis" "Barracuda" "Octopus" "Leeuwvis" "Zeeslang" "Kogelvis" "Aal" "Steenvis" "Hengelvis" "Rog" "Murenen" "Vinvis"
- }
- }
- ##### TAG_ship_names_l_english.yml #####
- ### .yml files can easily be edited with any text editing software, like notepad.
- l_english:
- TAG_NAME_THEME_FIRST_NAME_LIST:0 "First Name List"
- TAG_NAME_THEME_SECOND_NAME_LIST:0 "Second Name List"
- TAG_NAME_THEME_THIRD_NAME_LIST:0 "Third Name List"
- TAG_NAME_THEME_FOURTH_NAME_LIST:0 "Fourth Name List"
- TAG_NAME_THEME_FIFTH_NAME_LIST:0 "Fifth Name List"
- ### These are used to give your name lists their name in different languages, but in this example I'll just use English. use the "name = ..." from your name list followed by ":0 "..."". if I were to use the finished example above, it would look like this:
- l_english:
- HOL_NAME_THEME_FISH_SUB:0 "Fish (submarines)"
- ### Repeat this for every name list you add and remember to test your mod :).
Advertisement
Add Comment
Please, Sign In to add comment