Where do rebels spawn? Some preliminary investigation notes.

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

lambda x.x

Captain
37 Badges
Jun 27, 2020
330
1.009
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Imperator: Rome - Magna Graecia
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Victoria 2: A House Divided
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2
  • Crusader Kings II
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Cadet
I did enough testing to throw the towel...
1598723205720.png

This is my setup; sorry for the hard to read color, but on each of the four provinces Ulch, Bohori, Pijin, and Wolanhe, I wrote out its current unrest (the decimal one) and its province ID.
All of the provinces have tribal rebels, are 2/2/2 dev, are mountain terrain, have the same supply limit, and are Jurchen/Tengri.

First, I saved my game here and attempted to figure out where rebels would spawn by using provoke rebels (with the hope that that uses the same decision making procedure as rebels naturally spawning at 100%).

First, where do rebels spawn in this setup? It seemed to spawn in Ulch -- I reloaded the game and tested it three times.

Then I tried a couple things:
  • if i raise autonomy on Bohori, it spawns in Pijin
  • i raise autonomy on bohori, pijin, and wolanhe, and now it spawns on bohori
  • i raised autonomy on bohori again, and it spawned in Ulch
  • i raised autonomy on bohori again, and it spawned in bohori
These are already WTF-worthy, but something even weirder:
I had rebels spawn in Bohori in the initial unmodified setup!

So this made me feel a bit confident that somehow the spawn location is non-deterministic if equal dev/supply limit/terrain/culture/religion. Hmm okay.

So then I dev-pushed just Wolanhe once to 3/2/2. Then I got the following results:
Ulch: 2 Bohori: 3 Pijin: 2 Wolanhe: 5

Yet another WTF moment.

So now my unsatisfying conclusion is that the spawn location is weighted RNG and high dev is a factor that makes it more likely to spawn there. Basically, there is no way to the best of my knowledge to pinpoint rebel spawn location.

If any brave spaghetti consumers want to take over the test, I would love to hear any results.
 
  • 1
Reactions:

LamentP

Recruit
38 Badges
May 10, 2018
3
6
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Prison Architect
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Victoria 2
  • Crusader Kings II
  • Magicka
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
That hasn't changed in 1.30 at least. They definitely still spawn on highest development province with unrest. If there are two tied for highest development I think it just spawns randomly, though I'm not sure.
 

grotaclas

Field Marshal
54 Badges
Aug 7, 2019
5.057
4.616
  • Victoria 3 Sign Up
  • Battle for Bosporus
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Golden Century
  • Europa Universalis 4: Emperor
  • Cities: Skylines
In my experience the rebels almost always spawn in the province with the highest dev. But occasionally they spawn in a province with lower development. I did an experiment(I think in one of the 1.29 patches) when I noticed rebels spawned in a province that didn't have the highest dev in one of my games. I reloaded that save multiple times and if I remember correctly rebels spawned in the highest dev province about 90% of the time. But in other occasions it feels like the chance is much higher than 90%.
I think a weighted RNG is a good explanation. Maybe the amount of unrest also plays a role and your unrests over 90 shift the weight.
 
  • 3Like
Reactions:

lambda x.x

Captain
37 Badges
Jun 27, 2020
330
1.009
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Imperator: Rome - Magna Graecia
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Victoria 2: A House Divided
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2
  • Crusader Kings II
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Cadet
AFAIK its can only spawn in provinces with unrest. And it used to always spawn in the province with highest development.

Has that changed ?

Yes, it does spawn in provinces with positive unrest only. 0 unrest provinces will still be part of the demands of the rebel, but the rebel itself will come from positive unrest. When you say it used to, what patch? I've definitely seen rebels spawning and ignoring the highest dev rule on 1.29.

That hasn't changed in 1.30 at least. They definitely still spawn on highest development province with unrest. If there are two tied for highest development I think it just spawns randomly, though I'm not sure.

I know it's a bit long, but can you try to re-read my first post? It contains a detailed description of a series of tests in 1.30.3 that don't agree with your claims.

In my experience the rebels almost always spawn in the province with the highest dev. But occasionally they spawn in a province with lower development. I did an experiment(I think in one of the 1.29 patches) when I noticed rebels spawned in a province that didn't have the highest dev in one of my games. I reloaded that save multiple times and if I remember correctly rebels spawned in the highest dev province about 90% of the time. But in other occasions it feels like the chance is much higher than 90%.
I think a weighted RNG is a good explanation. Maybe the amount of unrest also plays a role and your unrests over 90 shift the weight.

Yes, weighted RNG is the best I have as well. It's very unsatisfying though, and I'm unsure of all the exact factors that come to play.
 

LamentP

Recruit
38 Badges
May 10, 2018
3
6
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Prison Architect
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Victoria 2
  • Crusader Kings II
  • Magicka
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
I know it's a bit long, but can you try to re-read my first post? It contains a detailed description of a series of tests in 1.30.3 that don't agree with your claims.

I decided to test it out myself. I loaded up donghai, made the donghai tribes mad, and tested it myself, coming to the same conclusion - At least in the case of using provoke rebels with tribal rebels, the province isn't always the highest dev one. I don't have time or effort right now to run 1000 tests to see if the results are directly proportional to the development, but i did boost one province well above the rest in dev, and tested it 10 times - all 10 of which landed in that boosted province, so we can safely assume that they spawn more often in high dev provinces (probably directly proportional, but hard to say without a lot of data or source code confirmation)

Then I went one step further and tried to see if this is just the result of the "provoke rebels" mechanic. So I let the game run until the rebels spawned naturally, and on my second try, I saw that once again the rebels failed to spawn in the highest dev province.

And, out of desperation, since I feel like in my 500 hours playing, I have never seen them spawn outside of the highest dev province, I loaded up hungary to see if its just a mechanic of tribal rebels and not, say, separatists (since I've never had tribal rebels spawn ever). I tested it 10 times with transylvanian separatists , and all 10 times using "provoke rebels", they spawned in the highest dev province (among an 8:7:7 split). So separatists are exactly as we thought - they will spawn in the highest dev province, no matter what. Its a mechanic of tribal rebels (and maybe other types as well)

TL;DR It's the fact that they're tribal rebels that they seem to spawn proportionally to development - separatists always spawn on the highest dev province, don't know about other types of rebels.
 
Last edited:
  • 1
Reactions:

lambda x.x

Captain
37 Badges
Jun 27, 2020
330
1.009
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Imperator: Rome - Magna Graecia
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Victoria 2: A House Divided
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2
  • Crusader Kings II
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Cadet
I decided to test it out myself. I loaded up donghai, made the donghai tribes mad, and tested it myself, coming to the same conclusion - At least in the case of using provoke rebels with tribal rebels, the province isn't always the highest dev one. I don't have time or effort right now to run 1000 tests to see if the results are directly proportional to the development, but i did boost one province well above the rest in dev, and tested it 10 times - all 10 of which landed in that boosted province, so we can safely assume that they spawn more often in high dev provinces (probably directly proportional, but hard to say without a lot of data or source code confirmation)

Then I went one step further and tried to see if this is just the result of the "provoke rebels" mechanic. So I let the game run until the rebels spawned naturally, and on my second try, I saw that once again the rebels failed to spawn in the highest dev province.

And, out of desperation, since I feel like in my 500 hours playing, I have never seen them spawn outside of the highest dev province, I loaded up hungary to see if its just a mechanic of tribal rebels and not, say, separatists (since I've never had tribal rebels spawn ever). I tested it 10 times with transylvanian separatists , and all 10 times using "provoke rebels", they spawned in the highest dev province (among an 8:7:7 split). So separatists are exactly as we thought - they will spawn in the highest dev province, no matter what. Its a mechanic of tribal rebels (and maybe other types as well)

TL;DR It's the fact that they're tribal rebels that they seem to spawn proportionally to development - separatists always spawn on the highest dev province, don't know about other types of rebels.

Hmm, thank you. It didn't really occur to me whether rebel types make a difference. Honestly, separatists tend to be the ones I care about spawn-killing, so I'm going to try some additional testing with that in mind.
 

grotaclas

Field Marshal
54 Badges
Aug 7, 2019
5.057
4.616
  • Victoria 3 Sign Up
  • Battle for Bosporus
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Golden Century
  • Europa Universalis 4: Emperor
  • Cities: Skylines
I have seen separatists spawn in a province that didn't have the highest development at least once(this was in 1.28 or 1.29). So I don't think that separatists always spawn on the highest dev province. But maybe it is much more likely for them.