Page 13 of 18

Re: REQ :Jagged Alliance 3 table

Posted: Wed Jul 19, 2023 8:50 pm
by LoL
I just reup the file, same folder. If anyone download from hours ago, you may redownload the lua file again. Fix for mines never depleted.

Re: REQ :Jagged Alliance 3 table

Posted: Wed Jul 19, 2023 9:40 pm
by Cheech
LoL wrote:
Wed Jul 19, 2023 5:42 pm
update lil bit..

Starting Money 2,000,000
Merc Contract up to 360 Days
Increase from Merc hired Limit to 40
Gold perk cost 1 instead 3
Reduced tired from travel
*Normally you will get tired after you travel for 16 hours in the Satellite View, now 160 hours travel

i also edit so mines will never depleted, but not 100% sure this one work or not, if your game crash, just revert to my previous hpk
Spoiler
Tested on GoG version, might work with steam version too
Lua file, remember to backup your default lua 1st
Password: fearlessrevolution
[Link]
how it comes, that the filesize from your lua.hpk extended from 8 MB ori file to 21 MB ?

Re: REQ :Jagged Alliance 3 table

Posted: Wed Jul 19, 2023 10:06 pm
by LoL
Cheech wrote:
Wed Jul 19, 2023 9:40 pm
LoL wrote:
Wed Jul 19, 2023 5:42 pm
update lil bit..

Starting Money 2,000,000
Merc Contract up to 360 Days
Increase from Merc hired Limit to 40
Gold perk cost 1 instead 3
Reduced tired from travel
*Normally you will get tired after you travel for 16 hours in the Satellite View, now 160 hours travel

i also edit so mines will never depleted, but not 100% sure this one work or not, if your game crash, just revert to my previous hpk
Spoiler
Tested on GoG version, might work with steam version too
Lua file, remember to backup your default lua 1st
Password: fearlessrevolution
[Link]
how it comes, that the filesize from your lua.hpk extended from 8 MB ori file to 21 MB ?
file not compressed

Re: REQ :Jagged Alliance 3 table

Posted: Thu Jul 20, 2023 6:37 am
by insidesquirrel
Hello.

Code: Select all

  Equipment = {
    "Fox"
  },
In which file is the starting equipment of the mercenaries?

Re: REQ :Jagged Alliance 3 table

Posted: Thu Jul 20, 2023 10:53 am
by infearno
Is there a way to add talents to existing mercs?

Re: REQ :Jagged Alliance 3 table

Posted: Thu Jul 20, 2023 1:12 pm
by Tibous
LoL wrote:
Wed Jul 19, 2023 5:42 pm
update lil bit..

Starting Money 2,000,000
Merc Contract up to 360 Days
Increase from Merc hired Limit to 40
Gold perk cost 1 instead 3
Reduced tired from travel
*Normally you will get tired after you travel for 16 hours in the Satellite View, now 160 hours travel

i also edit so mines will never depleted, but not 100% sure this one work or not, if your game crash, just revert to my previous hpk
Spoiler
Tested on GoG version, might work with steam version too
Lua file, remember to backup your default lua 1st
Password: fearlessrevolution
[Link]
I suppose we need to put the new file in JA3\Packs ?

Re: REQ :Jagged Alliance 3 table

Posted: Thu Jul 20, 2023 2:12 pm
by LoL
Tibous wrote:
Thu Jul 20, 2023 1:12 pm
I suppose we need to put the new file in JA3\Packs ?
yes

Re: REQ :Jagged Alliance 3 table

Posted: Thu Jul 20, 2023 2:45 pm
by LoL
Image

:D

Re: REQ :Jagged Alliance 3 table

Posted: Thu Jul 20, 2023 6:39 pm
by MaxGav
toxic_nova wrote:
Wed Jul 19, 2023 8:15 pm
MaxGav wrote:
Tue Jul 18, 2023 1:50 pm
DiegoAmorim wrote:
Tue Jul 18, 2023 12:07 pm


Please, could you share the modified file with us? Thx
Added. It's from 1.01.338010 version.
did you also fixed the stats to 85?
I'm asking because I can't get it done to change the stats with cheat engine.
Just above it make code look like it (see where you can put 85):

Code: Select all

  for _, stat_data in ipairs(impTest.final.stats) do
    unitData:SetBase(stat_data.stat, 85)
    local spec = stat_specialization_map[stat_data.stat]
    if spec and (not max_stat and stat_data.value > 80 or max_stat and max_stat < stat_data.value) then
      max_stat = stat_data.value
      specialization = spec
    end
  end
  unitData.Specialization = specialization
  unitData:InitDerivedProperties()
  if sync then
    unitData:RemoveAllCharacterEffects()

Re: REQ :Jagged Alliance 3 table

Posted: Thu Jul 20, 2023 6:42 pm
by MaxGav
infearno wrote:
Thu Jul 20, 2023 10:53 am
Is there a way to add talents to existing mercs?
if by existing you mean pre-defined mercs in new game yes. You can edit file here "Lua\UnitDataCompositeDef\Raven.generated.lua" for example for Raven. It won't affect them in already existing saves though.

Re: REQ :Jagged Alliance 3 table

Posted: Thu Jul 20, 2023 8:46 pm
by toxic_nova
Thanks MaxGav.

Sadly I still haven't found out how to get those files editable. I'm was able to extract the lua.hpk. reading the crypted files inside...google isn't my friend with learning about lua.

I would just prefer to set the stats with cheat engine.

Re: REQ :Jagged Alliance 3 table

Posted: Fri Jul 21, 2023 12:16 am
by LoL
@toxic_nova

after you extract lua.hpk //hpk extract Lua.hpk Lua --fix-lua-files// you need to do another step eg
java -jar unluac.jar luafilename.lua > output.lua, and then you may read everything

you can even change merc avatar and photo like this...

Image

Re: REQ :Jagged Alliance 3 table

Posted: Fri Jul 21, 2023 12:18 am
by xXLashkeXx
I once uploaded an example to see if you can spawn the characters with all the perks (New Game)....
Currently this is still a test but if you are interested in trying it out please do so... Use at your own risk!!!


>>> Example: viewtopic.php?p=304502#p304502

Re: REQ :Jagged Alliance 3 table

Posted: Fri Jul 21, 2023 7:34 am
by LoL
This is default Lua file extracted and all already decompile, incase anyone needed to find something
Spoiler
GoG version, but might same as steam
Password : fearlessrevolution
[Link]

Re: REQ :Jagged Alliance 3 table

Posted: Fri Jul 21, 2023 8:50 am
by MaxGav
toxic_nova wrote:
Thu Jul 20, 2023 8:46 pm
Thanks MaxGav.

Sadly I still haven't found out how to get those files editable. I'm was able to extract the lua.hpk. reading the crypted files inside...google isn't my friend with learning about lua.

I would just prefer to set the stats with cheat engine.
Refer to this post - viewtopic.php?p=304201#p304201

Basically:
- hpk extract --fix-lua-files Lua.hpk c:/output_dir
- java -jar unluac.jar input_compiled.lua > output_decompiled.lua
then edit lua file
- luac53.exe -o output_compiled.lua input_decompiled.lua
- hpk create --cripple-lua-files --dont-compress-files c:/input_dir Lua.hpk