Giter VIP home page Giter VIP logo

Comments (9)

nickelc avatar nickelc commented on June 23, 2024

Is the second parameter [1] a directory?

[1] D:\Works\Tools\hpk-v0.3.9-x86_64-pc-windows-msvc\extracted

The hpk create command expects a filename as last parameter for the new archive.

USAGE:
    hpk create [FLAGS] [OPTIONS] <dir> <file>

from hpk.

fenymak avatar fenymak commented on June 23, 2024

Yes, this is the folder where the archive was extracted
2022-10-18_20-37-14

from hpk.

nickelc avatar nickelc commented on June 23, 2024

You have to use it like this: hpk create packed Language.hpk
where packed contains the content for the new archive.

from hpk.

fenymak avatar fenymak commented on June 23, 2024

Ooh, I'm a fool. Thanks for the help. But now the problem is that the game seems to see the file, but cannot read it and takes data from the original.

from hpk.

fenymak avatar fenymak commented on June 23, 2024

And I think I figured out what the problem is.
Does it depend on the order of the indexes?
Also the encoder is different.
2022-10-18_21-45-19

from hpk.

nickelc avatar nickelc commented on June 23, 2024

So that I understand it correct, you copied the Russian.hpk into the games folder [1], the game loads fine but you don't see any effect?

[1] steamapps/common/Stranded Alien Dawn/Local/Russian.hpk

Do you see an effect when you keep the localization files extracted in Local/Russian/CurrentLanguage/..?

Or what happens when you replace the English.hpk with your Russian.hpk?

Does it depend on the order of the indexes?
Also the encoder is different.

The different index shouldn't matter.

I didn't implement other encoders except zlib because Victor Vran and Surviving Mars would crash with lz4 compressed chunks. I don't know the difference between the lz4 library the games are using and the one I'm using.
The zlib compressed chunks worked for previous games.

You could try the --dont-compress-files parameter to pack the files uncompressed.

Usage hpk create --dont-compress-files <dir> <file>

from hpk.

fenymak avatar fenymak commented on June 23, 2024

So that I understand it correct, you copied the Russian.hpk into the games folder [1], the game loads fine but you don't see any effect?

yes, the game sees the file, but nothing happens when applying settings in the game

Or what happens when you replace the English.hpk with your Russian.hpk?

nothing

Do you see an effect when you keep the localization files extracted in Local/Russian/CurrentLanguage/..?

nothing, it just doesn't work

You could try the --dont-compress-files parameter to pack the files uncompressed.

Usage hpk create --dont-compress-files <dir> <file>

d:\Works\Tools\hpk-v0.3.9-x86_64-pc-windows-msvc>hpk create --dont-compress-files --chunk-size 131072 D:\Works\Tools\hpk-v0.3.9-x86_64-pc-windows-msvc\extracted Russian.hpk
error: Found argument '--dont-compress-files' which wasn't expected, or isn't valid in this context

from hpk.

fenymak avatar fenymak commented on June 23, 2024

HURRAH!
I downloaded the latest version of the archiver and it all worked!
And packed without compression. Maybe this was the problem.
In any case, thanks!
2022-10-19_00-40-39

from hpk.

nickelc avatar nickelc commented on June 23, 2024

HURRAH! I downloaded the latest version of the archiver and it all worked!

Nice. 👍

Maybe I can find some time to look into zstd compression and get it working with the newer games.

from hpk.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.