• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
Status
Not open for further replies.

Anniversary Maintenance Patch - 2.0.4 (Open Beta)

ImperatorSocial.png

Avē!

First, I’d like to introduce myself, I am not one of the previous Game Directors, Johan or Peter, but I am Niels Uiterwijk, the original tech lead on the project. Today my role at paradox has changed as I am the Technical Director in studio green (studio working Stellaris). But still, from outer space I look back at earth and think of Imperator sometimes and decided to make a small maintenance patch, fixing some of the issues that modders & other people ran into.

Without further ado, the patch notes:

#######################
# Bugfixes
######################

# Notes
- This patch should be save compatible, however not all fixes might be applied to your current save.

# Stablity & Performance
- Improved overall memory consumption & performance
- Improved monthly tick performance by performing some more calculations in parallel (state modifiers)
- Portrait editor no longer crashes on open
- Updated SDL to 2.0.20 from 2.0.10
- Updated Nakama to 2.4.1 from 2.2.4

# Game Mechanic
- Upped the maximum number of tags (countries) from 2048 to 8192
- Fixed levy calculations being inversed
- Fixed a bug where when annexing a country, their abroad prisoners, that were in your prison, would also be counted as an abroad prisoners for you, even though they are local prisoners.
- default pop right is now correctly working & added proper logging of pop rights
- Fixed bug where unused modifiers were still being rewarded for specific missions (local & global cohort recruitment speed)
- Fixed bug where integrated cultures were still treated differently when they were converting to your primary religion
- Raised levies will select the best tactic for it's composition.
- Civil Wars will no longer just pick 1 character, but instead take far more disloyal characters.
- Fixed bug where released nations during a peace deal would have no proper pantheon.
- Fixed bug where you would never see battle results from battles against pirates, barbarians or rebels.
- Diplomatic range is now calculated between border territories. This should make it easier to hire mercenaries as a large empire. Default diplo range has been tweaked based on this change.
- Fixed bug where pops could be promoted above what they were allowed to.

# Other
- Updated default message settings
- Enabled script profiling (available with -debug_mode startup command, 'print_event_timings` is the console command)
- Added option to run multiple commands at the same time (ExecuteConsoleCommands & ExecuteConsoleCommandsForced)
- Achievements now only require that the game is in ironman mode and you achieve them within the timelimit (ingame years)
Note: This means that mods that are affecting the checksums, no longer will prohibit you from getting the achievements, neither does multiplayer.
- Added four new defines to balance the game (2 related to combat overruns, 2 related to civil war & dissenters)



Integrated fixes from the "Unofficial Patch" mod.
(Thanks Umgssda!)

# Fixes

## Missions

- Fixed mission trigger to ignore city territories in generic mission "Growth of ..." or "Pearl of .." step "Fruits of ..."
- Fix check for mission goal in Seleucid mission "Syrian Ambition" step "A Mediterranean capital" to really check for the building number as shown in the tooltip
- Fix mission availability for Cartage mission "Iberian Investments" to be selectable after finishing "The Iberian Struggle" with "Hispanic Overlord"

## Events

- Fix "There are other options..." option to actually show other territories for "Babarian Bartering" event for greek Missions in western Mediterranean and Pontus areas
- Fix party approval target in event for pop integration agenda for roman boni party
- Fix "No confidence" random event to target three distinct characters
- Fix "Demodamas the Explorer" event to select a sea harbor with enough population according to the existing check
- Fix "Fall of the [Family]" event to select the family to remove with lowest instead of highest prestige

## Gameplay

- Fix Governors selecting religious conversion policy when it is pointless (thanks to Lewa263)

## Texts

- Fixed reference from Argos to Korinthos in tooltip for spartan mission "The Second Peloponnesian League" step "Eastern Capitals"
- Corrected event text for the time passed since Alexanders death in initial Alexander the Great event. (english only)
- Fix territory names in event Options for Roman Mission "The pillars of Hercules"


- New Update 11/4/2024


#######################
# Bugfixes
######################

# Game Mechanic
- Fixed bug where temp modifiers were removed when provinces are annexed as part of a civil war
- Fix a bug when using add_to_war effect, adding a defender would always make it the war leader

# Effects
- Added set_player_country effect to allow modders to swtich the player's country
- Added add_deity_to_pantheon effect to allow deities outside of the allowed pool to a country's pantheon
- Added set_automated_trading effect to enable/disable state automated trading
- Added set_governor_policy effect to change governor policy
- Added unlock_invention effect to directly unlock a invention for free (without checking preconditions)
- Added add_trade_route and remove_trade_route effects to add and remove trade routes, respectively

# Triggers
- Added is_automated_trading trigger to check if a state has automated trading set
- Added distance_from trigger to check the distance between a province and another province, state (capital) or country (capital)
- Added can_unlock_invention to check if an invention can be unlocked by country (optionally ignoring cost, dependencies and potential trigger)
- Added can_add_trade_route to check if a trade route can be added.

# Other
- Added a modifier cultural_assimilation_speed_modifier, which changes the assimilation speed. Assimilation speed less than 0 prevents assimilation.
- Added a property for subject types to allow them to bypass usual subject diplomatic limitations for declaring war (allowed_to_declare_war_against_others). This is not enabled by default for the base game. To fully enable this to work you'll also need to change the allow triggers for wargoals


Integrated fixes provided by the Invictus team:
Thank you Imperator: Invictus Mod Development team with highlight to Robbe Vander Kerken (aka Snowlet) & Nathaniel Van Drei (aka Dementive)


# Achievements:
- Fixed the Great Destroyer achievement being impossible to obtain
- Fixed Cincinattus achievement being impossible to obtain

# Governor policy:
- Switched to more efficient iterator: any_integrated_culture
- AI will no longer attempt the religious conversion governor policy when they have major syncretism

# Inventions:
- Switched to more efficient iterator: any_integrated_culture

# Missions:
- Fixed broken tooltip in Strategic Fastness Antigonid task
- Fixed broken AI triggers in Carthaginian missions
- Fixed Hannid character not being put into the Hannid family
- Fixed AI carthage not paying for the city in Cypriot Opportunities task
- Fixed Experienced Shipwrights being impossible to complete as it requires impassable territories
- Added missing ai_mission_back_out_trigger and start_mission_ai_effect in missions
- Macedonian missions now account for Imperial Cult government type
- Fixed province investment checks not account for Spartan investments
- Addex extra sanity checks to Macedonian missions
- Fixed several Macedonian task triggers not working
- Fixed Roman AI not getting claims upon Aquitania
- Fixed Protector of the Aegean Sea not highligting subjects correctly

# Character interactions:
- Fixed still being able to bribe mercenaries from countries with the Mercenary Benefits invention

# Unit Abilities:
- Optimized check for Barca Legion from Forced march

# Events:
- Fixed released countries not having a primary culture
- Fixed missing 'equals' characters in the scripts
- Fixed wrongly set global variable for the parthian invasion
- Fixed Antigonid capital being incorrectly set upon collapsing
- Fixed Mithradaic events not properly unlocking Pontus content
- Fixed Arsaces being able to spawn twice
- Fixed ruler not appearing in Carthaginian Iberian events
- Deleted extra dot from opinion modifier in Roman Greece missions
- Fixed Eastern Empire mission not triggering if you only have land in Macedonia
- Fixed duplicated ai_chance blocks in Western Greek missions
- Added sanity checks to ports being built through effect
- Fixed league of Korinthos not properly annexing subjects
- Fixed Serapis sanctuary taking 36 and not 360 days to be built
- Added failsafe in Egyptian character creation for events
- Fixed wrong tooltip for opinion modifier in Cities of Greece task
- Fixed Epirus subjugating themselves in the Magna Graecian missions
- Fixed Pax Epirum potentially spamming the error log
- Fixed characters befriending themselves
- Fixed desecration event opinion tooltip showing the wrong country
- Fixed broken modifier duration in Armenian events
- Fixed politics events using incorrect syntax to check countries in diplomatic range
- Fixed Republic event incorrectly checking for party scopes
- Fixed Cretan event occasionally annexing the world
- Fixed Co-Consuls being deposed by going to the olympics
- Fixed most prestigious family fading into obscurity
- Fixed startup events not pointing to your country
- Fixed error log spam from a dead character losing health

# GUI:
- Removed unused GUI types from GUI files making the GUI editor more stable
- select_import_destination.gui changed the y size of a scrollarea to remain within the window
- Replaced 4 buttons in console.gui that crash the game with useful buttons for modding
- portrait_editor_window made it possible to move the window and made all features usable

# Shaders:
- Changed gfx/FX/coat_of_arms/coat_of_arms_textured_emblem.shader so textured emblems actually work, re-added their red channel which was accidentally removed.

# Localization:
- Fixed loads of spelling errors
- Fixed various grammatical errors
- Fixed Agriana being called Agrianaa
- Fixed Ati Muwer being referred to as a male
- Fixed missing apostrophe in 'Attar
- Fixed capitalization issues
- Fixed loyalty icon not appearing
- Removed extra spaces after names

# Various fixes:
- Commented out lines triggering non-existent events
- Fixed AI Rome not getting claims on Central Gaul
- Fixed Anoint heir checking for a commented out law
- Fixed Forced March checking for a non-existent terrain type
- Added many missing equal signs
- Replaced errorous 7 character with "{"
- Fixed missions checking for "mountains" instead of "mountain"
- Fixed "[" being used instead of "{" in effect syntax
- Fixed Elephantina being unobtainable due to checking for "warelephants" instead of "warelephant" unit
- Fixed Ferrata being unobtainable due to checking for "heavy_infrantry" instead of "heavy_infantry" unit
- Fixed Antigonid events in rare cases triggering a non-existent event
- Fixed League of Korinthos forming while the player is a subject of Macedon in Greece triggering the wrong event
- Fixed non-existent Rhodes sacking event being triggered
- Fixed Carthaginian naval dominance missions checking for non-existent region
- Fixed Thracian and Roman events improperly checking for Galatia region
- Fixed Oinoandia coat of arms having a wrongly defined colour
- Fixed cancelling the Death to Tyrants mission potentially finding a wrong character to put as ruler
- Fixed edge-case where recruiting a character could raise an error
- Fixed using the omen effect on Daniel having wrong syntax
- Fixed Apotheosis manpower and money effects not having a minimum setup properly
- Fixed several wrongly defined minimum and maximums
- Fixed Daring trait not increasing likelihood of injuries
- Fixed "Forced Smiles" event where Commander demands an office for a friend not triggering and not being updated to account for Governors
- Fixed wrong areas being selected in for loyalty hit in event where Governor demands they adapt to local mannerisms
- Fixed "Learning from experience" event potentially selecting a party leader and being impossible for non-republics to trigger
- Fixed several minor edge-case and syntax issues in generic infrastructure mission events
- Fixed Carthaginian trade mission events showing the wrong character
- Fixed unneeded if's in monarchy events
- Fixed "Crisis in X" event attempting to show too many characters
- Fixed Rapax and Improba distinctions never triggering
- Fixed broken edge-case tooltip in Install Philokles decision
- Fixed Egyptian marriage event potentialyl failing to find a Thracian bride
- Ensured else_if was properly used instead of using else, if
- In common\loyalty\00_events.txt line 2876 was `ymonths`, it has been changed to `months`
- In events\storms.txt there were 2 checks for `is_in_region = areas`, the areas region does not exist so these lines were removed
- In common\modifiers\00_from_events_province.txt there were a few modifiers with like `local_population_happiness = -0.1.0` that I removed the extra decimal point from.
- The monthly_tarentum_war_pulse on_action incorrectly used is_in_region = carthage_area which is an area not a region, I changed it to africa_region.
- Fix great_work_template_06 being used in gw_ai_build even though it was removed
- Fix italia_region being used instead of central_italy_region in greek missions 4
- Fix missing = in make_subject effect in 01_seleukid_missions_03_anatolia.txt and in events/me_seleukid_03_anatolia.txt
- Fix missing closing bracket in script_values/00_army_values.txt
- Fix missing = on line 578 of script_values/00_mission_egypt.txt
- Fix is_in_region = tripolitania_occidentalis_area in script_values/00_missions.txt, changed to is_in_area.
- Fix bugged is_in_area = carthage_area check in dhe_dde_pyrhus.txt events file
- Fix block of code incorrectly placed inside of a random_list effect in events/governor_policies.txt line 657
- Fix incorrectly spelled colors in coat_of_arms/00_pre_scripted_countries.txt
- Remove change_country_color = "median_color" line from form_media decisions because median_color does not exist
- Remove duplicate modifier = {} blocks from military traditions in 00_latin, 00_persian, and 00_persian_2
- Fix ai_build_city_pay_price_effect being used in area scope instead of country scope in 01_spartan_missions_02_peloponnesus.txt
- Fix incorrect use of is_culture trigger in modifiers/00_triggered_character_modifiers.txt
- Remove duplicate script values in 00_mission_antigonid, 00_mission_carthage, and 00_mission_epirus
- Fix incorrect scope for fam:40 used in scripted_effects/00_dde_pyrrhus_effects
- Fix incorrect scope for has_same_family trigger in scripted_effects/00_on_action_effects
- Fix incorrect usage of unit_owner scope in scripted_guis/desecrate_holy_site.txt
- Remove duplicate map = yes field in civilian_road_building.txt
- Change floor = 1 to proper use with floor = yes in unit_abilities/pillage.txt
- Fix incorrect scope for owns_or_subject_owns on line 624 of dhe_macedon.txt
- Fix usage of has_culture_group instead of country_culture_group in dhe_judea.txt
- Fix incorrect use of country scope in right_portrait fields of events in country_diplomacy.txt
- Fix left_portrait = yes in me_roman_2_provincia.txt
- Fix use of [ instead of { in me_greek_2_greece.txt
- Fix use of has_province_modifier instead of has_character_modifier on line 547 of rel_flavor_buddhist
- Fix incorrect scoping to head_of_family in royal_marriage.txt
- Fix missing = on line 279 of characterwindow.gui
- Fix missing = on line 246 of messages.gui
- Fix missing = on line 189 of multi_unit_window.gui
- Fix missing bracket in culture_view.gui and government_view.gui for the top level base_window block
- Fix too many decimals in debug_menus.gui line 649
- Fix too many decimals in multiplayer_lobby.gui
- Fix broken block of brackets at the bottom of game_configuration.gui
- Remove extra } at the end of overview_view.gui
- Fix missing bracket in select_fabricate_claim.gui line 77
- Remove extra bracket from the end of select_target_character.gui and create_social_profile_window.gui
- Fix missing bracket errors in gw_tower_03_bottom.asset and female_clothes_iberian_3.asset asset files
- Fix missing = in frontend_mainview, frontend_singleplayer, loadscreen, and progressbar_idler
- Fix incorrect spelling of GetNameWithNoTooltip function in shared/cooltip.gui



- New Update 12/4/2024

# Effects
- Added play_sound_effect which allows you to play a sound effect, targeting a country (ported from ck3)
- Added set_antagonist = yes/no effect.

# Triggers
- Added has_capital_surplus to check for the existance of any capital bonuses from the state's owner
- Added has_capital_bonus_for_trade_good to check for the existance of any captial bonuses for the specific trade good

# Other
- Added a property for subject types to allow them to bypass usual subject diplomatic limitations for declaring war (allowed_to_declare_war_against_others). This is not enabled by default for the base game. To fully enable this to work you'll also need to change the allow triggers for wargoals
- Added modifiers for local_happiness_for_wrong_religion_modifier and happiness_for_wrong_religion_modifier which is applied on top of regular happiness for the same religion modifiers. Also fixed a typo with define for WRONG_RELIGION_HAPPINESS which applies always regardless of modifiers (currently set to )
- Made all hardcoded values related to civil wars moddable through define & added documentation on what they mean


- New Update 16/4/2024

# Bugfixes
- Fix release as client state crash in the UI



As you can see, this is a minor patch, and for now it will be released as an open beta on steam & windows only. The plan is to release this on all platforms at some point in the undetermined future. Please leave feedback (or links to bug reports that you want to see fixed) in the comments section, I am quite bad at replying, but I will read them.

Thanks to all the people that helped me with this!


Available now on the steam beta branch: 2.0.4 - open beta

I also have to stress that this is not a revival of Imperator: Rome! Do not expect new content or patches going forward.
 
Last edited by a moderator:
  • 260Love
  • 120Like
  • 6
  • 2Haha
  • 1
  • 1
Reactions:
Thanks everyone for your bug reports! I am doing my best to get through it, and I will likely make another patch on friday with some more updates.

Johan fixed an issue with civil wars being very small and I fixed an issue with nations not getting their pantheon.

Some stuff is just difficult to fix, because of the passage of time (hard to figure out why it's broken or what the goal was of a piece of code). Keep reports incoming though, I do go through them, but with the upcoming Galactic Paragon release, I might be busy with supporting the team with that instead.
Thanks sm for supporting Imperator with ur very limited time! It’s really greatly appreciated that my favourite game is still at the very least being fixed, even if it’s just a small patch.
 
  • 5Like
Reactions:
I runned again into the (confirmed) issue with getting no battle report pop-up after sea battles with Pirates.

I did a new thread to avoid thread necromancy:


My original report with the confirmation post can be found here: https://forum.paradoxplaza.com/foru...mmaries-for-sea-battles-with-pirates.1411630/
 
  • 2Like
Reactions:
Is there a Hotfix coming for the bugs generated with this I:R beta update?

Or is there another Beta Update that will add to the Mod-related changes plus hotfix what was broken with the first Beta patch?
 
Is there a Hotfix coming for the bugs generated with this I:R beta update?

Or is there another Beta Update that will add to the Mod-related changes plus hotfix what was broken with the first Beta patch?
All beta patches are a work in progress.
 
Is there a Hotfix coming for the bugs generated with this I:R beta update?

Or is there another Beta Update that will add to the Mod-related changes plus hotfix what was broken with the first Beta patch?

If there are new bugs with this patch, please let me know about them (make a bug report and link it here if you can). As SAS mentioned, they are a work in progress :)
 
  • 10Like
  • 2
  • 1
Reactions:
I runned again into the (confirmed) issue with getting no battle report pop-up after sea battles with Pirates.

I did a new thread to avoid thread necromancy:


My original report with the confirmation post can be found here: https://forum.paradoxplaza.com/foru...mmaries-for-sea-battles-with-pirates.1411630/

Should be fixed now
 
  • 9Like
  • 5Love
Reactions:
I pushed out a new update with the following changes. Please do give feedback, and if you notice something is broken (new or old) make a bug report and link it if able!

At this point I fixed everything from my list that I wanted to fix, but I will take a look through the entire thread again if this is something else missing & easy to do.

I will let this stew for a weeks, and see what people encounter, and if it seems good, I will set this live as the default (with some additional fixes in script that are still missing)

#######################
# Bugfixes
######################

# Notes
- This patch should be save compatible, however not all fixes might be applied to your current save.

# Game Mechanic
- Civil Wars will no longer just pick 1 character, but instead take far more disloyal characters. (Thanks Johan!)
- Fixed bug where released nations during a peace deal would have no proper pantheon
- Fixed bug where you would never see battle results from battles against pirates, barbarians or rebels
- Diplomatic range is now calculated between border territories. This should make it easier to hire mercenaries as a large empire. Default diplo range has been tweaked based on this change.

# Other
- Achievements now only require that the game is in ironman mode and you achieve them within the timelimit (ingame years)
Note: This means that mods that are affecting the checksums, no longer will prohibit you from getting the achievements, neither does multiplayer.
 
  • 20Like
  • 14Love
  • 3
  • 1
Reactions:
Seeing your fix for that civil war issue reminded me of another bug that we've experienced that I haven't seen reported yet. Any country created with the create_country effect (also civil wars and revolts I think) do not have any military traditions at all when they are created. This isn't an issue early in the game but later in the game the difference in military quality this causes hinders newly created countries so much that they can almost never compete even with 10's of thousands of more troops because the existing nations have hundreds of years of military bonuses the new nations don't have yet. Ideally newly created countries get automatically assigned the same amount of military traditions as the country they were created from.
We made a workaround for Invictus that adds military experience to new countries based on the date but it doesn't really work because AI takes too long to decide what traditions to pick and by the time they take them their armies are usually completely wiped out, so a backend fix would be great for us.

TLDR: New countries get no military traditions.
 
Last edited:
  • 9Like
  • 2
Reactions:
I dunno if it is good to request things to fix, but can you enable triggers for units? When 2.0 was released I tried to create a unit for my mod that would be available only for specfic tag with specific resource requirement and yet in Legion window anyone could hire this unit into their Legion, and without rquiring resources.
I dont ask for complete rebalance of vanilla units with specfic triggers, I'm simply asking for triggers for units to work.
 
  • 5Like
  • 1
  • 1
Reactions:
Seeing your fix for that civil war issue reminded me of another bug that we've experienced that I haven't seen reported yet. Any country created with the create_country effect (also civil wars and revolts I think) do not have any military traditions at all when they are created. This isn't an issue early in the game but later in the game the difference in military quality this causes hinders newly created countries so much that they can almost never compete even with 10's of thousands of more troops because the existing nations have hundreds of years of military bonuses the new nations don't have yet. Ideally newly created countries get automatically assigned the same amount of military traditions as the country they were created from.
We made a workaround for Invictus that adds military experience to new countries based on the date but it doesn't really work because AI takes too long to decide what traditions to pick and by the time they take them their armies are usually completely wiped out, so a backend fix would be great for us.

TLDR: New countries get no military traditions.

oof, this does not surprise me. If you know of any other bugs, let me know!

I dunno if it is good to request things to fix, but can you enable triggers for units? When 2.0 was released I tried to create a unit for my mod that would be available only for specfic tag with specific resource requirement and yet in Legion window anyone could hire this unit into their Legion, and without rquiring resources.
I dont ask for complete rebalance of vanilla units with specfic triggers, I'm simply asking for triggers for units to work.

I remember a modder asking for the same thing. This is just for legions right?
 
  • 8Like
  • 1
Reactions:
This is a request, not a bug, so maybe I am overstretching here.

Units have scripted modifiers for terrain, discipline, morale, etc.. but there are no modifiers for the versus against other units.

If that would be in the script to mod units, we could have more variety of gameplay: greek HI will be better against Cavalry than Roman HI for example.
 
This is a request, not a bug, so maybe I am overstretching here.

Units have scripted modifiers for terrain, discipline, morale, etc.. but there are no modifiers for the versus against other units.

If that would be in the script to mod units, we could have more variety of gameplay: greek HI will be better against Cavalry than Roman HI for example.

Sorry, won't be doing that, it's outside of the scope for this patch. Performance would also be significantly impacted
 
  • 15
  • 1Like
Reactions:
(with some additional fixes in script that are still missing)
Are these included in the patch notes? If not, can we know what they are, so we don't do a bug report for something already fixed?
 
Thank you anyway for looking at it. We can only dream of players coming back to the game thanks in part to your effort.
 
  • 6Like
Reactions:
More welcome than the arrival of the Numidian cavalry during the Battle of Zama.
Will the Great Destroyer achievement be fixed? It is the only one that I have not unlocked. I see that it has bene mentioned before, but I wasn't able to figure out whether the issue will be tackled with. Anyway, thank you for your time and effort :)
 
Last edited:
  • 4Like
Reactions:
oof, this does not surprise me. If you know of any other bugs, let me know!



I remember a modder asking for the same thing. This is just for legions right?
I'm not aware how units are picked for levies and I don't know if they would use other units if, let's say, Archers and Light Infantry are locked behind a tech (if the triggers would work) and they would use more weaker couterparts that have no tech requirment that I modded in. But yeah, I personally noticed only Legion part.
 
Last edited:
I'm not sure if this is necessarily considered a bug within scope of the patch, but when viewing the timeline (replay) of the game after forming a different nation, the timeline only shows the formed nation, not the initial nation that you started with. So, for example if I form the Hellenic league as a Cretan nation, the timeline will show Hellenic league from the very beginning as a one province minor, rather than the initial nation I started with.
 
Last edited:
  • 2Like
Reactions:
I pushed out a new update with the following changes. Please do give feedback, and if you notice something is broken (new or old) make a bug report and link it if able!

At this point I fixed everything from my list that I wanted to fix, but I will take a look through the entire thread again if this is something else missing & easy to do.

I will let this stew for a weeks, and see what people encounter, and if it seems good, I will set this live as the default (with some additional fixes in script that are still missing)
This one is kind of odd and was noticed by someone in our MP community - we have a custom window for buying / selling provinces to make it easier than the standard option to sell one province at a time. As of 2.0.4 it suddenly stopped working. There's no clear indication in the error logs as to why this stopped working.

Maybe this?
Code:
[21:58:29][console.cpp:956]: You can't add new commands while the console is still running commands.

The GUI script is this:
Code:
margin_widget = {
    size = { 0 28 }
    layoutpolicy_horizontal = expanding
    margin = { 14 0 }
    margin_right = 7
    text_button_square = {
        size = { 100% 28 }
        layoutpolicy_horizontal = expanding
        datacontext = "[GetScriptedGui('sell_provinces')]"
        enabled = "[ScriptedGui.IsValid(GuiScope.SetRoot( Player.MakeScope ).AddScope('target', DiplomaticView.GetTargetCountry.MakeScope ).End)]"
        visible = "[Not(DiplomaticView.GetTargetCountry.IsBarbarian)]"
        blockoverride "On_click" {
            onclick = "[ScriptedGui.Execute(GuiScope.SetRoot( Player.MakeScope ).AddScope('target', DiplomaticView.GetTargetCountry.MakeScope ).End)]"
            onclick = "[ExecuteConsoleCommand('gui.ClearWidgets sell_provinces_window')]"
            onclick = "[ExecuteConsoleCommand('gui.createwidget gui/sell_provinces.gui sell_provinces_window')]"
        }
        blockoverride "Center_text"
        {
            text = "sell_province"
        }
    }
}

Any thoughts?
 
  • 1
Reactions:
Status
Not open for further replies.