|
|
enthusiast
|
enthusiast
Joined: Dec 2013
|
Thanks again for all the work Norbyte 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
Last edited by Aenra; 11/11/15 03:21 PM.
Pride, honour and purity
|
|
|
|
addict
|
addict
Joined: Apr 2013
|
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: 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.
|
|
|
|
old hand
|
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?
|
|
|
|
addict
|
addict
Joined: Apr 2013
|
Thats a WIP feature, I'm hoping to add some additional stuff (like compilation) later.
|
|
|
|
old hand
|
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?
|
|
|
|
addict
|
addict
Joined: Apr 2013
|
No, it extracts everything. Talent effects are hardcoded in EoCApp.exe.
|
|
|
|
stranger
|
stranger
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.
|
|
|
|
enthusiast
|
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
|
|
|
|
stranger
|
stranger
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. Converting existing lsx to lsf and back works fine. Do they use a new serialization or am i doing something wrong?
|
|
|
|
old hand
|
old hand
Joined: Jun 2013
|
|
|
|
|
addict
|
addict
Joined: Apr 2013
|
I'll investigate and add support for the new LSF format asap
|
|
|
|
enthusiast
|
enthusiast
Joined: Dec 2013
|
Someone give him a medal
Pride, honour and purity
|
|
|
|
addict
|
addict
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.
|
|
|
|
enthusiast
|
enthusiast
Joined: Dec 2013
|
Thank you for the umpteenth time Norbyte, much obliged!
Pride, honour and purity
|
|
|
|
stranger
|
stranger
Joined: Apr 2016
|
Thanks for the first time, its working great.
|
|
|
|
stranger
|
stranger
Joined: May 2016
|
I'm getting this when trying to convert the globals.lsf to a lsx file http://imgur.com/zd4YgmnI'm using the latest GoG version.
|
|
|
|
addict
|
addict
Joined: Apr 2013
|
Yeah, this is a known issue at the moment with larger LSF files, sadly I'm trying to find out why these files decompress incorrectly, but haven't found the root cause yet.
|
|
|
|
stranger
|
stranger
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!
|
|
|
|
addict
|
addict
Joined: Apr 2013
|
Here it is: https://github.com/Norbyte/lslib/tree/master/LSLibThe prolematic part starts here: https://github.com/Norbyte/lslib/blob/master/LSLib/LS/LSFReader.cs#L483The 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.
|
|
|
Moderated by Bvs, ForkTong, gbnf, Issh, Kurnster, Larian_QA, LarSeb, Lar_q, Lynn, Monodon, Raze, Stephen_Larian
|
|
|