Missing Image Crashes
-
Hello everyone
On the old forum I suggested altering the engine so that when it calls an image which isn't available, the game doesn't crash. The idea got some support but hasn't been added, so I thought I'd resuggest it. It would be useful when making a new map, and there are situations involving edit mode where someone might accidentally have a unit with no image (such as on TWW with the occupation units)
Instead of crashing, the engine would have a default image it can place instead, like a blank or maybe a question mark
-
@CrazyG I think this was added in at least for some cases. Though maybe not all?
-
@redrum
I had a crash yesterday when I edited a TWW territory to another owner. I'll try to recreate and post a save -
@redrum
What version was it added to? I haven't updated in a little while -
@CrazyG Should be in the initial 1.9 release I believe: https://github.com/triplea-game/triplea/pull/685
-
@CrazyG This has been made, tho I didn't see and don't see the problem with letting the game crash, when the game is wrong. The current behaviour is that the image is completely invisible, aside from its stack number, but you get this error:
MISSING IMAGE (this unit or image will be invisible): UnitType{name=X}
where "X" is the name of the unit.I can confirm that it works as intended, for me, in 1.9.0.0.6115.
If you hit it again, I suggest telling exactly what you did, so that others can reproduce. My guess is that you got the error of the missing image, but the crash, that occurred at the same time, was due to some other problem.
-
@Cernel
Bingo. I got an error when viewing the history, the top line was about the image not being available, but what actually caused the error is something else