Skip to content
User Avatar
#3488
Auto-translated
}{0TT@6bI4
RedHeavenHero, could you please provide some insight? If I rewrite the Errormessage function like this:
errmsg = _ERRORMESSAGE
function _ERRORMESSAGE(msg)
errmsg(msg)
end

And then call MessageBox('') in the console, instead of the usual error "Empty message text!", the game crashes. A long time ago, you helped Dorman hide the error "attempt to call a nil value"; I want to catch the error of a missing text file using a similar method, i.e., determine if it exists. I would be grateful for your help.
For some reason, the game crashes when it tries to call _ERRORMESSAGE, which is not a built-in C function. That is, it can only be reassigned to another existing one, such as print or StopTrigger (the latter, despite its name, does nothing in my observation).
If you need to catch an error, use errorHook.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4