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

Arrnea

Meatbag Exterminator
67 Badges
Jun 30, 2008
531
300
  • Stellaris: Necroids
  • 500k Club
  • Arsenal of Democracy
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Holy Fury
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Stellaris: Apocalypse
  • Stellaris: Megacorp
  • Stellaris: Federations
  • Stellaris: Leviathans Story Pack
  • Stellaris: Synthetic Dawn
  • Stellaris: Distant Stars
  • Stellaris: Ancient Relics
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Humanoids Species Pack
  • Stellaris: Lithoids
  • Surviving Mars
  • Surviving Mars: First Colony Edition
  • Surviving Mars: First Colony Edition
  • Magicka
  • Prison Architect
  • Prison Architect: Psych Ward
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Parklife
  • Cities: Skylines Industries
  • Cities: Skylines - Campus
  • Age of Wonders III
  • Majesty 2 Collection
  • Shadowrun Returns
  • Sword of the Stars
One line summary of your issue
[3.0.1 CDYZ] Can't declare Invasion due to likely integer overflow at ~2M nomad population

Game Version
3.0.1 CDYZ

What expansions do you have installed?
All of the above

Do you have mods enabled?
Yes, but none that change the checksum.

Please explain your issue is in as much detail as possible.
When attempting to declare an Invasion CB war with a nomad horde having more than about 2 million total population, the game doesn't seem to think that you are at over 75% of your maximum population even when you are, and hence won't let you declare the war. I would guess that this is because of an integer overflow somewhere.

Steps to reproduce the issue.
Blob really hard as a nomad horde (eg. Mongols, Khazaria) until you have >2M nomad population and attempt to declare an Invasion war on someone.

Upload Attachment
632fcd527a.png

21b4390da7.png
 
Last edited:
Upvote 0
As an additional note, I would guess that this bug is caused specifically by the total nomad population exceeding 2,147,483.648 (2^32 / 2000).
This is unfortunate, because your nomad population will almost certainly reach this before total conquest, no matter who you are playing as, making further conquest impractical.
 
I'm not sure why you have 2000 as a denominator. Perhaps it's a known thing--well, a thing known by others. But an alternative case is that it is somehow processed as a 21-bit number which would overflow at 2,097,152.
 
I'm not sure why you have 2000 as a denominator. Perhaps it's a known thing--well, a thing known by others. But an alternative case is that it is somehow processed as a 21-bit number which would overflow at 2,097,152.

I was thinking 2,000 because it's probably processed as a signed 32-bit integer, but storing the first three decimal places (for whatever reason) as part of the integer.
 
This is still an issue - I hope it's been noted already (and that's why I'm not getting any dev response).
 
Aaaand this is still broken (effectively preventing further play in this game), without even a single dev acknowledgement (for almost two months).

What gives, Paradox?
 
Still broken. Can this please get looked at?
It's stopping me having any interest in playing as a nomad (since the entire point of nomad play beyond a certain point is to burn down the entire world).
 
Sorry for not acknowledging this earlier.
It might be because the STR takes some time to do and that there wasn't any save file.

I've made a potential fix for this issue, if it works and has no side effects it should be included in the next patch (after Great Works).
 
Sorry for not acknowledging this earlier.
It might be because the STR takes some time to do and that there wasn't any save file.

I've made a potential fix for this issue, if it works and has no side effects it should be included in the next patch (after Great Works).

Awesome. A million internet points!

[begins plotting to burn even more of the world as a rampaging nomad horde]
 
I was thinking 2,000 because it's probably processed as a signed 32-bit integer, but storing the first three decimal places (for whatever reason) as part of the integer.

This is probably right. I see a failed crusade in the planning stages right now, and the attackers have no one on their side. The defenders, including me, have an enormous army. The total strength reported is 2 147 483 percent (of the attackers' strength), which is 2^31/1000, after truncating the fraction.