Hello world!
This is a small guide on who to make multiple subfactions to any factions you want to, just like Carthage and Rome.
WARNING!
This guide is still in development, and mistakes and faults may happen!
So please point it out, in a friendly manner. :3
A small reminder!
it is case sensitive
don't use capital letters
I use PFM
change the name on the tables you use so you don't overwrite and crash the game
turn of combo box in pfm
Here you can see my .pack file:
http://steamcommunity.com/sharedfile...88&searchtext=
So What tables do we need?
you just need data_rome2.pack
Here is the list:
-db you find:
-effect_bundles
-effect_bundles_to_effects_junctions
-faction_groups
-faction_political_parties_junctions
-faction_to_faction_groups_junctions
-political_parties
-text
-db
-effect_bundles
-political_parties
-political_parties_power_effect_bundles
So were to start?
first pick your faction, "I picked Bactria as you can see in my .pack file"
second look on other factions perks, and write down which it is and from which faction it is from like this:
Carthage, cheap mercs, "this is just easy way so you don't have to jump back and fought from pfm and the game"
third write down which subfactions gets what perks and so on:
Bactria
- Carthage, cheap mercs
- so on
Theban exiled
- some faction so on and so on
"this again makes it easier later on, and will reduce time on developing the .pack file"
Now you are ready for all the fun stuff!
First table to begin with is -political_parties
you will see that the faction you can play as got two subfactions:
in bactrias case:
rom_politics_baktria_council
rom_politics_baktria_ruler
delete all the other rows so only the faction you wish to add subfaction are left.
and now add new rows as in how many new subfactions you wish to add. "just copy the playable subfaction and change the name the way you like, for ease sake something like rom_politics_"
You got a column called effect_bundle "same thing as before if you have just clone the row, keep it simple and alike"
eksample:
rom_faction_trait_successors_baktria_theban_exiled
rom_faction_trait_successors_baktria_eastern_nobles
and so on
But let the none playable have the "rom_dummy_effect_bundle"
the last column is initial_power
it is just how much power a faction start with.
now we take -faction_political_parties_junctions.
again delete all those you don't need, and now add those subfactions you made.
in that way the system now knows which faction the subfactions belongs to.
now we take -faction_to_faction_groups_junctions
again delete to keep it pretty and simple.
now you have your faction and the column faction_group_key, there you will change it into your own new perk.
as in this:
rom_faction_group_bactria "this lets us create special traits as in Rome"
next up is -faction_groups
just delete everything, we really don't need any of it.
add a new row.
in the first column add your rom_faction_group_ in the key column so the system knows which traits it gets
second column is called effect_bundle.
there you add your factions trait name, as in:
rom_faction_trait_baktria
ui_icon
just write a x
now we will play with the -effect_bundles yeah!!
You have to add the name of the effect bundles you made from before!
First delete everything!
now you add your factions rom_faction_trait_ under the key column.
second column you can add some text "not so important"
third column is the same its just the title
the ui_icon coulmn is the little icon there shows then your mouse hover over it.
"its a .png file with a pixil size of 24x24"
its best to keep the origenal, but for subfactions make your own, and keep the name simple.
its pathing in the .pack file is ui/campaign ui/effect_bundles
last column is called bundle_target.
lot of different rules about it, but in this case I wrote faction.
repeat till all factions and subfactions are there.
now we deal with the last table! the -effect_bundles_to_effects_junctions!
here we don't delete anything yet, and use the notes we wrote down from before.
here we just clone the wished traits from the different factions we observed.
"first of every playable subfactions should get under the effect_key column the trait called "rom_building_gdp_subsistence_faction_capital_hidden" this is the passive money income a faction gets."
so now you have all the wanted traits to give your faction and subfaction.
So just go ahead and delete all of that you don't need, so we can keep it nice and tight!
But now we need to designate them to each faction and subfaction, in the first column it is called effect_bundle_key.
Here we write every rom_faction_trait_ to each trait, in that way it is collected into a bundle and used i the game!
something like this:
"best to look up the table in my mod, sorry but the forum can't handle the size of the table"
Spoiler Alert, click show to read:
now we look on -effect_bundles and -political_parties
the first we look on is -effect_bundles.
just delete everything we don't need it.
its is important that you keep the proper file name or else the name won't show.
like this for name: effect_bundles_localised_title_*insert your effect_bundles_key*
and desc.: effect_bundles_localised_description_*insert your effect_bundles_key*
But here we name the effects name and description, like this
effect_bundles_localised_title_rom_faction_trait_baktria | Bactria
effect_bundles_localised_description_rom_faction_trait_baktria | Bactria, land of a thousand golden cities all grown rich on trade.
repeat until all your created effect_bundles got a name and desc.
now the -political_parties.
same goes here.
political_parties_name_localised_rom_politics_baktria_ruler | Bactrian Loyalist
political_parties_description_localised_rom_politics_baktria_ruler | Diodotus, the governor of Baktria, has secured their independence. They wish to be the next "Sun" in the ever growning world.
again repeat until done.
we also have initial power, you can put in any number you want (only int: 12, not real: 12,2)
their color in the sanate, is defined by numbers look this up:
http://www.w3schools.com/tags/ref_co...olor=AliceBlue
NOW becouse of the final patch 15
we will look on -political_parties_power_effect_bundles
this is a important table as it allows your party to gain bonuses.
you got 3 column the first is: the effect "Don't change anything just copy your faction and make the same number as subfaction, look on my file to see how it should look like"
the second is: the political_parties, it is here were the rom_politics_*parties name* should be
the third is: demand power level, it is here you can change how much influence you need to get bonus.
here it should look like:
Spoiler Alert, click show to read:
you can now start it whole up, and see the glorious white box under the faction!
Because Im not smart enough to fix that yet!
I know that the file is called like family_*something*.png but don't know which table it calls it.
and file path is ui/skins/default/
to fix that! here is the fix:
I hope this helps and we will see more multiple subfaction mods in the future!
And remember this is easy, so if you skrew up, just back track your steps and save offtent.
All Glory to Bactria Pony!!





Reply With Quote






