Page 8 of 18

Re: REQ :Jagged Alliance 3 table

Posted: Sun Jul 16, 2023 9:04 am
by MagnusOZi
kummitus888 wrote:
Sun Jul 16, 2023 8:58 am
The mod worked great.
after the update it is not working anymore.
shows it is enabled, but cheat menu never appears.
well we just have to wait for some one to find a fix hopefully ;)

Re: REQ :Jagged Alliance 3 table

Posted: Sun Jul 16, 2023 10:11 am
by kaneqc
VirgilSouth wrote:
Sun Jul 16, 2023 5:37 am
Btw changing NetSyncEvents.CheatRespecPerkPoints(unit) function to

Code: Select all

function NetSyncEvents.CheatRespecPerkPoints(unit)
  for _, effect in ipairs(unit.StatusEffects) do
    unit.perkPoints = 45
  end
  ObjModified(unit)
end
in Lua.hpk/Lua/Lua/Cheat.lua will set perk points to 45 (or whatever you want) for selected merc using respec perks cheat
Would you be so kind to export a .hpk file with this modification, so some lazy AH like me who have no idea how to use RUST could just simply copy and paste it, many thanks

Re: REQ :Jagged Alliance 3 table

Posted: Sun Jul 16, 2023 11:32 am
by Lake333GLD
kummitus888 wrote:
Sun Jul 16, 2023 8:58 am
The mod worked great.
after the update it is not working anymore.
shows it is enabled, but cheat menu never appears.
Try this. It is working fine for me. Enable in mods, turn on cheats in options menu, restart the game. Use cheat menu in game.

Path:
AppData\Roaming\Jagged Alliance 3\Mods

Password:
Lake333GLD

Re: REQ :Jagged Alliance 3 table

Posted: Sun Jul 16, 2023 1:20 pm
by HappyGamer
There is a mod for cheat menu available on Steam Workshop. It still works fine.
Achievements are also working, even with this mod and cheats used.

Re: REQ :Jagged Alliance 3 table

Posted: Sun Jul 16, 2023 1:26 pm
by Lake333GLD
HappyGamer wrote:
Sun Jul 16, 2023 1:20 pm
There is a mod for cheat menu available on Steam Workshop. It still works fine.
Achievements are also working, even with this mod and cheats used.
Yes. I did forget to inform. It does contain MAX_STATS script (85 stats points).

Re: REQ :Jagged Alliance 3 table

Posted: Sun Jul 16, 2023 1:44 pm
by tfigment
kummitus888 wrote:
Sun Jul 16, 2023 8:58 am
The mod worked great.
after the update it is not working anymore.
shows it is enabled, but cheat menu never appears.
Cheat menu never shows if you also have developer mode enabled. In my experience.

Here is my own contribution: (Thanks to Chapi for showing the way)
Mod with Additional Cheats
  • Max Squad Item Condition
  • Max Merc Item Condition
  • Max Squad Item Stacks (Does not max out the squad stash)
Cheats show in the Mod Options menu. Set to yes and Apply to use. Will auto deactivate but UI does not reflect so just exit menu.

Mod Options is best place to do this but its convenient for personal use. Probably better to add to existing menu via monkeypatching but that sounds like work.

Unpack to "%APPDATA%\Jagged Alliance 3\Mods" . Create folder if not exists. (Password: fearless)

Re: REQ :Jagged Alliance 3 table

Posted: Sun Jul 16, 2023 3:16 pm
by Lord Blade
Lake333GLD wrote:
Sun Jul 16, 2023 11:32 am
Try this. It is working fine for me. Enable in mods, turn on cheats in options menu, restart the game. Use cheat menu in game.

Path:
AppData\Roaming\Jagged Alliance 3\Mods

Password:
Lake333GLD
I install the mod, turn on cheats... but see no option to use them anywhere.

EDIT: Okay, got it working. Had to restart the game 3 times before the cheat menu appeared.

Re: REQ :Jagged Alliance 3 table

Posted: Sun Jul 16, 2023 3:57 pm
by rigis
mod [Link]
\AppData\Roaming\Jagged Alliance 3\Mods

Re: REQ :Jagged Alliance 3 table

Posted: Sun Jul 16, 2023 4:21 pm
by Cheech
awatar wrote:
Sat Jul 15, 2023 6:32 pm
...snip
decompilation:

Code: Select all

java -jar unluac.jar input_compiled.lua > output_decompiled.lua
...snap
@awatar
hi mate,

im trying to lear this, cause its very interesting^^

just installed the java version "17.0.7" 2023-04-18 LTS
i am interested to change the attributes of my PMC´s, so i used the batch file
Spoiler
for %%g in (*.hpk) do mkdir "%%~ng"
for %%g in (*.hpk) do hpk.exe extract "%%g" "%%~ng"
@echo All Done!
pause
to unpack the Data.hpk and the Lua.hpk. Those steps went fine. Changes made in the \Data\UnitDataCompositeDef\MERCSurvivor.generated.lua
then trying to
decompile the Lua\Lua\UnitDataCompositeDef\MERCSurvivor.generated.lua from Packs\Lua.hpk
with your above given java command
it gives me always an error:
Spoiler
java -jar unluac.jar "MERCSurvivor.generated.lua" 1>"decompile/MERCSurvivor.generated.lua"
Exception in thread "main" java.lang.IllegalStateException: The input chunk reports an unsupported instruction size: 8 bytes
at unluac.parse.LHeaderType.parse_instruction_size(LHeaderType.java:167)
at unluac.parse.LHeaderType53.parse_main(LHeaderType.java:422)
at unluac.parse.LHeaderType.parse(LHeaderType.java:67)
at unluac.parse.BHeader.<init>(BHeader.java:94)
at unluac.Main.file_to_function(Main.java:142)
at unluac.Main.main(Main.java:76)
the output file is 0 bytes = empty -.-
what to do?
thanks, cheers

Re: REQ :Jagged Alliance 3 table

Posted: Sun Jul 16, 2023 4:27 pm
by Cheech
tfigment wrote:
Sun Jul 16, 2023 1:44 pm
..snip
Cheat menu never shows if you also have developer mode enabled. In my experience.
..snap
with the mod above your post, from Lake333GLD, i can run both, cheat menu and dev console at once!...

Re: REQ :Jagged Alliance 3 table

Posted: Sun Jul 16, 2023 4:55 pm
by Lord Blade
Is there any way to add lockpicks and crowbars? Or repair the ones you have?

Re: REQ :Jagged Alliance 3 table

Posted: Sun Jul 16, 2023 4:56 pm
by SlipperyEel
Cheech wrote:
Sun Jul 16, 2023 4:21 pm
for %%g in (*.hpk) do hpk.exe extract "%%g" "%%~ng"
Make sure you use the --fix-lua-files switch when extracting HPKs with Luas.
Lord Blade wrote:
Sun Jul 16, 2023 4:55 pm
Is there any way to add lockpicks and crowbars? Or repair the ones you have?
Use the mod by tfigment to repair existing ones.

Re: REQ :Jagged Alliance 3 table

Posted: Sun Jul 16, 2023 5:00 pm
by Cheech
SlipperyEel wrote:
Sun Jul 16, 2023 4:56 pm
[..snip
Make sure you use the --fix-lua-files switch when extracting HPKs with Luas.
snap..
awesome, instant solution, thanks!

how to compile that file back again?

Re: REQ :Jagged Alliance 3 table

Posted: Sun Jul 16, 2023 5:03 pm
by SlipperyEel
Cheech wrote:
Sun Jul 16, 2023 5:00 pm
awesome, instant solution, thanks!
Even better, here's the lot from a modder on the official Discord - [Link]

Re: REQ :Jagged Alliance 3 table

Posted: Sun Jul 16, 2023 5:07 pm
by Cheech
SlipperyEel wrote:
Sun Jul 16, 2023 5:03 pm
Cheech wrote:
Sun Jul 16, 2023 5:00 pm
awesome, instant solution, thanks!
Even better, here's the lot from a modder on the official Discord - [Link]
nice, ty!
how do i compile that file then, after editing, back to its compiled state, or is this step not nessecary, before packing it back to .hpk?