Results 1 to 15 of 15

Thread: settlements name change

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Keyser Soze's Avatar Domesticus
    Join Date
    Jul 2008
    Location
    Bratislava
    Posts
    2,437

    Default settlements name change

    I can not find answer on this question, so sorry if this is somewhere answered.

    which file is used for changing settlements names by their owner?
    sorry my english.

  2. #2
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: settlements name change

    You mean automatically changing the name of Konstantinopolis to Istambul when it had been conquered by the Turks? This needs to be scripted.

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

  3. #3
    Keyser Soze's Avatar Domesticus
    Join Date
    Jul 2008
    Location
    Bratislava
    Posts
    2,437

    Default Re: settlements name change

    yes, yes this I mean. thanks for help, I found it - the word "scripted" helps me . campaign_script
    sorry my english.

  4. #4
    Keyser Soze's Avatar Domesticus
    Join Date
    Jul 2008
    Location
    Bratislava
    Posts
    2,437

    Default Re: settlements name change

    I have a problem with this. I´ve tried add more regions to 1143 mod. I also code settlements name change in campaign_script, but it not works. I can not find any error there. and what is important - when I play this mod everything works fine, but when I code my new regions to campaign_script also what before works (mod without my changes), now does not....

    must I do something more?
    sorry my english.

  5. #5
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: settlements name change

    You tried to add more regions in descr_strat? No, to add more regions you need to add them to the map, provided this has not reach the limit of 199.

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

  6. #6
    Keyser Soze's Avatar Domesticus
    Join Date
    Jul 2008
    Location
    Bratislava
    Posts
    2,437

    Default Re: settlements name change

    yes. original mod has 46 regions. when I played this original version, the change of settlements after capturing with another culture works fine. I´ve add new regions (about 6) to all files which are necessary (map_regions, descr_strat, descr_mercenaries, descr_regions_and_settlements) and also coded their name change in campaign_script. everything works fine except name change.
    sorry my english.

  7. #7
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: settlements name change

    Identifier: change_settlement_name
    Parameters: settlement_label, new_name_label
    Description: Changes a settlement's name to a new one from expanded.txt.
    Sample use: change_settlement_name London Perth

    Your new settlement name has to be in expanded.txt










  8. #8
    Keyser Soze's Avatar Domesticus
    Join Date
    Jul 2008
    Location
    Bratislava
    Posts
    2,437

    Default Re: settlements name change

    thanks gigantus. I forgot expanded.txt, so I add new names to it. but unfortunately it does still not works...

    and I do not understand why also not work change of settlements which are original in mod and for them change did work before I add new regions...

    the code:
    Spoiler Alert, click show to read: 
    Code:
     ;;;;; Ciutadella
    
    	declare_counter conquista_de_Ciutadella
    	
    	;;; Cristăo apanha Ciutadella
    	monitor_conditions I_SettlementOwner ccc = portugal
    		and I_CompareCounter conquista_de_Ciutadella = 0
    		
    		set_counter conquista_de_Ciutadella 1
    		change_settlement_name ccc Ciutadella
    
     	end_monitor
    
    	;;; Cristăo apanha Ciutadella
    	monitor_conditions I_SettlementOwner ccc = saxons
    		and I_CompareCounter conquista_de_Ciutadella = 0
    		
    		set_counter conquista_de_Ciutadella 1
    		change_settlement_name ccc Ciutadella
    
     	end_monitor
    
    	;;; Cristăo apanha Ciutadella
    	monitor_conditions I_SettlementOwner ccc = spain
    		and I_CompareCounter conquista_de_Ciutadella = 0
    		
    		set_counter conquista_de_Ciutadella 1
    		change_settlement_name ccc Ciutadella
    
     	end_monitor
    
    	;;; Cristăo apanha Ciutadella
    	monitor_conditions I_SettlementOwner ccc = normans
    		and I_CompareCounter conquista_de_Ciutadella = 0
    		
    		set_counter conquista_de_Ciutadella 1
    		change_settlement_name ccc Ciutadella
    
     	end_monitor
    
    	;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    	monitor_conditions not I_SettlementOwner ccc = portugal
    		and not I_SettlementOwner ccc = spain
    		and not I_SettlementOwner ccc = saxons
    		and not I_SettlementOwner ccc = normans
    		and I_CompareCounter conquista_de_Ciutadella = 1
    
    		set_counter conquista_de_Ciutadella 0
    		change_settlement_name ccc Medina_Minorka
    
     	end_monitor
    Last edited by Keyser Soze; November 12, 2009 at 01:03 PM.
    sorry my english.

  9. #9
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: settlements name change

    Best would be to have a look in the americas campaign if there is something else. Your original settlement is called ccc ?

    Edit: it seems both names have to be in the expanded file, check this:

    campaign_script americas
    ;;;;; Fort Caroline - Calusa

    declare_counter Calusa_France

    ;;; France captures Calusa
    monitor_conditions I_SettlementOwner Calusa = france
    and I_CompareCounter Calusa_France = 0

    set_counter Calusa_France 1
    change_settlement_name Calusa Caroline

    end_monitor

    ;;; Natives capture Calusa
    monitor_conditions not I_SettlementOwner Calusa = spain
    and not I_SettlementOwner Calusa = england
    and not I_SettlementOwner Calusa = france
    and I_CompareCounter Calusa_France = 1

    set_counter Calusa_France 0
    change_settlement_name Calusa Calusa

    end_monitor
    expanded - americas
    {Calusa}Calusa
    {Caroline}Fort Caroline
    Last edited by Gigantus; November 12, 2009 at 07:48 PM.










  10. #10
    Keyser Soze's Avatar Domesticus
    Join Date
    Jul 2008
    Location
    Bratislava
    Posts
    2,437

    Default Re: settlements name change

    I´ve look into americas campaign. yes in mod 1143 (here is link http://www.1143.site.vu/) is another codding for settlement name change, but it works fine too. only after I add new regions to mod it not works.

    thanks for your help, I can not do more work for you, but if you will have a little time could you look at attached files? this is my changes. thanks.

    regions from "aaa" are new.
    sorry my english.

  11. #11
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: settlements name change

    Looking at those files it is as I thought. This is the entry in your script:
    change_settlement_name r Cadiz
    BOTH labels (red and blue) have to be in expanded.txt but you have only the red one.

    My advice otherwise: don't use single letter references for anything - it can\will be confusing. And it makes error tracing a madness. I gave up after a couple of minutes to find settlement r in your descr_regions file. Use at least five letters, else a data search will be an exercise in futility.










  12. #12
    Keyser Soze's Avatar Domesticus
    Join Date
    Jul 2008
    Location
    Bratislava
    Posts
    2,437

    Default Re: settlements name change

    I know that use single letter as name for regions is not best idea, but author of this mod did it .
    and I must say the change of names works. so there is only problem after I add new regions to mod and change of names not works. this I do not understand, because I can not see any error in my codding of new regions, so why this not work?

    thank you for you help.
    sorry my english.

  13. #13
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: settlements name change

    I told you twice: BOTH settlement names have to be in the expanded.txt file. If you have entered them, delete the expanded.string.bin file to generate a new file.










  14. #14
    Keyser Soze's Avatar Domesticus
    Join Date
    Jul 2008
    Location
    Bratislava
    Posts
    2,437

    Default Re: settlements name change

    I understand you, but when you can see Boicote (author of mod 1143) did not code to expanded.txt "one letter" or "two letters" names and name change orks fine. only after I add new regions "three letters" ones settlement name change stoped work (also of old ones).

    I am going to try to code also "a", "aa", "aaa" to expanded.txt...
    sorry my english.

  15. #15
    Keyser Soze's Avatar Domesticus
    Join Date
    Jul 2008
    Location
    Bratislava
    Posts
    2,437

    Default Re: settlements name change

    o.k. I had both names in expanded.txt, I deleted epanded.string.bin file but change did not works. hm, must look deeper maybe...

    all at all thanks guys for your help.
    sorry my english.

Posting Permissions

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