: : What exactly is debug(not in FIAT)? Please give me details about what it does.Thank You.
: If you equip "Enable Log File" on your front-end, a text file will be written inside your d-mod's dir. It will mostly be a lot of nosensical garbage, but sometimes you can find useful information, such as bad-pics, and where a large script is going wrong. When writing a script, if you put
: debug(anything_you_want_to_write);
: the "anything..." will be printed in the text file at the the point when the engine read it, and thus, helps to locate where the script was when the nonsensical garbage was written.
: that probably doesn't explain it very clearly, but if you were hoping "debug" meant, "fix my poor scripting", you're out of luck :p
LOL.. :o
You can also enable and disable debug in-game, by using Alt+D. You will get less nonsencial garbage that way.. ;)
PS: If you only want to check an integer, you should use say()s instead, because that works much better. :)