📧 Message Board Archive

Debug
What exactly is debug(not in FIAT)? Please give me details about what it does.Thank You.
Re: Debug
: 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

Re: Debug
: : 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. :)
Re: Debug
: PS: If you only want to check an integer, you should use say()s instead, because that works much better. :)



What do you mean "say()" and where do I use it?

Re: Debug
: : PS: If you only want to check an integer, you should use say()s instead, because that works much better. :)

: What do you mean "say()" and where do I use it?



He means, if you need to know the value of a particular varibale, you can use...

say("the variable equals &variable.", 1);

...in a sprite's "void talk (void)" procedure and when you talk to that sprite the value of "&variable" will be given.



say("You have &life life points, Dink", &current_sprite);

:)