Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#562706 08/02/15 07:58 AM
Joined: Sep 2014
Z
Zoltan Offline OP
apprentice
OP Offline
apprentice
Z
Joined: Sep 2014
I have been playing with char and item scripts lately and I found a function called Log. According to the tooltip it takes in strings and it 'logs the scriptlog (for debugging)' which I assume is the script version of the osirislog.log. However I can't seem to find the log. Anyone know of its existence, and more importantly where I can find it?

Zoltan #562735 08/02/15 06:28 PM
Joined: Dec 2014
journeyman
Offline
journeyman
Joined: Dec 2014
I know that most of the logs ( if not all ) are in the folder :

"YOURPATHTOSTEAM"\steam\SteamApps\common\The Divinity Engine\

There's osiris logs, dialog logs, error logs etc...

If the Log() function doesn't work, you might want to try your luck with other functions.
http://www.divinityengine.net/index.php?title=List_of_scripting_commands

DebugText (CHARACTER|ITEM target, STRING text)
Adds debugtext above the character/item for a short amount of time.

If all these don't work, you can send a message to osiris with any of the Event system.
ex:
GlobalSetEvent (STRING eventName)
Sets a global event. Scripts and Story can catch it.

In Osiris :

IF
GlobalEventSet("debugText")
THEN
DebugBreak("itworks!");

Zoltan #562745 08/02/15 11:39 PM
Joined: Sep 2014
Z
Zoltan Offline OP
apprentice
OP Offline
apprentice
Z
Joined: Sep 2014
I've checked the Divinity Engine directory and found no such log for scripts (there is one for dialog, errors, log, and network). I also couldn't get the DebugText to work. However DebugBreak seems to work so that's something


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5