• 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.

jumbi

Elder Councillor & Servant of the Masters
96 Badges
May 18, 2013
841
2.380
  • Stellaris: Galaxy Edition
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Pre-order
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • A Game of Dwarves
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Legacy of Rome
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Charlemagne
  • Magicka
  • Europa Universalis IV: Res Publica
  • Crusader Kings II
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Age of Wonders: Planetfall Deluxe edition
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Shadowrun Returns
  • Cities: Skylines - Green Cities
  • Imperator: Rome Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Victoria 3 Sign Up
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • Stellaris: Federations
Short summary of your issue
Scripted Effect Parameters Converted to Strings Improperly

Game Version
1.3.1

What OS are you playing on?
Windows

What platform are you using?
Steam

Do you have mods enabled?
Yes

Have you tried verifying your game files (Steam only)?
Yes

How much "pain" is this causing you?
2

Please explain the issue you experienced in the most condensed way possible
When referencing a scripted effect parameter inside of custom tooltip or other localization block, they do not appear to be converted to strings properly. Rather than remove the leading and trailing dollar signs and display the value of the parameter, they instead delete the character preceding the value in the string and the leading dollar, then display the value followed by the trailing dollar sign.

e.g.
Suppose TRIBUTE_PERCENT = 0.4 and the localization is "Will pay $TRIBUTE_PERCENT$ percent of their income"

Expected output: Will pay 0.4 percent of their income

Actual output: Will pay0.4$ percent of their income

This occurs similarly with character scopes, preventing their use in localization commands due to the tailing dollar sign

Please explain how to reproduce the issue
Create a scripted effect which takes in a parameter and displays it in a tooltip
e.g.
debug_param_effect = {
custom_tooltip = "Hello $DEBUG_PARAM$"
}

Open CKIII in debug mode
Go to the script runner in the object explorer
Enter the command "debug_param_effect = { DEBUG_PARAM = World }"
Parse the command and mouse over its tooltip
Output will be "HelloWorld$" rather than expected "Hello World"

Is there anything else you think could help us identify/replicate the issue?
I have attached the example scripted effect above to quickly reproduce the issue.

I have attached a save game
No

Upload Attachment
File(s) attached
 

Attachments

  • debug_param_effect.txt
    72 bytes · Views: 0
  • debug_output.png
    debug_output.png
    31,1 KB · Views: 0
Last edited:
Upvote 0
For anyone else experiencing the same issue, an alternative in the meantime is to supply the param as a value in a custom description:
Code:
custom_description = {
    text = tribute_percent_info_tt
    value = $TRIBUTE_PERCENT$
}
 
  • 1
Reactions: