kalarhan said:
on the contrary, if the CTD is caused by bad code like a wrong loop breaking memory, or a engine bugged operation, among other things, you can track down the parts that work until you find the one that explodes it
logging messages are not only for logical errors, even tho that is their basic use.
Well, in Warband one can't usually narrow down the cause of ctds to a particular script. They usually happen randomly (and don't happen again when you restart the game) on the global map or in a battle or in similar situations when dozens of different scripts are running (+ graphical processing, which in my experience was responsible for most cases of ctds, except that weird one with "cursed range" of items 2504-2522).
Personally, I never encountered ctds during something as simple as a particular presentation or a particular conversation.
And if I did encounter a case like that, where I would know which script (or 1 out of 2 or 3) is responsible, simply reading them would probably be enough to notice an error so big that it caused ctds. So there is no use for debug messages.
And if a ctds is happening randomly on a global map, I would need like thousands of debugging messages in dozens of scripts/triggers to find the cause. So, again, it's useless. I would first of all have to narrow down the cause to a couple of scripts by disabling triggers one by one. And - when I only have a couple of suspects left - I have the situation #1.
And if someone has a particular script which is certain to cause ctds but can't find the cause by simply studying it, I'm not sure this person will be able to fix the code even if he's shown a particular operation that is to blame.
Because ctds are not caused by something small and hard to find like missing "try_end" or a wrong local variable used in an operation or most of other things that passed the compiler's check, it has to be something big and messed up (even inappropriate operations with a wrong number of variables or used in inappropriate ways are usually just reported by the engine and do not cause ctds). Like a mammoth in the room.