Crash when leaving a scene/Pressing Tab

Users who are viewing this thread

Title. This doesn't happen all the time but sometimes the game crashes when changing or leaving a scene or pressing tab. Disabling load textures on demand helps. What might be the problem?

Edit: This only happens when playing my mod.
 
Last edited:
Solution
@Maelubiyet
Played your mod for a couple hours at very high settings and couldn't make it crash :lol: It looks pretty stable.
However i've seen another bug in the troops.txt
trp_town_10_master_craftsman {!}Town_10_Craftsman {!}Town_10_Seneschal 0 4126 0 0 3 0 0
40439920002071052921011954222634137015319850303850651429519409283072 0 431253861325407421036619593339943315758043807246597970933903576268800 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0
There are...
@Maelubiyet
Played your mod for a couple hours at very high settings and couldn't make it crash :lol: It looks pretty stable.
However i've seen another bug in the troops.txt
trp_town_10_master_craftsman {!}Town_10_Craftsman {!}Town_10_Seneschal 0 4126 0 0 3 0 0
40439920002071052921011954222634137015319850303850651429519409283072 0 431253861325407421036619593339943315758043807246597970933903576268800 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0
There are 2 invalid items in the guy. (Town 10 is 'Shattered Skull')
Values look like face codes. You may have pasted face codes to where items should be in the module_troops.py. Check this guy.
 
Upvote 0
Solution
Are we talking about linux and mac? I just use good old windows 10 :smile:
Edit:
Checked the moddb page. He says:
Common Crashes and Linux/Mac Compatibility

Many players are aware that Legacy of the Dragon doesn't work on Linux and Mac. Also it sometimes crashes when you start a new game, or load and there is less common "leaving a scene" crash. When I first started creating the mod, I didn't know anything about these operating systems and as you know the early phase of the development process was rushed because of my approaching military service. So when I first realized these problems, I decided to pay attention to them after the release. But if I were to try to narrow down the problem early in the development phase, it would've been easier.

If you check my posts on taleworlds forums, you would see that I'm actively looking for solutions to these problems. Also I asked more experienced modders for help and thankfully Swyter pointed out how I could find the source of these crashes. And I think I'm close. It's something in the troops file or some of the models/textures are corrupted. Finding the source of the problem requires a lot of grunt work and it's quite stressful, so I'm sorry to announce I postponed this process to this summer as with work, school and all that I'm not sure I'm ready to take on the struggle. But, sooner or later, I will fix these problems.
Doesn't that mean it crashes in windows?
 
Last edited:
Upvote 0
So I had two problems.

The first is, game would start on crash, at "loading map file", this happened sometimes on windows (1 out of 5 times) and every time on linux and mac and making it unplayable.

The other is sometimes when you're trying to leave a scene, it would crash to desktop. This happened on windows (not sure about linux as you couldn't even start the game).

I'm 90% percent sure they are related as it often happens on windows when you alt tab back and out.

Now, this:

There are 2 invalid items in the guy. (Town 10 is 'Shattered Skull')
Values look like face codes. You may have pasted face codes to where items should be in the module_troops.py. Check this guy.

This worked. Fixed this troop, switched to linux and the game successfully started. It was this one troop. Can't believe it was something this simple.

Regarding the other crash, it usually shows up after playing a little, so I will have to test it. I'm pretty much sure it's fixed too, if not, it was the lesser of two dragons anyway.

Thank you so much. I will add you all to the credits.

RecursiveHarmony, Eärendil Ardamírë, Swyter and phallicassortment. Thank you all for helping me track down the problem.
 
Last edited:
Upvote 0
I haven't tried a lot. I was working on a editor for these m&b games. It has a couple error detection mechanisms. One of these is what i call "Type Mismatch". It catches unparseable data types. In this case, those values are not 32-bit integers, so the application catches those.
Here is a screenshot (Work in Progress, so gui kinda sucks :smile: ) T is int.
Y60p7rC.jpg
 
Upvote 1
Back
Top Bottom