One line summary of your issue
[3.1.1] Crash using completely_controls_region with undefined region
Game Version
3.1.1
What expansions do you have installed?
Jade Dragon,
The Reapers Due,
Conclave,
Horse Lords,
Way of Life,
Charlemagne,
Rajas of India,
Sons of Abraham,
The Old Gods,
The Republic,
Legacy of Rome,
Sword of Islam,
Holy Fury
Do you have mods enabled?
Yes
Please explain your issue is in as much detail as possible.
Using the console to run this:
crashes the game:
It would be better if it returned false, since many modders can't easily get stack traces for crashes.
Steps to reproduce the issue.
Upload Attachment
[3.1.1] Crash using completely_controls_region with undefined region
Game Version
3.1.1
What expansions do you have installed?
Jade Dragon,
The Reapers Due,
Conclave,
Horse Lords,
Way of Life,
Charlemagne,
Rajas of India,
Sons of Abraham,
The Old Gods,
The Republic,
Legacy of Rome,
Sword of Islam,
Holy Fury
Do you have mods enabled?
Yes
Please explain your issue is in as much detail as possible.
Using the console to run this:
Code:
if = {
limit = {
completely_controls_region = x
}
log = "true"
}
crashes the game:
Code:
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x68)
* frame #0: 0x00ae645b ck2`CCompletelyControlsTrigger::Evaluate(CEventScope&) const + 267
frame #1: 0x00abbc08 ck2`CAndTrigger::Evaluate(CEventScope&) const + 84
frame #2: 0x0053e42a ck2`CIfEffect::Execute(CEventScope&) + 24
frame #3: 0x004d72e1 ck2`CEffect::Execute(CEventScope&) + 81
frame #4: 0x003261b9 ck2`OnExecute_RunEffects(CHuman&, CArray<CString> const&) + 982
frame #5: 0x003426a5 ck2`CConsoleCmdManager::Execute(CHuman&, CHuman&, CArray<CString> const&, bool) + 583
frame #6: 0x00323694 ck2`CConsole::HandleInput() + 458
frame #7: 0x00325419 ck2`CTextBufferObserverGlue<CConsole>::OnEnterPressed() + 37
frame #8: 0x00f9f2c6 ck2`CTextBuffer::Write(CKeyEvent) + 308
frame #9: 0x00f4319d ck2`CEditBox::ProcessInput(CInputEvent&, CMouse*, bool) + 1025
frame #10: 0x00f6b9ae ck2`CGui::HandleKeyEvent(CInputEvent&, CMouse*) + 112
frame #11: 0x00f6b693 ck2`CGui::HandelInput(CMouse*, CKeyBoard*, CList<CInputEvent>&) + 327
frame #12: 0x005d4d07 ck2`CInGameIdler::HandleInputWrapper() + 1645
frame #13: 0x005cc904 ck2`CInGameIdler::Idle(bool) + 10504
frame #14: 0x00e87b81 ck2`CApplication::UpdateOneFrame(bool) + 477
frame #15: 0x00e87c7e ck2`CApplication::Run() + 46
frame #16: 0x00786dbf ck2`main + 14084
frame #17: 0x00008135 ck2`start + 53
It would be better if it returned false, since many modders can't easily get stack traces for crashes.
Steps to reproduce the issue.
Upload Attachment
Upvote
0