Results 1 to 10 of 10

Thread: Guide to create multiple subfaction or Familys

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Karnil Vark Khaitan's Avatar Praepositus
    Join Date
    Jan 2010
    Location
    DaneMark
    Posts
    5,031

    Default Guide to create multiple subfaction or Familys

    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: 



































































































    rom_faction_trait_successors_baktria_theban_exiled rom_building_gdp_subsistence_faction_capital_hidden this_faction 1500 start_turn_completed
    rom_faction_trait_successors_baktria_theban_exiled rom_faction_trait_carthage_magonid_military_reforms in_all_your_forces -5 start_turn_completed
    rom_faction_trait_successors_baktria_theban_exiled rom_faction_trait_nomadic_scythian_greek_emnity this_faction -20 start_turn_completed
    rom_faction_trait_successors_baktria_theban_exiled pun_faction_trait_syracuse_flowering_culture in_all_your_regions_unseen 20 start_turn_completed
    rom_faction_trait_successors_baktria_eastern_nobles rom_faction_trait_britannic_iceni_no_quarter in_all_your_forces -10 start_turn_completed
    rom_faction_trait_successors_baktria_eastern_nobles rom_faction_trait_successor_seleucid_multiculturalism in_all_your_provinces_unseen -25 start_turn_completed
    rom_faction_trait_successors_baktria_eastern_nobles rom_faction_trait_germanic_suebi_venerable_elders this_faction 3 start_turn_completed
    rom_faction_trait_successors_baktria_bactrian_loyalist rom_faction_trait_eastern_pontus_forsaken_origins this_faction -25 start_turn_completed
    rom_faction_trait_successors_baktria_bactrian_loyalist rom_faction_trait_successor_baktria_hellenisation this_faction 4 start_turn_completed
    rom_faction_trait_successors_baktria_bactrian_loyalist rom_faction_trait_successor_macedon_commercial_leases in_all_your_regions_unseen 10 start_turn_completed
    rom_faction_trait_successors_baktria_eastern_nobles rom_building_gdp_subsistence_faction_capital_hidden this_faction 1500 start_turn_completed
    rom_faction_trait_successors_baktria_bactrian_loyalist rom_building_gdp_subsistence_faction_capital_hidden this_faction 1500 start_turn_completed
    rom_faction_trait_baktria rom_faction_trait_successor_baktria_prosperity in_all_your_regions_unseen 5 start_turn_completed
    rom_faction_trait_baktria rom_faction_trait_greek_epirus_dodona in_all_your_provinces_unseen 4 start_turn_completed


    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: 

























































































































    political_support_average rom_politics_baktria_ruler 30
    political_support_best rom_politics_baktria_ruler 40
    political_support_high rom_politics_baktria_ruler 50
    political_support_low rom_politics_baktria_ruler 20
    political_support_max rom_politics_baktria_ruler 65
    political_support_min rom_politics_baktria_ruler 0
    political_support_very_high rom_politics_baktria_ruler 60
    political_support_very_low rom_politics_baktria_ruler 10
    political_support_average rom_politics_baktria_theban_exiled 30
    political_support_best rom_politics_baktria_theban_exiled 40
    political_support_high rom_politics_baktria_theban_exiled 50
    political_support_low rom_politics_baktria_theban_exiled 20
    political_support_max rom_politics_baktria_theban_exiled 65
    political_support_min rom_politics_baktria_theban_exiled 0
    political_support_very_high rom_politics_baktria_theban_exiled 60
    political_support_very_low rom_politics_baktria_theban_exiled 10
    political_support_average rom_politics_baktria_eastern_nobles 30
    political_support_best rom_politics_baktria_eastern_nobles 40
    political_support_high rom_politics_baktria_eastern_nobles 50
    political_support_low rom_politics_baktria_eastern_nobles 20
    political_support_max rom_politics_baktria_eastern_nobles 65
    political_support_min rom_politics_baktria_eastern_nobles 0
    political_support_very_high rom_politics_baktria_eastern_nobles 60
    political_support_very_low rom_politics_baktria_eastern_nobles 10



    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/
    Click image for larger version. 

Name:	2014-09-13_00001.jpg 
Views:	75 
Size:	290.4 KB 
ID:	314028
    to fix that! here is the fix:
    Quote Originally Posted by Peltarius View Post
    Name them as follows:

    ui\flags\rom_politics_baktria_theban_exiled\mon_64.png
    ui\flags\rom_politics_baktria_eastern_nobles\mon_64.png
    ui\flags\rom_politics_baktria_ruler\mon_64.png
    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!!
    Last edited by Karnil Vark Khaitan; September 20, 2014 at 12:45 PM.

    Im the Knight in Sour Armor http://tvtropes.org/pmwiki/pmwiki.ph...ghtInSourArmor
    Rainbow Darling rainbows Darling. Darling Rainbows!!!!!
    but on the same time modder with my first mod for Rome 2!http://steamcommunity.com/sharedfile.../?id=286218945
    Hey Sparkle Sparkle Sparkle!
    https://www.youtube.com/watch?v=LDULtV9U2kA
    Quote Originally Posted by riskymonk View Post
    yea but mods are created by fans of the series. Games are created by university students who might not necessarily know or play the games/series they're working on

  2. #2

    Default Re: Guide to create multiple subfaction or Familys

    I was just coming to post to see if there was already a thread about this, and saw yours, this is fantastic, thanks! Can you have more than the 3 family subfactions?

  3. #3
    Karnil Vark Khaitan's Avatar Praepositus
    Join Date
    Jan 2010
    Location
    DaneMark
    Posts
    5,031

    Default Re: Guide to create multiple subfaction or Familys

    Quote Originally Posted by Son of Horus View Post
    I was just coming to post to see if there was already a thread about this, and saw yours, this is fantastic, thanks! Can you have more than the 3 family subfactions?
    first of: Thanks ^^
    second of: I havn't tried myself, but can't see how there is a limited, I am willing to go so far and say, that there are no limit!

    Im the Knight in Sour Armor http://tvtropes.org/pmwiki/pmwiki.ph...ghtInSourArmor
    Rainbow Darling rainbows Darling. Darling Rainbows!!!!!
    but on the same time modder with my first mod for Rome 2!http://steamcommunity.com/sharedfile.../?id=286218945
    Hey Sparkle Sparkle Sparkle!
    https://www.youtube.com/watch?v=LDULtV9U2kA
    Quote Originally Posted by riskymonk View Post
    yea but mods are created by fans of the series. Games are created by university students who might not necessarily know or play the games/series they're working on

  4. #4
    LestaT's Avatar Artifex
    Join Date
    Jun 2005
    Location
    Campus Martius
    Posts
    3,877

    Default Re: Guide to create multiple subfaction or Familys

    Quote Originally Posted by Son of Horus View Post
    I was just coming to post to see if there was already a thread about this, and saw yours, this is fantastic, thanks! Can you have more than the 3 family subfactions?
    Rome actually have 4 families (the 4th is the unplayable 'other families') so they can have more than 3. Not sure if they can have above 4.
    Everything we hear is an opinion, not a fact. Everything we see is a perspective, not the truth. - Marcus Aurelius


  5. #5
    Karnil Vark Khaitan's Avatar Praepositus
    Join Date
    Jan 2010
    Location
    DaneMark
    Posts
    5,031

    Default Re: Guide to create multiple subfaction or Familys

    Quote Originally Posted by ^OvO^ View Post
    Rome actually have 4 families (the 4th is the unplayable 'other families') so they can have more than 3. Not sure if they can have above 4.
    I am maybe going to test it but truth be told, the ui will get a hard time handling more then 4 subfactions.

    Im the Knight in Sour Armor http://tvtropes.org/pmwiki/pmwiki.ph...ghtInSourArmor
    Rainbow Darling rainbows Darling. Darling Rainbows!!!!!
    but on the same time modder with my first mod for Rome 2!http://steamcommunity.com/sharedfile.../?id=286218945
    Hey Sparkle Sparkle Sparkle!
    https://www.youtube.com/watch?v=LDULtV9U2kA
    Quote Originally Posted by riskymonk View Post
    yea but mods are created by fans of the series. Games are created by university students who might not necessarily know or play the games/series they're working on

  6. #6
    LestaT's Avatar Artifex
    Join Date
    Jun 2005
    Location
    Campus Martius
    Posts
    3,877

    Default Re: Guide to create multiple subfaction or Familys

    Does the 'other' families get missions too ?
    Everything we hear is an opinion, not a fact. Everything we see is a perspective, not the truth. - Marcus Aurelius


  7. #7

    Default Re: Guide to create multiple subfaction or Familys

    Have you tested what happens after a civil war? I'm fairly sure it's hardcoded that factions with multiple families get to choose between an empire and republic after one, so you'll need to add the relevant names and effect bundles.

  8. #8
    Karnil Vark Khaitan's Avatar Praepositus
    Join Date
    Jan 2010
    Location
    DaneMark
    Posts
    5,031

    Default Re: Guide to create multiple subfaction or Familys

    Quote Originally Posted by ^OvO^ View Post
    Does the 'other' families get missions too ?
    No only the player, but the other families will blackmail and adopt.

    Quote Originally Posted by Peltarius View Post
    Have you tested what happens after a civil war? I'm fairly sure it's hardcoded that factions with multiple families get to choose between an empire and republic after one, so you'll need to add the relevant names and effect bundles.
    Don't know yet, but I am sure it will just give the normal faction reaction.
    the other thing you speak of is specific for carthage and rome. But yeah It could be made for the same for the faction you do with it.

    Im the Knight in Sour Armor http://tvtropes.org/pmwiki/pmwiki.ph...ghtInSourArmor
    Rainbow Darling rainbows Darling. Darling Rainbows!!!!!
    but on the same time modder with my first mod for Rome 2!http://steamcommunity.com/sharedfile.../?id=286218945
    Hey Sparkle Sparkle Sparkle!
    https://www.youtube.com/watch?v=LDULtV9U2kA
    Quote Originally Posted by riskymonk View Post
    yea but mods are created by fans of the series. Games are created by university students who might not necessarily know or play the games/series they're working on

  9. #9

    Default Re: Guide to create multiple subfaction or Familys

    I just want to say thank you as with your tutorial. after series of trials and errors (totally new to modding) managed to add 2 new playable factions (families) to Seleuci, not sure how it will progress with campaign but thank you nonetheless

  10. #10
    Karnil Vark Khaitan's Avatar Praepositus
    Join Date
    Jan 2010
    Location
    DaneMark
    Posts
    5,031

    Default Re: Guide to create multiple subfaction or Familys

    Quote Originally Posted by Janek View Post
    I just want to say thank you as with your tutorial. after series of trials and errors (totally new to modding) managed to add 2 new playable factions (families) to Seleuci, not sure how it will progress with campaign but thank you nonetheless
    No Problem =)

    Im the Knight in Sour Armor http://tvtropes.org/pmwiki/pmwiki.ph...ghtInSourArmor
    Rainbow Darling rainbows Darling. Darling Rainbows!!!!!
    but on the same time modder with my first mod for Rome 2!http://steamcommunity.com/sharedfile.../?id=286218945
    Hey Sparkle Sparkle Sparkle!
    https://www.youtube.com/watch?v=LDULtV9U2kA
    Quote Originally Posted by riskymonk View Post
    yea but mods are created by fans of the series. Games are created by university students who might not necessarily know or play the games/series they're working on

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •