Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Extraction Guide #1

Open
TomislavTom opened this issue Feb 4, 2019 · 0 comments
Open

Extraction Guide #1

TomislavTom opened this issue Feb 4, 2019 · 0 comments

Comments

@TomislavTom
Copy link

TomislavTom commented Feb 4, 2019

IDK if this is usefull for you but I made this RegEx guide for new cultures.

###########################################################################
# How to use the localisations of an existing culture for a new culture:
# by TheDovahkiin97
###########################################################################
# First Google what RegEx is and how you can use its expressions in your Text Editor
###########################################################################
# 1. Copy the main file from MCN mod.
# 2. Find all unused baronies and comments with:
# (?:\#)(?:.*)
# 3. Select all occasions with Ctrl + Shift + L (in VSC)
# 4. Delete with DEL + DEL
# 5. Find everything your culture does not use with: (you have to replace every "serbian" with your desired source culture)
# (?:(?:(?:(?:(?:\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ b_)(?:.*)(?:\ \=\ \{))|(?:(?:\ \ \ \ \ \ \ \ \ \ \ \ c_)(?:.*)(?:\ \=\ \{))|(?:(?:\ \ \ \ \ \ \ \ d_)(?:.*)(?:\ \=\ \{))|(?:(?:\ \ \ \ k_)(?:.*)(?:\ \=\ \{))|(?:(?:e_)(?:.*)(?:\ \=\ \{)))))|(?:(?:(?:(?:(?:\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ serbian\ \=\ \")(?:.*)(?:\"))|(?:(?:\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ serbian\ \=\ \")(?:.*)(?:\"))|(?:(?:\ \ \ \ \ \ \ \ \ \ \ \ serbian\ \=\ \")(?:.*)(?:\"))|(?:(?:\ \ \ \ \ \ \ \ serbian\ \=\ \")(?:.*)(?:\"))|(?:(?:\ \ \ \ serbian\ \=\ \")(?:.*)(?:\")))))|(?:(?:(?:(?:(?:\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \}))|(?:(?:\ \ \ \ \ \ \ \ \ \ \ \ \}))|(?:(?:\ \ \ \ \ \ \ \ \}))|(?:(?:\ \ \ \ \}))|(?:(?:\})))))
# 6. Select all occasions with Ctrl + Shift + L (in VSC)
# 7. Copy everything with Ctrl + C
# 8. Select everything with Ctrl + A
# 9. Paste your copy with Ctrl + V
# 10. Find all baronies your culture does not use with:
# (?:\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ b_)(?:.*)(?:\ \=\ \{)(?:(?:\n)|(?:\r\n))(?:\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \})
# 11. Select all occasions with Ctrl + Shift + L (in VSC)
# 12. Delete with DEL + DEL
# 13. Find all counties your culture does not use with:
# (?:\ \ \ \ \ \ \ \ \ \ \ \ c_)(?:.*)(?:\ \=\ \{)(?:(?:\n)|(?:\r\n))(?:\ \ \ \ \ \ \ \ \ \ \ \ \})
# 14. Select all occasions with Ctrl + Shift + L (in VSC)
# 15. Delete with DEL + DEL
# 16. Find all duchies your culture does not use with:
# (?:\ \ \ \ \ \ \ \ d_)(?:.*)(?:\ \=\ \{)(?:(?:\n)|(?:\r\n))(?:\ \ \ \ \ \ \ \ \})
# 17. Select all occasions with Ctrl + Shift + L (in VSC)
# 18. Delete with DEL + DEL
# 19. Find all kingdoms your culture does not use with:
# (?:\ \ \ \ k_)(?:.*)(?:\ \=\ \{)(?:(?:\n)|(?:\r\n))(?:\ \ \ \ \})
# 20. Select all occasions with Ctrl + Shift + L (in VSC)
# 21. Delete with DEL + DEL
# 22. Find all empires your culture does not use with:
# (?:e_)(?:.*)(?:\ \=\ \{)(?:(?:\n)|(?:\r\n))(?:\})
# 23. Select all occasions with Ctrl + Shift + L (in VSC)
# 24. Delete with DEL + DEL
# 25. Manually check/import the titular titles at the bottom of the file
# 26. Use full text replacement to replace all occasions of the source culture with your new culture
# 27. Copy and Paste this guide at the top of your file
###########################################################################
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant