Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Page 2 of 15 1 2 3 4 14 15
Joined: Jan 2015
D
stranger
Offline
stranger
D
Joined: Jan 2015
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.

Joined: Apr 2013
N
addict
Offline
addict
N
Joined: Apr 2013
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?

Draba #573847 03/11/15 08:38 AM
Joined: Jan 2015
D
stranger
Offline
stranger
D
Joined: Jan 2015
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?

Last edited by Did Kokos; 03/11/15 08:59 AM.
Draba #573937 03/11/15 05:28 PM
Joined: Apr 2013
N
addict
Offline
addict
N
Joined: Apr 2013
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.

Joined: Jan 2015
D
stranger
Offline
stranger
D
Joined: Jan 2015
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.

Draba #574318 05/11/15 08:53 PM
Joined: Apr 2013
N
addict
Offline
addict
N
Joined: Apr 2013
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

Draba #574322 05/11/15 09:10 PM
Joined: Oct 2015
P
stranger
Offline
stranger
P
Joined: Oct 2015
Link?

Draba #574327 05/11/15 09:24 PM
Joined: Apr 2013
N
addict
Offline
addict
N
Joined: Apr 2013

Draba #574347 06/11/15 12:00 AM
Joined: Nov 2015
K
stranger
Offline
stranger
K
Joined: Nov 2015
1000x Thanks Norbyte!! Working great, just did the movement speed increase mod :)

Draba #574745 08/11/15 06:03 AM
Joined: Nov 2015
C
stranger
Offline
stranger
C
Joined: Nov 2015
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?

Last edited by Corgan; 08/11/15 06:07 AM.
Draba #574778 08/11/15 09:16 AM
Joined: Apr 2013
N
addict
Offline
addict
N
Joined: Apr 2013
LSX loading is now fixed in v1.3.1 smile

Draba #574815 08/11/15 02:31 PM
Joined: Dec 2013
enthusiast
Offline
enthusiast
Joined: Dec 2013
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
Draba #574861 09/11/15 12:07 AM
Joined: Nov 2015
C
stranger
Offline
stranger
C
Joined: Nov 2015
Nice, thanks Norbyte. That fixed it!

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

Aenra #574945 09/11/15 06:51 PM
Joined: Apr 2013
N
addict
Offline
addict
N
Joined: Apr 2013
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...

Draba #574973 09/11/15 09:57 PM
Joined: Nov 2015
M
stranger
Offline
stranger
M
Joined: Nov 2015
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!

Draba #575009 10/11/15 07:44 AM
Joined: Nov 2015
T
stranger
Offline
stranger
T
Joined: Nov 2015
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.

Joined: Nov 2015
M
stranger
Offline
stranger
M
Joined: Nov 2015
OMG thank you!

Draba #575134 11/11/15 03:20 AM
Joined: Nov 2015
M
stranger
Offline
stranger
M
Joined: Nov 2015
Hey Norbyte, after today's patch (11/10) I'm unable to fully unpack Main.pak. A ways in, this message box appears:
[Linked Image]
I'm guessing something on their end changed? Thanks for taking a look!

Draba #575148 11/11/15 06:30 AM
Joined: Apr 2013
N
addict
Offline
addict
N
Joined: Apr 2013
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?

Draba #575150 11/11/15 07:10 AM
Joined: Nov 2015
M
stranger
Offline
stranger
M
Joined: Nov 2015
Thanks, that seems to have worked. I probably screwed something up previously with it. Sorry about that! Thanks for the reply!

Page 2 of 15 1 2 3 4 14 15

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