Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Page 3 of 15 1 2 3 4 5 14 15
Joined: Dec 2013
enthusiast
Offline
enthusiast
Joined: Dec 2013
Originally Posted by Norbyte
Originally Posted by Aenra
Thanks again for all the work Norbyte smile

You ever, erm, find the time or need for some extra work..well..i don't suppose we'd mind if you brouth the save game editor up to date as well ^^


Well I'll take a look at it, but no guarantees...


woot!

My thanks in advance (again), regardless of outcome smile

Last edited by Aenra; 11/11/15 03:21 PM.

Pride, honour and purity
MrWoof #575539 15/11/15 11:33 PM
Joined: Apr 2013
N
addict
Offline
addict
N
Joined: Apr 2013
Originally Posted by MrWoof
Norbyte, I'm using v1.3.1 and I had two questions.

1. Is there a way that the program can output a readable file? As in, line breaks? Example shown in the picture:
[Linked Image]


2. Is it possible to have a batch way to convert lsf files to lsx? I really want to get a look at changing some things but having to convert one file at a time when there are hundreds of them is unrealistic.

No matter the answer, thank you for your program and time!


Added XML pretty printing and batch conversion in v1.4.

Draba #575608 16/11/15 10:57 PM
Joined: Aug 2014
old hand
Offline
old hand
Joined: Aug 2014
A lot more usable with readable files and batch conversion, yay! And only one Convert button instead of save/loading LSBs. Great work Norbyte.

And I noticed you can unpack story files now? That's probably not very useful without the ability to recompile the story, though, right? Gotta wait for the editor to really start scripting?

Draba #575661 17/11/15 06:24 PM
Joined: Apr 2013
N
addict
Offline
addict
N
Joined: Apr 2013
Thats a WIP feature, I'm hoping to add some additional stuff (like compilation) later.

Draba #576049 22/11/15 09:56 PM
Joined: Aug 2014
old hand
Offline
old hand
Joined: Aug 2014
Just to clarify, the Pak extractor only extracts SOME files? I just don't understand where a lot of stuff is stored (e.g., talent effects), and I assume they must be in some files that your extractor just doesn't touch because they're Larian-specific files or something that we just can't open?

Draba #576077 23/11/15 06:27 AM
Joined: Apr 2013
N
addict
Offline
addict
N
Joined: Apr 2013
No, it extracts everything.
Talent effects are hardcoded in EoCApp.exe.

Draba #577648 27/12/15 04:52 AM
Joined: Dec 2015
O
stranger
Offline
stranger
O
Joined: Dec 2015
Norton really does not like this program at all.

edit: you need to add an exception to your sonar etc for the whole folder to get it to work.

Last edited by Obbu; 27/12/15 05:08 AM.
Draba #578849 30/01/16 10:32 PM
Joined: Dec 2013
enthusiast
Offline
enthusiast
Joined: Dec 2013
Norton has no issue with this.
Got a 22.5.5.15 NIS (bought and paid for) and have never had any trouble. Are your sonar settings perhaps at an overly high level?

Which by the way, you do not need. Sonar 'on', all its subcategories to 'off' is good enough


Pride, honour and purity
Draba #581560 19/04/16 09:29 AM
Joined: Apr 2016
K
stranger
Offline
stranger
K
Joined: Apr 2016
Hi i am having trouble with the LSF files from the MainLSF.pak. When i try to convert them (eg properties.lsf) to the LSX Format i get this error.

[Linked Image]

Converting existing lsx to lsf and back works fine. Do they use a new serialization or am i doing something wrong?

Draba #581577 20/04/16 12:51 AM
Joined: Jun 2013
old hand
Offline
old hand
Joined: Jun 2013
Had the same issue here.

Draba #581612 21/04/16 12:36 AM
Joined: Apr 2013
N
addict
Offline
addict
N
Joined: Apr 2013
I'll investigate and add support for the new LSF format asap smile

Draba #581630 21/04/16 11:14 AM
Joined: Dec 2013
enthusiast
Offline
enthusiast
Joined: Dec 2013
Someone give him a medal laugh


Pride, honour and purity
Draba #581695 23/04/16 03:07 PM
Joined: Apr 2013
N
addict
Offline
addict
N
Joined: Apr 2013
I've added support for v2 LSF files.
I haven't worked out all the details yet, so some files may fail to load unfortunately.

Draba #581699 23/04/16 05:43 PM
Joined: Dec 2013
enthusiast
Offline
enthusiast
Joined: Dec 2013
Thank you for the umpteenth time Norbyte, much obliged! laugh


Pride, honour and purity
Aenra #581755 25/04/16 08:54 AM
Joined: Apr 2016
K
stranger
Offline
stranger
K
Joined: Apr 2016
Thanks for the first time, its working great.

Draba #581947 01/05/16 11:31 AM
Joined: May 2016
T
stranger
Offline
stranger
T
Joined: May 2016
I'm getting this when trying to convert the globals.lsf to a lsx file
http://imgur.com/zd4Ygmn

I'm using the latest GoG version.

Joined: May 2016
D
stranger
Offline
stranger
D
Joined: May 2016
I am getting the same error on my globals.lsf System.OutOfMemoryException: Array dimensions exceeded supported range.

Here is a link to the file https://www.dropbox.com/s/012kzqs8e5dp7rk/globals.lsf?dl=0


Draba #581983 02/05/16 04:30 PM
Joined: Apr 2013
N
addict
Offline
addict
N
Joined: Apr 2013
Yeah, this is a known issue at the moment with larger LSF files, sadly frown
I'm trying to find out why these files decompress incorrectly, but haven't found the root cause yet.

Draba #582010 04/05/16 06:00 AM
Joined: May 2016
T
stranger
Offline
stranger
T
Joined: May 2016
I believe I know what the problem could be. Would you be willing to post the source code here so I could take a look at it? It's written in C# or VB right? The problem I think is that the maximum amount of items in an array is limited by the maximum integer size. I think since the files are so large the maximum integer limit is being reached.

If you would be willing to post the source code I would be extremely grateful!

Draba #582071 06/05/16 03:35 PM
Joined: Apr 2013
N
addict
Offline
addict
N
Joined: Apr 2013
Here it is:
https://github.com/Norbyte/lslib/tree/master/LSLib

The prolematic part starts here:
https://github.com/Norbyte/lslib/blob/master/LSLib/LS/LSFReader.cs#L483

The problem is that the LSFv2 format introduced chunked compression, where the LZ4 stream is split into multiple parts. However, simply putting the chunks together corrupts the output stream subtly, ie. some output bytes become consistently different while most of the others stay the same. Because of this, streams over 0x8000 bytes (that are chunked) will probably decompress incorrectly. This is what causes the out of memory error (array sizes becoming impossibly large as the decompressed length values are corrupted).
I don't really know why it could be, but I'll experiment with it a bit when I have some time.

Last edited by Norbyte; 06/05/16 03:38 PM.
Page 3 of 15 1 2 3 4 5 14 15

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