Divinity Banner
Page 2 of 12 < 1 2 3 4 ... 11 12 >
Topic Options
#573709 - 11/02/15 10:13 AM Re: EE pak extractor [Re: PredatorV]
Did Kokos Offline
stranger

Registered: 01/17/15
Posts: 16
Originally Posted By: PredatorV
I have the same problem - when I inserting Localization / English.pak
When i translated into another language, is still loading English texts (I do not know where) - do not take it new file .pak.

Please, solve this problem...

So. I have the same problem.

Top
#573712 - 11/02/15 10:30 AM Re: EE pak extractor [Re: Did Kokos]
Norbyte Offline
addict

Registered: 04/14/13
Posts: 452
Originally Posted By: Did Kokos
So. I have the same problem.


Well ...
What did you change in English.pak exactly?
How did you recompress the package? (What options did you use, was the input path the same as the output path during decompression?)
If you're sure that you did everything correctly, can you upload a copy of the broken .pak somewhere for inspection?

Top
#573847 - 11/03/15 02:38 AM Re: EE pak extractor [Re: Draba]
Did Kokos Offline
stranger

Registered: 01/17/15
Posts: 16
I edited the file is not English, so I do translation into another language. and I want to leave English as any other edits. But when unpacking any localization file when you start the game it switched to English only. If you replace the default file pak everything is working properly. But even if you edit a purely English localization, the game strangely does not accept the changes. It will display a standard text. WHERE IT TAKES?
Unpacking and packing files made in standard mode.
Here repacked file
I do not know whether I'm doing right or not. Just want to ask how to do it right?


Edited by Did Kokos (11/03/15 02:59 AM)

Top
#573937 - 11/03/15 11:28 AM Re: EE pak extractor [Re: Draba]
Norbyte Offline
addict

Registered: 04/14/13
Posts: 452
You should repack the directory where you unpacked the original .PAK to; otherwise the relative paths inside the .PAK will be incorrect.

Let's take an example:
Extracting Russian.pak to C:\stuff\ will get you:
PAK Localization\Russian\Fonts\fonts.lsx --> Filesystem C:\stuff\Localization\Russian\Fonts\fonts.lsx
PAK Localization\Russian\russian.xml --> Filesystem C:\stuff\Localization\Russian\russian.xml
[etc.]

When you later repack C:\stuff, the prefix of the paths will be stripped, so you'll get:
Filesystem C:\stuff\Localization\Russian\Fonts\fonts.lsx -> PAK Localization\Russian\Fonts\fonts.lsx
Filesystem C:\stuff\Localization\Russian\russian.xml --> PAK Localization\Russian\russian.xml

... however, when you only repack a *subdirectory*, eg. C:\stuff\Localization\Russian, you get:
Filesystem C:\stuff\Localization\Russian\Fonts\fonts.lsx -> PAK Fonts\fonts.lsx
Filesystem C:\stuff\Localization\Russian\russian.xml --> PAK russian.xml

Notice how the relative paths in the PAK are different; the new package has "Fonts\fonts.lsx" instead of the correct "Localization\Russian\Fonts\fonts.lsx", this is why your package doesn't work.

Top
#574051 - 11/04/15 02:48 AM Re: EE pak extractor [Re: Norbyte]
Did Kokos Offline
stranger

Registered: 01/17/15
Posts: 16
Originally Posted By: Norbyte
You should repack the directory where you unpacked the original .PAK to; otherwise the relative paths inside the .PAK will be incorrect.

... however, when you only repack a *subdirectory*, eg. C:\stuff\Localization\Russian, you get:
Filesystem C:\stuff\Localization\Russian\Fonts\fonts.lsx -> PAK Fonts\fonts.lsx
Filesystem C:\stuff\Localization\Russian\russian.xml --> PAK russian.xml

Notice how the relative paths in the PAK are different; the new package has "Fonts\fonts.lsx" instead of the correct "Localization\Russian\Fonts\fonts.lsx", this is why your package doesn't work.


Thank you for the explanation. Everything works.

Top
#574318 - 11/05/15 02:53 PM Re: EE pak extractor [Re: Draba]
Norbyte Offline
addict

Registered: 04/14/13
Posts: 452
Updated the extractor again.
Changelist for 1.1 -> 1.3:
- Add LSF write support
- Fix TranslatedString serialization for LSF
- Fix conversion of GR2 models that use 16-bit vertex indices
- Add support for v7, v9 and v10 package formats

Top
#574322 - 11/05/15 03:10 PM Re: EE pak extractor [Re: Draba]
Parkan Offline
stranger

Registered: 10/29/15
Posts: 14
Link?

Top
#574327 - 11/05/15 03:24 PM Re: EE pak extractor [Re: Draba]
Norbyte Offline
addict

Registered: 04/14/13
Posts: 452

Top
#574347 - 11/05/15 06:00 PM Re: EE pak extractor [Re: Draba]
Kidling Offline
stranger

Registered: 11/05/15
Posts: 3
1000x Thanks Norbyte!! Working great, just did the movement speed increase mod :)

Top
#574745 - 11/08/15 12:03 AM Re: EE pak extractor [Re: Draba]
Corgan Offline
stranger

Registered: 11/07/15
Posts: 2
Awesome tool, been using it to change up some dialog options, but it looks like the LSX->LSF writing seems break when it encounters a <children> element in the LSX xml tree. Any <node> elements within the <children> tags are being added to the parent's DOM level, and breaks dialog completely :(

You can reproduce this with any of the LSF files in Mods\Main\Story\Keywords from within MainLSF.pak

The particular file I was tinkering with was JAH_Default.lsf, if it helps.

What I did was converted the file from LSF->LSX, LSX->LSF, and then LSF->LSX again, comparing the original LSX to the "processed" LSX.

Any way you could add support for the children tags so that it'll output properly?


Edited by Corgan (11/08/15 12:07 AM)

Top
#574778 - 11/08/15 03:16 AM Re: EE pak extractor [Re: Draba]
Norbyte Offline
addict

Registered: 04/14/13
Posts: 452
LSX loading is now fixed in v1.3.1 smile

Top
#574815 - 11/08/15 08:31 AM Re: EE pak extractor [Re: Draba]
Aenra Offline
enthusiast

Registered: 12/24/13
Posts: 245
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 ^^
_________________________
Pride, honour and purity

Top
#574861 - 11/08/15 06:07 PM Re: EE pak extractor [Re: Draba]
Corgan Offline
stranger

Registered: 11/07/15
Posts: 2
Nice, thanks Norbyte. That fixed it!

http://i.imgur.com/wzt04vL.png smile

Top
#574945 - 11/09/15 12:51 PM Re: EE pak extractor [Re: Aenra]
Norbyte Offline
addict

Registered: 04/14/13
Posts: 452
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...

Top
#574973 - 11/09/15 03:57 PM Re: EE pak extractor [Re: Draba]
MrWoof Offline
stranger

Registered: 11/02/15
Posts: 11
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:
Click to reveal..


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!

Top
#575009 - 11/10/15 01:44 AM Re: EE pak extractor [Re: Draba]
thechosen1 Offline
stranger

Registered: 11/06/15
Posts: 2
MrWoof, You can use notepad++ with the XML tools plugin. (you need to add the plugin).
Just press CTRL+ALT+SHIFT B and it will show it with all of the line breaks.

Top
#575047 - 11/10/15 08:55 AM Re: EE pak extractor [Re: thechosen1]
MrWoof Offline
stranger

Registered: 11/02/15
Posts: 11
OMG thank you!

Top
#575134 - 11/10/15 09:20 PM Re: EE pak extractor [Re: Draba]
MrWoof Offline
stranger

Registered: 11/02/15
Posts: 11
Hey Norbyte, after today's patch (11/10) I'm unable to fully unpack Main.pak. A ways in, this message box appears:
Click to reveal..
I'm guessing something on their end changed? Thanks for taking a look!

Top
#575148 - 11/11/15 12:30 AM Re: EE pak extractor [Re: Draba]
Norbyte Offline
addict

Registered: 04/14/13
Posts: 452
Both Main.pak and Materials.pak (the files patched yesterday) extract successfully for me.
Can you "Verify local files" on Steam to make sure that your Main.pak is OK?

Top
#575150 - 11/11/15 01:10 AM Re: EE pak extractor [Re: Draba]
MrWoof Offline
stranger

Registered: 11/02/15
Posts: 11
Thanks, that seems to have worked. I probably screwed something up previously with it. Sorry about that! Thanks for the reply!

Top
Page 2 of 12 < 1 2 3 4 ... 11 12 >