Mafia Scene - Mafia I & II Game Fan Site

Modders Corner => Mafia Editing => Mafia mods => Topic started by: vapno92 on August 23, 2012, 11:11:47 PM

Title: Developer (debugging) mode on.
Post by: vapno92 on August 23, 2012, 11:11:47 PM
Does somebody know, how to turn on the debugging mode in Mafia?




There are script, that sends debug texts to game and I'd like to read them  (//wp-content/uploads/invision_emoticons/smile.png)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/smile@2x.png 2x" width="20" height="20">
Title: Developer (debugging) mode on.
Post by: djbozkosz on August 25, 2012, 04:53:35 PM
QuoteDoes somebody know, how to turn on the debugging mode in Mafia?

There are script, that sends debug texts to game and I'd like to read them  <img src="/wp-content/uploads/invision_emoticons/smile.png" alt="(//smile.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/smile@2x.png 2x" width="20" height="20">



 




I don't know how do it, but when I'm debugging scripts I create some debug strings in textdb_xx.def file and I use console_addtext nnnn command, where nnnn is the ID in textdb_xx.def file.
Title: Developer (debugging) mode on.
Post by: djbozkosz on August 28, 2012, 06:53:09 AM
Quote<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="400" data-ipsquote-contentclass="forums_Topic"><div>Does somebody know, how to turn on the debugging mode in Mafia?

There are script, that sends debug texts to game and I'd like to read them  <img src="/wp-content/uploads/invision_emoticons/smile.png" alt="(//smile.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/smile@2x.png 2x" width="20" height="20">



 




I don't know how do it, but when I'm debugging scripts I create some debug strings in textdb_xx.def file and I use console_addtext nnnn command, where nnnn is the ID in textdb_xx.def file.


</div></blockquote>

 




You can also use entity_script ssss command, where ssss is the string (directly, not ID) whitout quotations.




It displays new window, but this command works only in human scripts, not standard scripts.
Title: Developer (debugging) mode on.
Post by: vapno92 on August 28, 2012, 07:07:17 AM
Thank You, I solved it via console_addtext.