Hi everyone!
There is a variety of good things with Linux (Ubuntu) that I've been using for three or four months now, two of which are the following.
- The Linux-native version of the game seems much more stable. I haven't had not even one single CTD. Ever. Thank Feral Interactive for that probably or the OS, I don't know.
- Maybe because of that, in a grand feat of misjudgment, Feral Interactive preferred to not include the production of a log in medieval2.preference.cfg. Ergo I always have new problems to write about... EDIT: Or maybe it's me to blame, I don't know for sure.
The problem: When a CTD occurs, there is no system.log.txt or it is empty.
For the record:
- Steam version of the game. Everything else works great.
- Linux OS, Ubuntu 16.04 LTS. Everything else works great.
- Vanilla + Kingdoms. Wait for it: Everything works great.
- Mods work great too.
- Feral Interactive is the company that created the game for Linux (and Mac).
Let's get to it then:
Here is what my unedited and backed-up medieval2.preference.cfg file looks like:
Spoiler for Medieval2.preferences.cfg:
As you can clearly see in there, there is no:As was expected, I added it myself right at the bottom. It looks like this now:Code:[log] to = logs/system.log.txt level = * trace
This should have solved the problem, but no, it hasn't. What's the reason for this?Code:[log] to = logs/system.log.txt level = * trace [misc] show_hud_date = true [io] file_first = true
First possible reason: I am playing mods only.
So, it is possible that the mod.cfg doesn't include such a line. It's not the case in all the mods I play. Take TATW for example:
Besides, I have learned that the Steam version of the game references not the mod.cfg, but the base game's .cfg, i.e. medieval2.preference.cfg. The result should be the production of a log.Code:[log] to = logs/system.log.txt ;level = * trace level = * error
Second possible reason: I can't find the log file
No, because it should be in the logs folder. Besides, I have used the powerful search function in all my hard disc and nothing was found. Oh, wait! There was something found, a system.log.txt, or something like that, but it was empty. Completely empty that is, not even a single letter. Even the size of it is 0 bytes.
In one of my mods (Thera) I changed the folder path for testing purposes. This resulted in the production of a thera.system.log.txt, but alas it was empty too.
Third possible reason: They are not CTDs
My still-present-but-waning Windows reflexes have me used to a pop-up window when the game crashes: Medieval II Total War has encountered an unspecified error and will now exit. Something like that, I haven't seen it in ages. The thing is exactly that: I haven't seen it in ages, because when the game crashes and I'm back in my desktop again, there is no pop-up window. So, the result is the same, but the appearance is different, and that's why I assume it is a CTD.
Fourth possible reason: The file placement
This is a tricky one. IIRC the medieval2.preference.cfg was located somewhere inside the Medieval II Total War folder. This is not the case in Linux. The folder structure in this peculiar Feral Interactive+Linux+Steam installation is as follows:
Base game folder
Medieval2.preference.cfg folderCode:.local/share/Steam/steamapps/common/Medieval II Total War/share/data/
Logs folderCode:.local/share/feral-interactive/Medieval II Total War/VFS/Local/preferences/medieval2.preference.cfg
It is possible that the game doesn't send the crash data to the correct folder path.Code:.local/share/fereal-interactive/Medieval II Total War/VFS/Local/logs
Fifth possible reason: Case sensitivity
The least probable cause, mentioned only for the sake of completeness and to avoid related discussions. Linux is case sensitive, which means that this.txt is completely different than This.txt. This could result in the assocciated game engine function not finding the correct file to write its report about the crash.
It has mostly been ruled out, because the case sensitivity issue is related only to files and folders names, not their contents.
A note on *.dmp files: Not the case probably
They are supposed to log everything that was happening when the PC crashed. There is a ton of *.dmp files in the following conspicuous directory:
An example of such a file:Code:.local/share/feral-interactive/Medieval II Total War/crashes
After every CTD one of them is produced. I have spent a lot of time and energy trying to understand what these files are, how to open them, how to read them, how to debug them. Only to find out that I can open them with a text editor and wait for some minutes... Anyway these files are logging what was happening during the crash in the PC, not in the game.Code:00d312b2-8b83-4848-04111b73-729178ac.dmp
Another useful note: No CTDs when playing vanilla or Kingdoms (I said that already, didn't I?)
Yep, there are no CTDs whatsoever. But only when playing the Vanilla game or the Kingdoms expansions. There is this irritating custom settlement bug in mods that is almost guaranteed to cause a CTD. So, when asking for help from the IWTE gurus, I am asked to provide a log and I can't.
There are also my various modding attempts that by necessity come to stop with my first mistake, since I can't find out where I made the mistake and I have to abandon the project.
Finally, my devious plan: Cause a CTD myself
My super cool idea was to manually cause a CTD when playing the Vanilla game and see what happens. This will circumvent the Vanilla vs Mods problem stated above (First reason). Apparently the usual method of navigating the various menus (form Custom Battle to Campaign selection used to crash the game) didn't work, probably because Feral fixed it (?).
So, does anyone know how to cause a CTD? Edit wrongly the serialization number in BMDB would work?
This is my first babystep to find a solution. With any feedback I will update this post to include the info and the progress.




Reply With Quote











































