Jagged Alliance 3

Jagged Alliance 3

View Stats:
mitrida Jul 14, 2023 @ 9:32am
hpk file
how do i edit *hpk file? i want to translate on my own
< >
Showing 1-10 of 10 comments
ivanassen  [developer] Jul 14, 2023 @ 9:34am 
Localization via mod is coming with the modding update, which is not announced but will be Soon. Enjoy the game until then, play it to learn a bit about the world - that will make the translation better.
mitrida Jul 15, 2023 @ 6:07am 
thanks!
Vendaar Jul 15, 2023 @ 6:12am 
you can unpack them with HPK archiver

after download use

for %%g in (*.hpk) do mkdir "%%~ng"
for %%g in (*.hpk) do hpk.exe extract "%%g" "%%~ng"
@echo All Done!
pause
uncle nick Jul 15, 2023 @ 6:20am 
Originally posted by ivanassen:
....Enjoy the game...
Just played 6 hours straight, having a small break before jumping back in. Thank You so much for making the game.
mitrida Jul 15, 2023 @ 9:10am 
Originally posted by Vendaar:
you can unpack them with HPK archiver

after download use

for %%g in (*.hpk) do mkdir "%%~ng"
for %%g in (*.hpk) do hpk.exe extract "%%g" "%%~ng"
@echo All Done!
pause
and for repack?
Sledge Hammer Jul 15, 2023 @ 10:07am 
according to this thread on Surviving Mars board https://steamcommunity.com/sharedfiles/filedetails/?id=1470006983
To create hpk archives use: hpk.exe create FolderContainingFiles ModContent.hpk
Which I tried.
I unpacked the UI.hpk, replaced one merc portrait and repacked it.

But I guess the hpk structure changed because I am getting CTD when trying to load the loading screen:
[ResManager Error] Cannot load metadata for path: UI/Inventory/T_Backpack_Slot_Small_2
Could not load image UI/Inventory/T_Backpack_Slot_Small_2!
[ResManager Error] Cannot load metadata for path: UI/Hud/radar
Could not load image UI/Hud/radar!
[ResManager Error] Cannot load metadata for path: UI/SplashScreen
Could not load image UI/SplashScreen!
Lua time 0:00:04:042
[ResManager Error] Cannot load metadata for path: UI/Logos/SplashScreen_Logo_THQN
Could not load image UI/Logos/SplashScreen_Logo_THQN!
Lua time 0:00:08:572
[ResManager Error] Cannot load metadata for path: UI/Logos/SplashScreen_Logo_HM
Could not load image UI/Logos/SplashScreen_Logo_HM!
Lua time 0:00:13:172
[ResManager Error] Cannot load metadata for path: UI/LoadingScreens/LoadingScreen
Could not load image UI/LoadingScreens/LoadingScreen!

Edit:
Actually, there is an issue on the hpk github, where they said use the 'dont compress files' option when creating the archive:
hpk.exe create FolderContainingFiles ModContent.hpk --dont-compress-files

And that seems to fix the CTD.
However I am now stuck on the loading screen of the savegame, I can click around and somehow the Merc responded, so it still does not work properly

Edit 2:
The filenames are case sensitive, I spelled the portrait IMP_Fixer.dds, when it should have been IMP_FIxer.dds

Edit3:
It works!
The merc portraits need to be in a specific dds format so that they come out as 119kB.
The settings I found working in paint.net are BC7 (Linear, DX 11+)
Generate Mip Maps
the rest are default settings
Last edited by Sledge Hammer; Jul 15, 2023 @ 10:40am
RetinaBurn Jul 15, 2023 @ 10:59am 
Originally posted by Sledge Hammer:
according to this thread on Surviving Mars board https://steamcommunity.com/sharedfiles/filedetails/?id=1470006983
To create hpk archives use: hpk.exe create FolderContainingFiles ModContent.hpk
Which I tried.
I unpacked the UI.hpk, replaced one merc portrait and repacked it.

But I guess the hpk structure changed because I am getting CTD when trying to load the loading screen:
[ResManager Error] Cannot load metadata for path: UI/Inventory/T_Backpack_Slot_Small_2
Could not load image UI/Inventory/T_Backpack_Slot_Small_2!
[ResManager Error] Cannot load metadata for path: UI/Hud/radar
Could not load image UI/Hud/radar!
[ResManager Error] Cannot load metadata for path: UI/SplashScreen
Could not load image UI/SplashScreen!
Lua time 0:00:04:042
[ResManager Error] Cannot load metadata for path: UI/Logos/SplashScreen_Logo_THQN
Could not load image UI/Logos/SplashScreen_Logo_THQN!
Lua time 0:00:08:572
[ResManager Error] Cannot load metadata for path: UI/Logos/SplashScreen_Logo_HM
Could not load image UI/Logos/SplashScreen_Logo_HM!
Lua time 0:00:13:172
[ResManager Error] Cannot load metadata for path: UI/LoadingScreens/LoadingScreen
Could not load image UI/LoadingScreens/LoadingScreen!

Edit:
Actually, there is an issue on the hpk github, where they said use the 'dont compress files' option when creating the archive:
hpk.exe create FolderContainingFiles ModContent.hpk --dont-compress-files

And that seems to fix the CTD.
However I am now stuck on the loading screen of the savegame, I can click around and somehow the Merc responded, so it still does not work properly

Edit 2:
The filenames are case sensitive, I spelled the portrait IMP_Fixer.dds, when it should have been IMP_FIxer.dds

Edit3:
It works!
The merc portraits need to be in a specific dds format so that they come out as 119kB.
The settings I found working in paint.net are BC7 (Linear, DX 11+)
Generate Mip Maps
the rest are default settings
Really cool. That’s the spirit. Can’t wait for official mod tools and what community can do with it.
Vendaar Jul 15, 2023 @ 12:11pm 
for repack use

hpk.exe create --dont-compress-files UI UI.hpk"
@echo All Done!
Vendaar Jul 15, 2023 @ 12:12pm 
replace UI and UI.hpk with your desired folder name
mitrida Jul 15, 2023 @ 12:23pm 
Originally posted by Vendaar:
for repack use

hpk.exe create --dont-compress-files UI UI.hpk"
@echo All Done!
Ty
< >
Showing 1-10 of 10 comments
Per page: 1530 50

Date Posted: Jul 14, 2023 @ 9:32am
Posts: 10