Europa Universalis IV

Europa Universalis IV

Beyond Typus 11.5
This topic has been locked
Draíocht  [developer] 29 Jun, 2017 @ 1:26am
1.22 update bug discussion
After 2 weeks of struggling with an infuriating bug introduced when I was updating Beyond Typus to 1.22, and realistically no progress made in that time, I'm opting to try out the crowdsourcing method.

Perhaps some rogue coder can show me up, and find the problem in 5 minutes flat... Feel free to make me look like an idiot for not being able to find the problem, in fact, I challenge you to do so =p. I imagine it is something simple that I'm just not seeing because I'm to close to it.

Below is a link to the broken Alpha Test version of BT 7.0. Be warned, it crashes or freezes on Nov 12th 1444 every time.
Link to the broken Alpha Version[www.dropbox.com]

Please note that the mod, aside from the crash, is not 100% complete, so I'm primarily interested in the crash-causing bug and not later-start-date-innaccuracies, missing flags, or improper placeholders. Once I get a fix to this crash, I'll turn my attention to fixing those polish issues.

Progress to date:
  • Checked the /logs/error.txt file, as well as the other log files, and found nothing helpful (though feel free to double check me)

  • Downloaded "the Validator" and ran it. Despite finding some housecleaning issues, I didn't spot anything that should cause any crashes.

  • Cut files a few at a time, in order to try to establish by process of elimination which files were causing the problem. I found that removing a few dozen (specific) province history files in /history/provinces/ folder delayed the crash from the 12th Nov 1444 to sometime in the 1450s, but did not fix the issue. All other combinations I tried resulted in the same issue, or crash on startup (though obviously with 2,626 files, I couldn't try every combination... but I did try several hundred plus grouping together like files)

  • Arga discovered that disabling the AI using console commands in game appears to resolve the problem, perhaps narrowing down the issue to something AI-related.
< >
Showing 1-9 of 9 comments
Draíocht  [developer] 29 Jun, 2017 @ 1:26am 
Preface

Resolved in 14 hours...

I need to try this crowdsourcing thing next time I'm stuck ;p.

Special thanks to Arga for finding the key piece of evidence that led me to the problem, which turned out to be Paradox getting pickier with the default.map file (previously it didn't really appear to matter what you had there, and the engine appeared to prioritise values elsewhere. Now it matters, so some lazy didn't-bother-to-correct mistakes came back to bite me).
Last edited by Draíocht; 29 Jun, 2017 @ 4:13pm
Argakyan 29 Jun, 2017 @ 3:25am 
I'm going to continously update on anything I find out:

- enabling AI for Mamlucks again, after disabling it for all, crashes the game.
- Yupik (native nation in Alaska) crash it as well
- Denaina (native nation in Alaska) too
- The Isles in scotland crash it
- Karaman (middle anatolia) too

assumption: the AI seems to be related to the provinces in question. Then again nations like the ottomans don't crash the game, altough they're located in an area with provinces that are related to the issue.
Last edited by Argakyan; 29 Jun, 2017 @ 3:50am
deserk 29 Jun, 2017 @ 5:04am 
Is it something to do with this line from the error log? " [country.cpp:13184]: Attempting to set capital province #199 for AUV, they dont own it! "
Argakyan 29 Jun, 2017 @ 7:17am 
199 is a province in France, tied to the nation of Auvergne. However, France does not crash the game.

edit: the error seems to spam the error log, but I don't think it is related to the issue.
Last edited by Argakyan; 29 Jun, 2017 @ 7:19am
Argakyan 29 Jun, 2017 @ 1:32pm 
I was able to pin down 5099 as one problematic province.

If AI is disabled, you then write "own 5099" into the console so it switches ownership and then enable the AI for The Isles, the AI of The Isles does not crash the game anymore.

If you return the province to the AI after "owning" it, it seems to work just fine tho. The AI does not crash the game anymore.

assumption: the AI tries to interact with the province in some way, but fails. It must be sth that changes once the province changes ownership too.
Last edited by Argakyan; 29 Jun, 2017 @ 1:33pm
Draíocht  [developer] 29 Jun, 2017 @ 2:17pm 
@Arga
Helpful information, I'm going to try a few things based on this, though I still don't know exactly where the problem is.

I presume that you've re-enabled the AI for other nations and not received a crash?


@deserk
I'm my experience, a tag not owning its chosen capital doesn't cause any problems, it is just one of those housecleaning things, though I ought to fix it anyway, thanks.


@Arga
This is perplexing... but potentially very helpful. I'll keep ye updated if I discover anything.
Argakyan 29 Jun, 2017 @ 2:20pm 
I have tried re-enabling the AI for other nations from Crimea to the Blackfoot. All works, except for some nations that seem to overlap with those batches of presumably problematic provinces you made (I wrote down every nation confirmed to be causing crashes, more might be added if I find them).
Draíocht  [developer] 29 Jun, 2017 @ 3:23pm 
@Everyone

Might have gotten it, with Arga's help.

It seems Paradox cracked down on default.map file mistakes, which previously caused no problems. As a result, some lazy mistakes from older updates were coming back to bite me in the ***.

As of 5 minutes ago, I've resolved the 12th Nov crash, though more testing is needed to ensure long-term stability.
Draíocht  [developer] 29 Jun, 2017 @ 4:09pm 
@Everyone

Just finished a 15-year speed 5 test on observe, and had no issues, slowdowns, or crashes.

It appears the default.map file was indeed the culprit, for anyone looking at a similar issue in the future.

Thanks to everyone who tried to help out!
< >
Showing 1-9 of 9 comments
Per page: 1530 50