Stellaris - [3.7.4 (b646)] -0%s cause faction approval to round down from 80% to 79%, costing me 5% happiness

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

SirBlackAxe

General
16 Badges
Aug 13, 2021
1.752
4.085
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Nemesis
Description
[3.7.4 (b646)] -0%s cause faction approval to round down from 80% to 79%, costing me 5% happiness

Game Version
Canis Minor v3.7.4

What version do you use?
Steam

What expansions do you have installed?
All except Toxoids.

Do you have mods enabled?
Yes
(Only mod is the test branch of the Storm Cluster MODJAM2022 crisis, which isn't going to do anything until midgame and hasn't thrown anything to error.log besides the two expected overwrites.)

Please explain your issue is in as much detail as possible.
The Xenoist faction just spawned with the Indirect Xenology (-5%), Enclaves Incorporated (-0%), and Federated (-0%) demands unfulfilled, and the No Purges (+0%), All Refugees Welcome (+10%), New Contact (+5%), Proactive First Contact Protocols (+10%), and Benevolent Subjugation Policy (+10%) demands fulfilled. Combined with the base 50% approval this adds up to 80% (50-5-0-0+0+10+5+10+10), but the actual resulting approval is 79%.

This seems to be because those ±0%s are actually ±0.001s with the decimals hidden, meaning the approval calculation comes out to 79.999% which just isn't good enough for the pop happiness threshold at 80%.

Steps to reproduce the issue.
Have more -0% approvals than +0% approvals for a faction.

This can be fixed by replacing all instances of unfulfilled_effect = -0.001 with unfulfilled_effect = 0. Or making base faction approval 50.01 to counteract up to 10x -0.001s.

Upload Attachment
File(s) attached
 

Attachments

  • approval rounding.png
    approval rounding.png
    1,3 MB · Views: 0
  • 2211.01.22 xenoists.sav
    1,5 MB · Views: 0
  • 2
Reactions: