On linux errors (are or were?) spouted to the terminal as well as lgm's console. On linux copying from the terminal is very easy. However windows has the shitiest terminal in the history of ever... It was so slow poly hid it. I think output for windows is saved to enigma_log.log or sum shit instead.
I know where errors are written to. The fact though is that they should be a) Shown on the screen and b) Be consistent.
We do, it's the same function from GM8.1
We don't.
1. That function is NOT used in all places in ENIGMA (hence my need for a uniform function).
2. It doesn't do what I want. It's meant for games or programs made with ENIGMA, not ENIGMA's engine itself. So things like copying from that function or even proper formatting is impossible. What I mean is this:
http://docs.yoyogames.com/source/dadiospice/images/errorreport.pngWe could even make it fancier than that.
So I propose writing a simple wiki page standardizing both the format of the error (so they are all written in a standardized way) and making a specific ENIGMA function to show the error (they function will probably not be available to users, so it's in enigma namespace). The function needs to return the instance and event the error happened in, the function name as well if possible. The function should probably be of kind:
"Error in function draw_background - Background with %ID% doesn't exist", where %ID% is the ID passed to the function. For regular compiles the errors can be less verbose and just show the position of error. This verbose variant with printing function names and error parameters should only be used in debug mode, so the size wouldn't bloat.
Any better ideas or suggestions? Maybe Robert can write a wiki page about it (my lazy excuse is that I am not a "wiki guy"
). When we come to a consensus, then we can start implementing. Josh's input would also be appreciated, as he wrote the original error mechanism.