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

MehPeh

Recruit
Jan 16, 2024
2
2

Integrity​

I have verified my game files (on Steam)​

Yes

I have disabled all mods​

Yes

Required​

Summary​

Collapse of the Mamluk Sultanate bug - Egypt already exists

Description​

as Semien I united the horn of Africa and took the Egyptian part of the Mamluks ( Shemot is not achievement attempt )
Then I completed all requirements to turn into Egypt, Both Mamluks and Ottomans were still active on the map.
I changed from Semien to Egypt and a few decades later the Ottomans and Mamluks went to war. ( I was not part of the war )
The Ottomans easily sieged down the Mamluks capital and the Collapse of the Mamluk Sultanate event fired.
I received the event mission saying that the Ottomans had besieged and taken 'my' capital and choice for white peace.
After this my countries name changed from Egypt to Eyalet-i Misir
all my subjects were released and I became the Subject to the Ottomans.
Also the Mamluks were still active on the map, their country didn't change name, color, status, they even held all of their subjects.
As if nothing ever happened.
I guess The game trying to turn the Mamluks into Egypt while Egypt exists messes things up

Steps to reproduce​

Step 1: Form Egypt ( I did this with Jewish Simien idk if that makes a difference )
Step 2: Wait for the Ottomans to invade the Mamluks
Step 3: Collapse of the Mamluk Sultanate event will fire
Step 4: Your Nation will undergo the effects of the event instead of the Mamluk

Game Version​

1.36

OS​

Windows

Additional​

Bug Type​

  • Other

Attachments​



Screenshot​



 
Last edited:
  • 2
Reactions:

Integrity​

I have verified my game files (on Steam)​

Yes

I have disabled all mods​

Yes

Required​

Summary​

Collapse of the Mamluk Sultanate bug - Egypt already exists

Description​

as Semien I united the horn of Africa and took the Egyptian part of the Mamluks ( Shemot is not achievement attempt )
Then I completed all requirements to turn into Egypt, Both Mamluks and Ottomans were still active on the map.
I changed from Semien to Egypt and a few decades later the Ottomans and Mamluks went to war. ( I was not part of the war )
The Ottomans easily sieged down the Mamluks capital and the Collapse of the Mamluk Sultanate event fired.
I received the event mission saying that the Ottomans had besieged and taken 'my' capital and choice for white peace.
After this my countries name changed from Egypt to Eyalet-i Misir
all my subjects were released and I became the Subject to the Ottomans.
Also the Mamluks were still active on the map, their country didn't change name, color, status, they even held all of their subjects.
As if nothing ever happened.
I guess The game trying to turn the Mamluks into Egypt while Egypt exists messes things up

Steps to reproduce​

Step 1: Form Egypt ( I did this with Jewish Simien idk if that makes a difference )
Step 2: Wait for the Ottomans to invade the Mamluks
Step 3: Collapse of the Mamluk Sultanate event will fire
Step 4: Your Nation will undergo the effects of the event instead of the Mamluk

Game Version​

1.36

OS​

Windows

Additional​

Bug Type​

  • Other

Attachments​



Screenshot​

I believe what happens is that, since Egypt already exists, the change_tag effect to change Mamluks to Egypt fails. It'll default to nothing.
At which point, it then sees that Egypt already exists... and assumes that said Egypt must have been formed by the Mamluks (aka, it doesn't check for was_tag = MAM).
The event, instead of using a dynamic scope, instead uses just the tag for Egypt (which you were), and therefore you get slapped with the effects. (Confirmed by checking the actual event's script.)

The fix? Either disable the CB if Egypt already exists, or re-organize the event's code so that it never leaves the Mamluks' scope. This way, even if Mamluks cannot form Egypt, they still get the rest of the effects. This would require reworking missions, however.

Actual code in question:
1705565146145.png
 
  • 1Like
Reactions: