Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Sep 2017
T
TkTech Offline OP
stranger
OP Offline
stranger
T
Joined: Sep 2017
Heyo!

This is most likely only interesting to other developers. I've created a quick python module and CLI to parse Divinity: Original Sin 2 PAK files (version 13). Most likely it'll just be helpful to others trying to figure out how to read/write these infernal files, took me awhile.

https://github.com/TkTech/divine-pak

I'm currently using it to auto-generate wiki articles for the game, such as the crafting recipes.

Joined: Sep 2017
T
TkTech Offline OP
stranger
OP Offline
stranger
T
Joined: Sep 2017
Updated with basic LSB parser support (just enough to parse the translation indexes) and added a CLI command to covert .lsb files to simple JSON.

There's now a basic, automatically self-updating crafting recipe page at:

http://wiki.vg/Divinity:Crafting

Joined: Jul 2014
C
member
Offline
member
C
Joined: Jul 2014
Thanks useful tool, how does it improve on the older one from norbyte ? Did they change some stuff in the pak filetype ?

Joined: Sep 2017
T
TkTech Offline OP
stranger
OP Offline
stranger
T
Joined: Sep 2017
The search on this forum isn't great, took me awhile to find norbyte! It looks like he has a much more complete tool, but his seems to be C# and doesn't seem to be open source (please, correct me if I'm wrong it took me forever to figure out the format. Would love a reference.).

This little library of mine is Python and is meant for other developers to use in projects built on top of it. In other words, Norbyte and I have different audiences for our projects. It's also fairly simple and clean, meaning others can read it to discover how the LBS and PAK formats are structured while they try to build their own tools.

Joined: Jul 2014
C
member
Offline
member
C
Joined: Jul 2014
Well back in the day I was in contact with him and he allowed me to open source it for him

https://github.com/Celludriel/DosPak
https://github.com/Celludriel/LsLib

But you are right different audiences, seems everyone wants to write python these days smile It's a growing market, personally ... I'm on the fence ... I'm not convinced if python is that much more powerful vs a fully compiled and optimized binary.

Either way, thanks for your tool I'm sure it will help a lot of people out

edit: DosPak is actually my own reimagination of his code in turning it in a C# library ... I totally forgot about that ...

Last edited by Celludriel; 22/09/17 05:48 AM.
Joined: Sep 2017
T
TkTech Offline OP
stranger
OP Offline
stranger
T
Joined: Sep 2017
Both of those libraries seem very out of date, am I missing something? Doesn't look like they support V13 PAK or the recent LSF format.

Joined: Jul 2014
C
member
Offline
member
C
Joined: Jul 2014
They are three years old yeah, the old norbyte libraries, if anything has changed to the filestructure since then, then these will probably won't work anymore.

Maybe he has kept working on them over the years I don't know about. In that case forget they still exist smile They are still D:OS 1 compatible though, I was able to test that smile

Joined: Aug 2016
apprentice
Offline
apprentice
Joined: Aug 2016
The current source of Norbytes tool can be found here: https://github.com/Norbyte/lslib

Joined: Jul 2014
C
member
Offline
member
C
Joined: Jul 2014
I remember why it was written in C#

At one point in time Larian said the editor would support plugins. All the code was then written to 3.5 .NET so that it would be compatible with the editor when the plugin support would have made it in. However there was such little interest in D:OS 1 modding back in the day due to the huge complexity, all development just stopped.


Moderated by  Larian_KVN 

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