Page 17 of 18

Re: REQ :Jagged Alliance 3 table

Posted: Tue Jul 25, 2023 3:30 pm
by xXLashkeXx
farlei wrote:
Tue Jul 25, 2023 11:56 am
PS. Has anyone see a mod only for an extended period of hiring mercenaries?
Which period exactly?
10 days, 50 days?

Re: REQ :Jagged Alliance 3 table

Posted: Tue Jul 25, 2023 3:34 pm
by LoL
Quick fix, if no saved backup. Enable mod, cheat.
execute this code like
AddMoney('10000000', 'system')
and then click add money

you can change 10000000 into the negative balance you have just to settle balance.

Re: REQ :Jagged Alliance 3 table

Posted: Tue Jul 25, 2023 3:40 pm
by LoL
xXLashkeXx wrote:
Tue Jul 25, 2023 3:30 pm
farlei wrote:
Tue Jul 25, 2023 11:56 am
PS. Has anyone see a mod only for an extended period of hiring mercenaries?
Which period exactly?
10 days, 50 days?
If possible maybe mod contract up to 365 days like this

Image

i cant do it, cant made into mod :D

Re: REQ :Jagged Alliance 3 table

Posted: Tue Jul 25, 2023 3:53 pm
by farlei
xXLashkeXx wrote:
Tue Jul 25, 2023 3:30 pm
Which period exactly?
10 days, 50 days?
Year? It just terribly infuriates the need to constantly update contracts, especially when, theoretically, there is enough money to pay for a month or even several at once.
I think by the end of the second island I would be able to pay for at least half a year of my mercenaries.

Re: REQ :Jagged Alliance 3 table

Posted: Tue Jul 25, 2023 5:47 pm
by xXLashkeXx
LoL wrote:
Tue Jul 25, 2023 3:40 pm
Spoiler
xXLashkeXx wrote:
Tue Jul 25, 2023 3:30 pm
farlei wrote:
Tue Jul 25, 2023 11:56 am
PS. Has anyone see a mod only for an extended period of hiring mercenaries?
Which period exactly?
10 days, 50 days?
If possible maybe mod contract up to 365 days like this
Spoiler
Image
i cant do it, cant made into mod :D
okay... I have 999 days... so it feels like they never expire :D

I'll see what can be done there
8-)

Re: REQ :Jagged Alliance 3 table

Posted: Tue Jul 25, 2023 5:50 pm
by xXLashkeXx
farlei wrote:
Tue Jul 25, 2023 3:53 pm
xXLashkeXx wrote:
Tue Jul 25, 2023 3:30 pm
Which period exactly?
10 days, 50 days?
Year? It just terribly infuriates the need to constantly update contracts, especially when, theoretically, there is enough money to pay for a month or even several at once.
I think by the end of the second island I would be able to pay for at least half a year of my mercenaries.
Because it can also be done directly as far as I've seen. Say that you have this right from the start... :| :|
Give me some time and see if I can get it that far... Otherwise there may be an hpk... then it will be compiled...
:)

Re: REQ :Jagged Alliance 3 table

Posted: Wed Jul 26, 2023 2:03 am
by xXLashkeXx
Sooo I once uploaded the mod "Merc Hired 500 Days" as a test... Currently I did it with 500 for testing... Simply insert it under "%appdata%\Roaming\Jagged Alliance 3\mods" and let's test it. .. If it doesn't work please let me know....


viewtopic.php?p=304502#p304502

Re: REQ :Jagged Alliance 3 table

Posted: Wed Jul 26, 2023 2:27 pm
by shearerc
xXLashkeXx wrote:
Wed Jul 26, 2023 2:03 am
Sooo I once uploaded the mod "Merc Hired 500 Days" as a test... Currently I did it with 500 for testing... Simply insert it under "%appdata%\Roaming\Jagged Alliance 3\mods" and let's test it. .. If it doesn't work please let me know....
Sorry it has no effect for me, still limited to 14 days :( . Tested on existing and new savegame. And yes, the mod is properly installed and I can enable it in Mod Manager without errors. Steam 1.02

Re: REQ :Jagged Alliance 3 table

Posted: Wed Jul 26, 2023 5:04 pm
by xXLashkeXx
shearerc wrote:
Wed Jul 26, 2023 2:27 pm
xXLashkeXx wrote:
Wed Jul 26, 2023 2:03 am
Sooo I once uploaded the mod "Merc Hired 500 Days" as a test... Currently I did it with 500 for testing... Simply insert it under "%appdata%\Roaming\Jagged Alliance 3\mods" and let's test it. .. If it doesn't work please let me know....
Sorry it has no effect for me, still limited to 14 days :( . Tested on existing and new savegame. And yes, the mod is properly installed and I can enable it in Mod Manager without errors. Steam 1.02
All good... Thanks for the feedback... I'll fix it immediately... <3

Re: REQ :Jagged Alliance 3 table

Posted: Thu Jul 27, 2023 12:13 pm
by freekilla
farlei wrote:
Tue Jul 25, 2023 11:56 am

PS. Has anyone see a mod only for an extended period of hiring mercenaries?
I found a solution, thanks to several Infos+Tools provided here in this forum.

You might need the HPK-Compiler
download/file.php?id=52004
PW: GhostFace

-Unpack HPK-Compiler to any (new) folder

-Copy hpk.exe in ...\JA3\Packs\

-Create Folder named ...\JA3\Packs\LUA

-open cmd.exe, change to folder ...\JA3\Packs\, type:
hpk extract --fix-lua-files Lua.hpk LUA

-Copy files \JA3\Packs\LUA\lua\mercenary.lua to HPK-Compiler-Folder
-Copy files \JA3\Packs\LUA\lua\Tactical\AIMHiringScreen.lua to HPK-Compiler-Folder

-Open HPK-Compiler-Folder in cmd.exe, type
java -jar unluac.jar mercenary.lua > mercenary_decompiled.lua
java -jar unluac.jar AIMHiringScreen.lua > AIMHiringScreen_decompiled.lua


-Open mercenary_decompiled.lua in editor (notepad++)
Change 2x
maxDay = 14
in line 1713 nad line 1718
to whatever you need

-Open AIMHiringScreen_decompiled.lua in editor (notepad++)
Change line 792
conversation_context.MaxDuration = 14
to whatever you need

-Back to cmd.exe in HPK-Compiler-Folder, type
luac.exe -o mercenary.lua mercenary_decompiled.lua
luac.exe -o AIMHiringScreen.lua AIMHiringScreen_decompiled.lua


- Copy both files back to \JA3\Packs\LUA\lua\ resp. \JA3\Packs\lua\lua\Tactical\ overwriting the original ones.

-Last step (puuhh)
open cmd.exe, change to folder ...\JA3\Packs\, type:
hpk create --cripple-lua-files --dont-compress-files LUA Lua.hpk

That's the hardcoded way. I would be very interested, how to bypass hardcoding (decompressing/decompiling/compiling/compressing) and insert any *.lua file as mod.
If anyone knows how to do this, maybe using the example-Mod:
download/file.php?id=51934
PW: 123456
on these two files as an How-To-Example, that would be great!!!

Re: REQ :Jagged Alliance 3 table

Posted: Thu Jul 27, 2023 2:44 pm
by xXLashkeXx
shearerc wrote:
Wed Jul 26, 2023 2:27 pm
xXLashkeXx wrote:
Wed Jul 26, 2023 2:03 am
Sooo I once uploaded the mod "Merc Hired 500 Days" as a test... Currently I did it with 500 for testing... Simply insert it under "%appdata%\Roaming\Jagged Alliance 3\mods" and let's test it. .. If it doesn't work please let me know....
Sorry it has no effect for me, still limited to 14 days :( . Tested on existing and new savegame. And yes, the mod is properly installed and I can enable it in Mod Manager without errors. Steam 1.02
Okaaaaay.... I have Fixed "Merc Hired 500 Days" mod...
Files was to big.. I added on the Dropbox, sry! :D 8-)

viewtopic.php?p=304502#p304502

Re: REQ :Jagged Alliance 3 table

Posted: Thu Jul 27, 2023 11:27 pm
by shearerc
xXLashkeXx wrote:
Thu Jul 27, 2023 2:44 pm
Okaaaaay.... I have Fixed "Merc Hired 500 Days" mod...
Woohoo! It works this time, on existing savegame. TQ much! :D

Re: REQ :Jagged Alliance 3 table

Posted: Sat Jul 29, 2023 7:41 am
by AzzkyAspid
Is it possible to edit current save game? Want to correct some stats.

Re: REQ :Jagged Alliance 3 table

Posted: Sat Jul 29, 2023 9:33 am
by r3v4n
AzzkyAspid wrote:
Sat Jul 29, 2023 7:41 am
Is it possible to edit current save game? Want to correct some stats.
iirc there's a respec button in the cheat mod :?:
Have you tried this?

Re: REQ :Jagged Alliance 3 table

Posted: Sat Jul 29, 2023 11:28 am
by AzzkyAspid
r3v4n wrote:
Sat Jul 29, 2023 9:33 am
AzzkyAspid wrote:
Sat Jul 29, 2023 7:41 am
Is it possible to edit current save game? Want to correct some stats.
iirc there's a respec button in the cheat mod :?:
Have you tried this?
Yes. But this help to rearrange perks only. But I'd like to change stats (strength, agility etc)... :shock: