Page 1 of 2 12 LastLast
Results 1 to 20 of 29

Thread: Western Units unlock - FotS

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Radious's Avatar I came, I saw, I modded
    Join Date
    Mar 2009
    Location
    Czech Republic
    Posts
    11,169

    Default Western Units unlock - FotS

    I am wondering if anyone already find out how to remove event so player/ai can build all western ports at the same time in different cities. Technology for thos eports is ok and i removed the limits to be able to hav eonly 1 building but now i need to bypass that event.

    If you know please show me right direction where i can find it.

    Thanks.

    Winner of the 2011, 2012. 2014, 2015, 2016 and 2017 Modding Awards in Total War Shogun 2, Rome 2, Attila, Warhammer 1 and Warhammer 2.
    Follow us here - Team Radious




  2. #2

    Default Re: Western Units unlock - FotS

    The only thing I've found is the block at the top of the latest scripting.lua, where it adds restrictions to the ports and units when a new campaign is started.

    I haven't yet found any of the FotS events and missions, though, and I've been looking for them. I really would like to be able to edit them (including the season events, so we could make better TPY mods that don't break seasons).

  3. #3

    Default Re: Western Units unlock - FotS

    I'm at the very late stages of my game, and I got an American port and figured per default I would only be allowed to have one of the three. But, I did also figure that the two other ones could/would be build by the AI at some point but they never were. I am not sure if I was unlucky here for hundreds of turns, or if it is in any way connected to what you are contemplating?
    Maratha Light Infantry - http://www.sendspace.com/file/ibfygu

    Col. Michael Kováts Hussars
    - United States - http://www.sendspace.com/file/j272k5

    Norske Geworbne & Trondhjemske Regiment - Norway -
    http://www.sendspace.com/file/tmvpk6


    Links updated 06.05.13

  4. #4

    Default Re: Western Units unlock - FotS

    I cloned the western ironclads and tried to make them builable at a drydock, no success so far. The units are fine in custom battles but wont be recruitable in campaign
    Don't smoke the seed

  5. #5

    Default Re: Western Units unlock - FotS

    A bit of a sad thing is if you wish to establish a French trade connection, and thus decline the British and American while waiting for the French after 4-5 offers you'll never get one again.
    Maratha Light Infantry - http://www.sendspace.com/file/ibfygu

    Col. Michael Kováts Hussars
    - United States - http://www.sendspace.com/file/j272k5

    Norske Geworbne & Trondhjemske Regiment - Norway -
    http://www.sendspace.com/file/tmvpk6


    Links updated 06.05.13

  6. #6
    Radious's Avatar I came, I saw, I modded
    Join Date
    Mar 2009
    Location
    Czech Republic
    Posts
    11,169

    Default Re: Western Units unlock - FotS

    Well it would be great to unlock those things somehow, Anton tried scripting but ddint worked and recreating all units and buildings as a custom ones isnt very good solution.

    Winner of the 2011, 2012. 2014, 2015, 2016 and 2017 Modding Awards in Total War Shogun 2, Rome 2, Attila, Warhammer 1 and Warhammer 2.
    Follow us here - Team Radious




  7. #7

    Default Re: Western Units unlock - FotS

    Well, then the event may be controlled from the .exe itself. It wouldn't be the first time in TW-history something is locked to the .exe but it would be a bit off to have the event counter/control there.
    Maratha Light Infantry - http://www.sendspace.com/file/ibfygu

    Col. Michael Kováts Hussars
    - United States - http://www.sendspace.com/file/j272k5

    Norske Geworbne & Trondhjemske Regiment - Norway -
    http://www.sendspace.com/file/tmvpk6


    Links updated 06.05.13

  8. #8
    Radious's Avatar I came, I saw, I modded
    Join Date
    Mar 2009
    Location
    Czech Republic
    Posts
    11,169

    Default Re: Western Units unlock - FotS

    Try to look on this table - cdir_events_dilemma_incidents_tables look for d_bos_treaty_america_initial (british, france + repeat) and what it requires what it needs to happen.


    I think we we manage to bypass those numbers which says next to western treaties that dilema wont start if you choosed other before it could work.
    Last edited by Radious; April 08, 2012 at 09:36 AM.

    Winner of the 2011, 2012. 2014, 2015, 2016 and 2017 Modding Awards in Total War Shogun 2, Rome 2, Attila, Warhammer 1 and Warhammer 2.
    Follow us here - Team Radious




  9. #9
    Radious's Avatar I came, I saw, I modded
    Join Date
    Mar 2009
    Location
    Czech Republic
    Posts
    11,169

    Default Re: Western Units unlock - FotS

    I managed to get second even in same campaign, had british first and then accepted us. In my clan bonuses iahd both factino bonuses but sadly after accepting second nation i am unable to build ANY western port. Grrr must be close.

    Winner of the 2011, 2012. 2014, 2015, 2016 and 2017 Modding Awards in Total War Shogun 2, Rome 2, Attila, Warhammer 1 and Warhammer 2.
    Follow us here - Team Radious




  10. #10

    Default Re: Western Units unlock - FotS

    You mean in cdir_events_dilemma_option_junctions ? Couldn't find any in that other one. I'm gonna have a go at it after dinner. Feeling a bit under the weather these past few days, so not working as fast as I usually do. Had a quick debug of the .exe earlier to have a look, there's a lot of mention to these things there as well. Variables and such. Some I can find in the DB files, some I could find in the ESF and I couple I could not find anywhere so far.

    EDIT: Looks like you can not have Britain and France at the same time, as there is a religion conflict variable CND_RELIGION inf_bos_imperial / inf_bos_shogunate. Which explains why I never got the British one I was waiting for while playing Shogunate.... Though, shouldn't it be Americans that needs imperial, British neutral and French Shogunate? That's another question.
    Last edited by zowrath; April 08, 2012 at 12:16 PM.
    Maratha Light Infantry - http://www.sendspace.com/file/ibfygu

    Col. Michael Kováts Hussars
    - United States - http://www.sendspace.com/file/j272k5

    Norske Geworbne & Trondhjemske Regiment - Norway -
    http://www.sendspace.com/file/tmvpk6


    Links updated 06.05.13

  11. #11
    Radious's Avatar I came, I saw, I modded
    Join Date
    Mar 2009
    Location
    Czech Republic
    Posts
    11,169

    Default Re: Western Units unlock - FotS

    But it seems those numbers are unique + and you can rewrite those restrictions, i just put in all that offer start from turn 24 and suddently i got second offer. But other blocknig problem is here - fots_cdir_events_dilemma_payloads - version 2 where must be bypassed false positives and i managed to get more ports to build but not that one which event i activated.

    I am sure answer and solution is in these db - events tables. Just to find it.

    Winner of the 2011, 2012. 2014, 2015, 2016 and 2017 Modding Awards in Total War Shogun 2, Rome 2, Attila, Warhammer 1 and Warhammer 2.
    Follow us here - Team Radious




  12. #12

    Default Re: Western Units unlock - FotS

    I don't understand anything in modding, but I wish u good luck in doing this mod

  13. #13

    Default Re: Western Units unlock - FotS

    Wondered, have you thought about just creating an extra event instead that just sets the variables? I'm working on events now, but it's too late and I'm falling asleep at the keyboard. Will continue tomorrow though. Events are initialized in dilemmas_tables and executed by cdir_events_dilemma_option_junctions_tables and cdir_events_dilemma_payloads_tables as far as I have been able to tell.
    Maratha Light Infantry - http://www.sendspace.com/file/ibfygu

    Col. Michael Kováts Hussars
    - United States - http://www.sendspace.com/file/j272k5

    Norske Geworbne & Trondhjemske Regiment - Norway -
    http://www.sendspace.com/file/tmvpk6


    Links updated 06.05.13

  14. #14
    Radious's Avatar I came, I saw, I modded
    Join Date
    Mar 2009
    Location
    Czech Republic
    Posts
    11,169

    Default Re: Western Units unlock - FotS

    Let me know how it goes, it would be nice to be able to build all 3 ports rather then choosing 1 silly.

    Winner of the 2011, 2012. 2014, 2015, 2016 and 2017 Modding Awards in Total War Shogun 2, Rome 2, Attila, Warhammer 1 and Warhammer 2.
    Follow us here - Team Radious




  15. #15

    Default Re: Western Units unlock - FotS

    Quote Originally Posted by Radious View Post
    Let me know how it goes, it would be nice to be able to build all 3 ports rather then choosing 1 silly.
    It's a bit premature, but I managed to get an event-response but some text and things where missing. Though the event fired! I'll let you know as soon as I've tracked down the issue

    EDIT: I wish CA could make a way to delete/nullify their previous settings properly. If there's a condition, it has to be set to something. Leaving it empty when it should have a value does nothing it seems. If I alter the CA-packs, and delete the value it works but that is not a proper solution. Wish they could create a "magic" value, say 999, and whenever this value is detected it means the current line is considered delted/remarked-out.

    Note though, that I am not working on the exact same thing as you. Just related. I am working on extending the choices, let you have more time to consider. I've gotten that figured out, but CA set Britain to be the Imperial choice and I want America to be the default Imperial choice and British the neutral.

    While doing all this, I'm considering what you are doing as well. And when I finish what I am doing, if you haven't figured out a way yet I will have a go at yours. In short, to achieve what you want one needs to create an event that enables all units. It should not be too hard, I have ideas when the time comes.
    Last edited by zowrath; April 09, 2012 at 12:22 PM.
    Maratha Light Infantry - http://www.sendspace.com/file/ibfygu

    Col. Michael Kováts Hussars
    - United States - http://www.sendspace.com/file/j272k5

    Norske Geworbne & Trondhjemske Regiment - Norway -
    http://www.sendspace.com/file/tmvpk6


    Links updated 06.05.13

  16. #16
    Radious's Avatar I came, I saw, I modded
    Join Date
    Mar 2009
    Location
    Czech Republic
    Posts
    11,169

    Default Re: Western Units unlock - FotS

    Perfect, i am sure its in the event tables. bypass it or disable it is possible, managed to do that by it didnt worked perfectly yet.

    Winner of the 2011, 2012. 2014, 2015, 2016 and 2017 Modding Awards in Total War Shogun 2, Rome 2, Attila, Warhammer 1 and Warhammer 2.
    Follow us here - Team Radious




  17. #17

    Default Re: Western Units unlock - FotS

    Getting somewhere. You can safely nullify any CA setting with CND_ROUNDS_UNTIL_NEXT and set the value to 1, but use the same reference-number as the one you edit (Ie. 7721). With this, I successfully reached my goal. Now I'm gonna work on your issue.
    Maratha Light Infantry - http://www.sendspace.com/file/ibfygu

    Col. Michael Kováts Hussars
    - United States - http://www.sendspace.com/file/j272k5

    Norske Geworbne & Trondhjemske Regiment - Norway -
    http://www.sendspace.com/file/tmvpk6


    Links updated 06.05.13

  18. #18

    Default Re: Western Units unlock - FotS

    In one of my save-games I can build all three ports(as Aizu), in a other save-game not (as choshu). Before I began to mod this game


  19. #19

    Default Re: Western Units unlock - FotS

    The files needed to edit, and what to add, correspondingly:

    text\db\dilemmas.loc

    Code:
    dilemmas_localised_first_choice_title_d_bos_treaty_units_all    Accept    True
    dilemmas_localised_second_choice_title_d_bos_treaty_units_all    Refuse    True
    dilemmas_localised_title_d_bos_treaty_units_all    Western Military Missions    True
    dilemmas_localised_first_choice_label_d_bos_treaty_units_all    Such a military understanding will be a great asset to our cause. We accept.    True
    dilemmas_localised_description_d_bos_treaty_units_all    Having had long relation with all western powers, they now offer you the chance to recruit their units if you have built a port dedicated to trade with them.\n\n\By accepting, you may now wield unprecedented power in Japan.    True
    dilemmas_localised_second_choice_label_d_bos_treaty_units_all    We cannot accept. Convey our regrets to the foreign ambassadors.    True
    db\dilemmas_tables

    Code:
    "True"    "d_bos_treaty_units_all"    "Having\ had\ long\ relation\ with\ all\ western\ powers,\ they\ now\ offer\ you\ the\ chance\ to\ recruit\ their\ units\ if\ you\ have\ built\ a\ port\ dedicated\ to\ trade\ with\ them\.\\n\\n\\By\ accepting,\ you\ may\ now\ wield\ unprecedented\ power\ in\ Japan\."    "Such\ a\ military\ understanding\ will\ be\ a\ great\ asset\ to\ our\ cause\.\ We\ accept\."    "We\ cannot\ accept\.\ Convey\ our\ regrets\ to\ the\ foreign\ ambassadors\."    "Western\ Military\ Missions"    "bos_message_diplomacy_positive_active\.tga"    "bos_westerner\.TGA"    "Accept"    "Refuse"    "True"
    db\cdir_events_dilemma_option_junctions_tables

    Code:
    "d_bos_treaty_units_all"    "30200"    "0"    "CND_CAMPAIGN"    "jap_boshin"
    "d_bos_treaty_units_all"    "30201"    "0"    "CND_FIRST_ROUND"    "80"
    "d_bos_treaty_units_all"    "30202"    "0"    "CND_TECHNOLOGY_RESEARCHED"    "boshin_civil_foreign_affairs"
    "d_bos_treaty_units_all"    "30203"    "0"    "CND_BUILDING_LEVEL"    "bos_port_3_trading_port"
    "d_bos_treaty_units_all"    "30204"    "0"    "CND_DILEMMA_NOT_CHOSEN_FIRST"    "d_bos_treaty_units_all"
    "d_bos_treaty_units_all"    "30205"    "0"    "CND_UNIQUE"    ""
    "d_bos_treaty_units_all"    "30206"    "0"    "VAR_CHANCE"    "7"
    "d_bos_treaty_units_all"    "30207"    "0"    "GEN_TARGET_NONE"    ""
    db\cdir_events_dilemma_payloads_tables

    Code:
    "FIRST"    "d_bos_treaty_units_all"    "30208"    "0"    "p_bos_military_mission_american"    "True"    "DURATION\[0]"
    "FIRST"    "d_bos_treaty_units_all"    "30209"    "0"    "p_bos_military_mission_british"    "True"    "DURATION\[0]"
    "FIRST"    "d_bos_treaty_units_all"    "30210"    "0"    "p_bos_military_mission_french"    "True"    "DURATION\[0]"
    "FIRST"    "d_bos_treaty_units_all"    "30211"    "0"    "BUILDING_LEVEL_EVENT_RESTRICTION"    "True"    "BUILDING_LEVEL\[bos_port_4_french_trading_district];ENABLE"
    "FIRST"    "d_bos_treaty_units_all"    "30212"    "0"    "UNIT_EVENT_RESTRICTION"    "True"    "UNIT\[Boshin_Ironclad_USS_Roanoke];ENABLE"
    "FIRST"    "d_bos_treaty_units_all"    "30213"    "0"    "UNIT_EVENT_RESTRICTION"    "True"    "UNIT\[Boshin_Inf_Elite_United_States_Marines];ENABLE"
    "FIRST"    "d_bos_treaty_units_all"    "30214"    "0"    "BUILDING_LEVEL_EVENT_RESTRICTION"    "True"    "BUILDING_LEVEL\[bos_port_4_british_trading_district];ENABLE"
    "FIRST"    "d_bos_treaty_units_all"    "30215"    "0"    "UNIT_EVENT_RESTRICTION"    "True"    "UNIT\[Boshin_Ironclad_HMS_Warrior];ENABLE"
    "FIRST"    "d_bos_treaty_units_all"    "30216"    "0"    "UNIT_EVENT_RESTRICTION"    "True"    "UNIT\[Boshin_Inf_Elite_Royal_Marines];ENABLE"
    "FIRST"    "d_bos_treaty_units_all"    "30217"    "0"    "BUILDING_LEVEL_EVENT_RESTRICTION"    "True"    "BUILDING_LEVEL\[bos_port_4_american_trading_district];ENABLE"
    "FIRST"    "d_bos_treaty_units_all"    "30218"    "0"    "UNIT_EVENT_RESTRICTION"    "True"    "UNIT\[Boshin_Ironclad_L'Ocean];ENABLE"
    "FIRST"    "d_bos_treaty_units_all"    "30219"    "0"    "UNIT_EVENT_RESTRICTION"    "True"    "UNIT\[Boshin_Inf_Elite_Infanterie_de_marine];ENABLE"
    This code is for .tsv files to be imported in to the correct tables with PFM 2.0.5 or newer.

    EDIT: Edit the original events and set CND_FIRST_ROUND from 24 to some obscure number like 777 or higher, if one wishes. And feel free to edit the CND_FIRST_ROUND in this code to something else than 80, if you like. This works, tried and tested.

    And, this can also be considered as a tutorial on how to create an event.
    Last edited by zowrath; April 09, 2012 at 11:30 PM. Reason: Problem solved
    Maratha Light Infantry - http://www.sendspace.com/file/ibfygu

    Col. Michael Kováts Hussars
    - United States - http://www.sendspace.com/file/j272k5

    Norske Geworbne & Trondhjemske Regiment - Norway -
    http://www.sendspace.com/file/tmvpk6


    Links updated 06.05.13

  20. #20
    Radious's Avatar I came, I saw, I modded
    Join Date
    Mar 2009
    Location
    Czech Republic
    Posts
    11,169

    Default Re: Western Units unlock - FotS

    Well thats something i did aswell, sadly its not a solution for our problem. We need to unlock all ports and all units in it.

    Winner of the 2011, 2012. 2014, 2015, 2016 and 2017 Modding Awards in Total War Shogun 2, Rome 2, Attila, Warhammer 1 and Warhammer 2.
    Follow us here - Team Radious




Page 1 of 2 12 LastLast

Posting Permissions

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