I am using the GoG version and I was lost for quite a while, getting different errors depending on what I tried, probably due to the Steam issue. Eventually, I hit upon just changing the line "gamePathOverride" to "D:\\GoG Games\\Jagged Alliance 3", (in the config.json file in the \tools\bin folder) and it worked, but it complained a bit. Note: your install path may have a different letter than drive "D". That's the default install path for the GoG version, but you may have installed it elsewhere as well.
It asked for Java even i have Java installed on my laptop, how can i fix it
Java Installed: BAD Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'path1') at System.IO.Path.Combine(String path1, String path2, String path3) at ModHelper.Config.getBuildId() at ModHelper.Config.Load() at ModHelper.Program.Main(String[] args)
struggling to follow the guidance in this comment section how to do "hpk.exe create --dont-compress-files Lua Lua.hpk" where does this go how do I execute this command line?
does it go in properties in the target line of the exe? if so which one, isn't available as an option within the mod helper or i can't find it at least.
I've decompiled and edited the files i want but is it possible to post a detailed step-by-step process to recompile?
still isn't working, I've got the .bat file and hpk.exe, where do I place them for it to work correctly? I've tried placing them in each subfolder but no hkp is generated and it only briefly flickers a white window before closing
I used this tool to extract Lua.hpk then edited a lua file(Mercenary.lua) using notepad. After editing, I selected 4th option, named "Pack Changes into HPK". It generated a new Lua.hpk file as expected but when I use that file to play the game, game gets stuck in a black screen at the start, right after intro logos. I noticed newly generated file is a lot bigger than the original, could it be the problem?
The black screen happend because you tried to load the Game with full decompiled files. That wont work.
Use the compiled files from JA3\source\11693440\extracted\Lua and only replace the Mercenary.lua then pack it with hpk.exe create --dont-compress-files Lua Lua.hpk You can find hpk.exe inside "JA3\tools\bin"
The file size is bigger because the Files will not be compressed. If you compress the Files the Game will not start.
Hi guys I have the same issue, so I run modhelper.exe from cmd and it asks for dotNET 6. I'm going to install it and see if it runs...
Yes, it OK now but I installed dotNET 6.0. (I had v7 SDK) If you run bin\modhelper.exe ir will say you need it and show the link below. https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=win10-x64
This "Mod" here will automaticly extract and decompile only the two important hpk files (lua.hpk and data.hpk).
If you want to extract one or all .hpk files make a .bat file with this inside. But this way will not decompile the .lua files. for %%g in (*.hpk) do mkdir %%~ng for %%g in (*.hpk) do C:\Users\YourUserName\Desktop\JA3\tools\bin\hpk.exe extract "%%g" "%%~ng" @echo All Done! pause
Place it inside Steam\steamapps\common\Jagged Alliance 3\Packs with the .hpk inside.
I unpacked, tried to run ... and nothing! Trying to run in the JA3 root folder or in the Packs folder gave nothing. Sorry for mistakes - my english is from Google translate.
24 comments
Using your scripts with the GoG version (which I suspect most people who come here, instad of the workshop, would have) is a little fiddly.
A dedicated version would be much appreciated.
Eventually, I hit upon just changing the line "gamePathOverride" to "D:\\GoG Games\\Jagged Alliance 3",
(in the config.json file in the \tools\bin folder)
and it worked, but it complained a bit.
Note: your install path may have a different letter than drive "D". That's the default install path for the GoG version, but you may have installed it elsewhere as well.
Thank you for the hint.
This isn't working for me anymore with JA Update 1.2.
The unpack is just producing empty folders.
Is it supposed to be working?
hpk.exe needs an update but thats not my Program.
Java Installed: BAD
Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'path1')
at System.IO.Path.Combine(String path1, String path2, String path3)
at ModHelper.Config.getBuildId()
at ModHelper.Config.Load()
at ModHelper.Program.Main(String[] args)
does it go in properties in the target line of the exe? if so which one, isn't available as an option within the mod helper or i can't find it at least.
I've decompiled and edited the files i want but is it possible to post a detailed step-by-step process to recompile?
Place your hpk.exe inside the folder with the bat file.
Start create.bat it will pack all files.
Dont worry about the Lua.hpk File size.
Use the compiled files from JA3\source\11693440\extracted\Lua and only replace the Mercenary.lua then pack it with
hpk.exe create --dont-compress-files Lua Lua.hpk
You can find hpk.exe inside "JA3\tools\bin"
The file size is bigger because the Files will not be compressed.
If you compress the Files the Game will not start.
I have the same issue, so I run modhelper.exe from cmd and it asks for dotNET 6.
I'm going to install it and see if it runs...
Yes, it OK now but I installed dotNET 6.0. (I had v7 SDK)
If you run bin\modhelper.exe ir will say you need it and show the link below.
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=win10-x64
If you want to extract one or all .hpk files make a .bat file with this inside.
But this way will not decompile the .lua files.
for %%g in (*.hpk) do mkdir %%~ng
for %%g in (*.hpk) do C:\Users\YourUserName\Desktop\JA3\tools\bin\hpk.exe extract "%%g" "%%~ng"
@echo All Done!
pause
Place it inside Steam\steamapps\common\Jagged Alliance 3\Packs with the .hpk inside.
C:\Users\Anwender\Desktop\JA3-38-1-1689920958\JA3>Tool-Menu.bat
Failure processing application bundle.
Bundle header version compatibility check failed.
A fatal error occured while processing application bundle
Simply executing the *.bat from Desktop (or wherever) does nothing :/
Trying to run in the JA3 root folder or in the Packs folder gave nothing.
Sorry for mistakes - my english is from Google translate.
Maybe try to start it as Admin?