Skip to content

Pyrolyzed/Crusader-Wars

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MAIN BANNER

What is Crusader Wars?

Crusader Wars is a complete overhaul of Crusader Kings 3 warfare system making it possible to fight your battles in a 1:1 scale in Total War: Attila.

Current features:

v1.0 "Warfare"

Land Battles

Fight your Crusader Kings 3 battles in Total War: Attila, covering every aspect of each battle!

Accurate Battle Results

Every casuality of the battle is 100% accurate to their regiment and army their in!

Time Period

We have mapped each CK3 culture, heritage, and Men-At-Arms with a collection of Attila mods to be the most historically accurate possible, covering a range from 8th-Century to 15th-Century.

Levies Compositions

Each culture and heritage also have their unique levies compositions, some can be infantry focused, other's can be cavalry focused.You will feel each one uniqueness!

Regiments Cultures

Every Crusader Kings 3 regiment has their hometown culture, and you will see every cultural difference in battle!

Commanders

The army commander will be the Total War general unit with his strength and XP level being based on his noble rank, bodyguards, and prowess. His martial skills represent a major role on the battlefield, increasing the whole army's XP level and the amount and quality of defensive deployable when defending.

Knights

Each knight is also present in a unit and each one of their prowess and martial increases the strength of it individually. Their lord's knight effectiveness also increases their unit xp. Their cultural unit will be the major culture amongst them or their realm.

Acclaimed Knights

An acclaimed knight is an important factor on the knight's unit, they get more soldiers than a regular knight and based on their accolade attributes and glory rank they give a special ability to the knight's unit.

Characters Health

What happens on the battlefield, doesn't stayt on the battlefield! If your generals or knights fall, they will get injured, captured or even die! And, if your characters are fighting with injures, they will get a soldiers penalty in their unit.

Terrain

The Total War battle map will be based on the CK3 battle terrain and defending armies in mountains, hills, etc... will always get the high ground.

Unique Maps

You will fight in some unique maps depending on the special building on the province you are fighting in.

Weather

The month the battle takes place is also accounted to make the battle atmosphere resemble the season they are in! Winter severity also increases the amount of winter effects there is on the Total War battle.

Seamless as Possible

With a press of a button, the mod opens up Attila with the correct mods and after the battle, it compresses the edited save file to have totaly fast loading speeds!

Integrated Attila Mod Manager

Enable and disable secondary mods in the Options menu!

Roadmap

Here you can see all our concepts, ideas, and plans for the mod.

-------------------How does it work?---------------------

If you want to code a mod like this, these are the major steps to achieve it:

Crusader Kings 3 Data Output:

There are two ways Crusader Wars outputs data for it to interpret. One is by Console Commands, the other is by a Save File. I created a mod for CK3 that consists of a button on the window_combat.gui, that when pressed, will create a save file and then execute some console commands that output some important data, which the Crusader Wars app, will read from the console_history.txt located in Documents\Paradox Interactive\Crusader Kings III\ folder.

Crusader Kings 3 Data Reading:

80% of data Crusader Wars reads from is from the save file directly, the rest on the console_history.txt file. On the Save File, it reads data from these sections (in order):

  • combats
  • traits_lookup
  • armies
  • units
  • army_regiments
  • regiments
  • landed_titles
  • counties
  • mercenary_company_manager
  • living
  • accolades
  • court_positions
  • culture_manager

On the console_history.txt it gets this data, which is:

  • Year and Month
  • Battle Name
  • Left & Right Realm Names
  • User Character ID and Culture ID
  • Left & Right Main Participants Character ID and Culture ID
  • Left & Right Commanders Character ID, Culture ID, Martial Value, Prowess Value, and Feudal Rank
  • Left & Right Knights Character ID, Names and Prowess Value
  • Knights Effectiveness
  • Terrain Type
  • Province ID
  • Winter Severity
  • Special Building in the Holding
  • Left & Right Advantages Modifiers
  • KEYWORD, for the app to detect a battle has started
Log.ClearAll
DateYear:936
DateMonth:12
BattleName:Battle of Zürich
T Your E TOOLTIP:GAME_CONCEPTrealm Realm: ONCLICK:TITLE982 TOOLTIP:LANDED_TITLE982 L Kingdom of Germany
T Enemy E TOOLTIP:GAME_CONCEPTrealm Realm: ONCLICK:TITLE7186 TOOLTIP:LANDED_TITLE7186 L Kingdom of Burgundy
PlayerCharacter_ID:12185
PlayerCharacter_Culture:36
LeftSide_Owner_ID:12185
LeftSide_Owner_Culture:36
RightSide_Owner_ID:10874
RightSide_Owner_Culture:37
---------Player Army---------
LeftSide_Commander_Culture:41
T Commander E TOOLTIP:GAME_CONCEPTadvantage Advantage: 23
Martial skill: positive_value 23
PlayerProwess:3
PlayerRank:3
ONCLICK:CHARACTER11796 TOOLTIP:CHARACTER11796 L high Margrave high Gero: 18 E TOOLTIP:GAME_CONCEPTprowess Prowess
ONCLICK:CHARACTER12148 TOOLTIP:CHARACTER12148 L high Lord-Mayor high Adam: 18 E TOOLTIP:GAME_CONCEPTprowess Prowess
ONCLICK:CHARACTER9936 TOOLTIP:CHARACTER9936 L high Duke high Dirk: 12 E TOOLTIP:GAME_CONCEPTprowess Prowess
ONCLICK:CHARACTER11292 TOOLTIP:CHARACTER11292 L high Count high Amadeus: 12 E TOOLTIP:GAME_CONCEPTprowess Prowess
ONCLICK:CHARACTER12452 TOOLTIP:CHARACTER12452 L high Prince high Heinrich: 9 E TOOLTIP:GAME_CONCEPTprowess Prowess
ONCLICK:CHARACTER19917 TOOLTIP:CHARACTER19917 L high Mayor high Eggerd: 9 E TOOLTIP:GAME_CONCEPTprowess Prowess
ONCLICK:CHARACTER12175 TOOLTIP:CHARACTER12175 L high Duke high Hermann: 8 E TOOLTIP:GAME_CONCEPTprowess Prowess
x
---------Enemy Army---------
RightSide_Commander_Culture:209
T Commander E TOOLTIP:GAME_CONCEPTadvantage Advantage: 17
Martial skill: positive_value 17
EnemyProwess:7
EnemyRank:3
ONCLICK:CHARACTER11822 TOOLTIP:CHARACTER11822 L high Count high Charles-Constantin: 19 E TOOLTIP:GAME_CONCEPTprowess Prowess
ONCLICK:CHARACTER12618 TOOLTIP:CHARACTER12618 L high Count high Heinrich: 13 E TOOLTIP:GAME_CONCEPTprowess Prowess
ONCLICK:CHARACTER11529 TOOLTIP:CHARACTER11529 L high Count high Rotbold: 9 E TOOLTIP:GAME_CONCEPTprowess Prowess
ONCLICK:CHARACTER12484 TOOLTIP:CHARACTER12484 L high Count high Conrad: 8 E TOOLTIP:GAME_CONCEPTprowess Prowess
ONCLICK:CHARACTER12485 TOOLTIP:CHARACTER12485 L high Count high Artôd: 7 E TOOLTIP:GAME_CONCEPTprowess Prowess
ONCLICK:CHARACTER20546 TOOLTIP:CHARACTER20546 L high Mayor high Dietmar: 7 E TOOLTIP:GAME_CONCEPTprowess Prowess
ONCLICK:CHARACTER25894 TOOLTIP:CHARACTER25894 L high Acfred: 7 E TOOLTIP:GAME_CONCEPTprowess Prowess
From Train Commanders: TOOLTIP:GAME_CONCEPTknight_i knight_iconP 3%
---------Completed---------
TOOLTIP:TERRAINplains L Plains
Region:Europe
ProvinceID:2051
Mild
Continental European
PlayerID:11230
EnemyID:12485
PlayerName:Count Meginhard II of Zutphen
EnemyName:Count Artôd of Lyon
SpecialBuilding:
---------Modifiers---------
T E TOOLTIP:GAME_CONCEPTadvantage Advantage: P 11 in your favor
Your damage is increased by V 22%

Our Advantage: positive_value 33indent_newline:3 
Commander E TOOLTIP:GAME_CONCEPTmartial_skill Martial Skill: positive_value 23indent_newline:3 
E TOOLTIP:GAME_CONCEPTcombat_roll Battle Roll: positive_value 10

Their Advantage: positive_value 22indent_newline:3 
Commander E TOOLTIP:GAME_CONCEPTmartial_skill Martial Skill: positive_value 17indent_newline:3 
E TOOLTIP:GAME_CONCEPTcombat_roll Battle Roll: positive_value 5
Keyword:CRUSADERWARS3

Total War: Attila Data Input

With all this data, Crusader Wars creates a historical battle .modpack with the help of the RPFM app. By following this tutorial as I did in the early development of this mod, you will know which data to insert on the .modpack https://www.twcenter.net/forums/showthread.php?815366-Scripted-Historical-Battles ... ... (to be continued...)

About

Crusader Wars,a mod that let's you fight Crusader Kings 3 battles in Total War Attila.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%