PDA

View Full Version : Debugging Scripts


Krauter
08-11-10, 10:13 AM
How do I open the Debugging Menu, Viewer, whatever it is, in game?

I do have Debugging Enabled in my main.cfg

KarlKoch
08-11-10, 10:19 AM
Start game in window mode (resolution smaller than your screen resolution) and right click the leading bar on top of the game. There you find Script manager and AI Debugger.

Krauter
08-11-10, 10:32 AM
OK, so just set my game resolution to lower? I don't need to click Alt+Enter to go to window Mode?

KarlKoch
08-11-10, 10:36 AM
At least i do it that way. :hmmm:

Krauter
08-11-10, 10:38 AM
Hmm.. I'm in windowed Mode.. but not Debugger on the top of the bar.. right click and all it has is Move and Close

reaper7
08-11-10, 11:45 AM
Hmm.. I'm in windowed Mode.. but not Debugger on the top of the bar.. right click and all it has is Move and Close


You need to enable Developing mode in your main.cfg found in the SH5 folder in your 'My documents' folder.
There are three lines paciffic to modding that are disabled via ;
just delete the ; to enable the lines.

[DEVELOPING]
;Modding=Yes
;MenuEditor=Yes
;DebugScripts=Yes

Krauter
08-11-10, 11:50 AM
All of those are enabled.. here I will post what I think is relevant that I enabled..


[DEVELOPING]
;Modding=Yes
;MenuEditor=Yes
;DebugScripts=Yes

# Is Automation debugging enabled?
AutomationDebuggingEnabled = True

KarlKoch
08-11-10, 12:07 PM
All of those are enabled.. here I will post what I think is relevant that I enabled..

Did you remove the ";" in the following part?
[DEVELOPING]
;Modding=Yes
;MenuEditor=Yes
;DebugScripts=Yes

And, you have to do that not in the SH5 game directory, but in your \documents\SH5\... (where the savegames are located).

Krauter
08-11-10, 12:08 PM
aah no I did not.. will try that now

KarlKoch
08-11-10, 01:13 PM
Looks like it worked. :D

Krauter
08-11-10, 01:16 PM
It worked but its all jibberish lol.. I can't tell whats making my Automation scripts fail..

TheDarkWraith
08-11-10, 01:21 PM
It worked but its all jibberish lol.. I can't tell whats making my Automation scripts fail..

post a screenshot. You can also send me your scripts and I'll look them over to see what's wrong.