Divinity Banner
Previous Thread
Next Thread
Print Thread
Osiris debug log tool #641762
03/02/18 08:59 PM
03/02/18 08:59 PM
Joined: Apr 2013
Posts: 465
N
Norbyte Offline OP
addict
Norbyte  Offline OP
addict
N

Joined: Apr 2013
Posts: 465
Currently the game doesn't have any debug logs, so if something works in the editor but doesn't work ingame it is quite difficult to debug. I've created a tool that generates Osiris debug logs from the game itself, similar to osirislog.log in the Divinity Engine.

Download (v1.0.1): https://s3.eu-central-1.amazonaws.com/nb-stor/dos/OsirisProxy-1.0.1.zip
Source: https://github.com/Norbyte/ositools

Usage
=====
- Extract the zip file to the game's Bin directory (eg. C:\Program Files (x86)\Steam\steamapps\common\Divinity Original Sin 2\Bin).
- Start the game (either via EoCApp.exe or via Steam); the logger will start automatically and an additional (debug) console window will be shown if all is well
- Osiris game logs will be saved to the My Documents\OsirisLogs\ directory. If you'd like to save the logs somewhere else, change the LogDirectory value in OsirisProxy.json.

To remove the logger from the game just delete DXGI.dll from the Bin directory.

Re: Osiris debug log tool [Re: Norbyte] #641765
03/02/18 10:37 PM
03/02/18 10:37 PM
Joined: Dec 2016
Posts: 120
United States
Ameranth Offline
member
Ameranth  Offline
member

Joined: Dec 2016
Posts: 120
United States
Many thanks for this, Norbyte, I look forward to putting it to use smile

Re: Osiris debug log tool [Re: Norbyte] #641767
03/02/18 11:04 PM
03/02/18 11:04 PM
Joined: Jan 2018
Posts: 23
Brazil
B
BloodyWorth Offline
stranger
BloodyWorth  Offline
stranger
B

Joined: Jan 2018
Posts: 23
Brazil
Amazing, love you long time ! ♥

Re: Osiris debug log tool [Re: Norbyte] #641768
03/02/18 11:07 PM
03/02/18 11:07 PM
Joined: Dec 2013
Posts: 866
Windemere Offline

old hand
Windemere  Offline

old hand

Joined: Dec 2013
Posts: 866
This is going to be a huge help when testing, thanks so much.


Shadow Over Moonglow - Standalone campaign (WIP)

The Noisy Crypt
(also on Nexus)

Re: Osiris debug log tool [Re: Norbyte] #643532
14/03/18 01:53 AM
14/03/18 01:53 AM
Joined: May 2017
Posts: 349
LaughingLeader Offline
enthusiast
LaughingLeader  Offline
enthusiast

Joined: May 2017
Posts: 349
Hey Norbyte. Thanks for making this. I finally got out of the editor today to test some mods in-game, and starting DOS2 with the debug log returns the error "Could not locate global Osiris variables". Perhaps this is from the latest update shifting a few things around?

Re: Osiris debug log tool [Re: Norbyte] #643723
16/03/18 05:26 PM
16/03/18 05:26 PM
Joined: Apr 2013
Posts: 465
N
Norbyte Offline OP
addict
Norbyte  Offline OP
addict
N

Joined: Apr 2013
Posts: 465
Yeah, the offsets probably changed a bit. I'll take a look at it tomorrow.

Re: Osiris debug log tool [Re: Norbyte] #643790
18/03/18 02:15 PM
18/03/18 02:15 PM
Joined: Apr 2013
Posts: 465
N
Norbyte Offline OP
addict
Norbyte  Offline OP
addict
N

Joined: Apr 2013
Posts: 465
Updated version with support for the latest update (v3.0.180.158): https://s3.eu-central-1.amazonaws.com/nb-stor/dos/OsirisProxy-1.0.2.zip

Re: Osiris debug log tool [Re: Norbyte] #643810
19/03/18 02:25 AM
19/03/18 02:25 AM
Joined: Dec 2013
Posts: 866
Windemere Offline

old hand
Windemere  Offline

old hand

Joined: Dec 2013
Posts: 866
Thanks for the continued support, Norbyte!


Shadow Over Moonglow - Standalone campaign (WIP)

The Noisy Crypt
(also on Nexus)

Re: Osiris debug log tool [Re: Norbyte] #644120
23/03/18 11:05 PM
23/03/18 11:05 PM
Joined: May 2017
Posts: 349
LaughingLeader Offline
enthusiast
LaughingLeader  Offline
enthusiast

Joined: May 2017
Posts: 349
Thanks again for making this Norbyte. It's been extremely useful for debugging why certain things weren't working as expected in existing saves (being able to see what goals are active, what values queries are returning, etc.).

thankyou

Re: Osiris debug log tool [Re: Norbyte] #645621
02/05/18 09:42 PM
02/05/18 09:42 PM
Joined: Dec 2016
Posts: 120
United States
Ameranth Offline
member
Ameranth  Offline
member

Joined: Dec 2016
Posts: 120
United States
I wanted to say thanks for this again, because this tool has saved me countless hours finding the most obscure of bugs.

Not sure how we'd get on without you Norbyte.

Last edited by Ameranth; 02/05/18 09:42 PM.
Re: Osiris debug log tool [Re: Norbyte] #649085
06/09/18 12:58 PM
06/09/18 12:58 PM
Joined: Mar 2016
Posts: 498
Belgium
T
Tinkerer Offline

addict
Tinkerer  Offline

addict
T

Joined: Mar 2016
Posts: 498
Belgium
Good news: in the Definitive Edition, you can pass the parameter "-storylog 1" to EoCApp.exe to get an Osiris log!

Re: Osiris debug log tool [Re: Tinkerer] #649087
06/09/18 02:15 PM
06/09/18 02:15 PM
Joined: Dec 2013
Posts: 866
Windemere Offline

old hand
Windemere  Offline

old hand

Joined: Dec 2013
Posts: 866
Originally Posted By: Tinkerer
Good news: in the Definitive Edition, you can pass the parameter "-storylog 1" to EoCApp.exe to get an Osiris log!


Whoa! That's fantastic, thank you!


Shadow Over Moonglow - Standalone campaign (WIP)

The Noisy Crypt
(also on Nexus)

Re: Osiris debug log tool [Re: Tinkerer] #649090
06/09/18 04:30 PM
06/09/18 04:30 PM
Joined: May 2017
Posts: 349
LaughingLeader Offline
enthusiast
LaughingLeader  Offline
enthusiast

Joined: May 2017
Posts: 349
Originally Posted By: Tinkerer
Good news: in the Definitive Edition, you can pass the parameter "-storylog 1" to EoCApp.exe to get an Osiris log!

Woah, neat!

Would it be possible to timestamp the log file, and possibly specify an output folder, perhaps as additional parameters? Currently the log file gets overwritten from each game session.

Re: Osiris debug log tool [Re: Norbyte] #651591
17/01/19 06:45 PM
17/01/19 06:45 PM
Joined: Apr 2013
Posts: 465
N
Norbyte Offline OP
addict
Norbyte  Offline OP
addict
N

Joined: Apr 2013
Posts: 465
Hi Everyone,

I've updated the log tool to help with debugging "Could not create a working story" issues.

In addition to creating Osiris logs that log which rules fired and how, it'll create a Compile.log and Compile.div file in the log folder (My Documents\OsirisLogs by default) whenever story compilation fails that contains the story that failed to compile, and the corresponding compiler error/warning log.

Link: https://s3.eu-central-1.amazonaws.com/nb-stor/dos/OsirisProxy-1.0.3.zip

Happy debugging!


Moderated by  Dom_Larian, Larian_Koala 

Powered by UBB.threads™ PHP Forum Software 7.6.2