Far Cry 5 Script Loader

Feb 28, 2018
14
4
3
#21
gir489 post_id=41769 time=1523196550 user_id=3979 said:
JDimensional post_id=41748 time=1523174677 user_id=13492 said:
Are there files missing? Seems like a lot of the lua files they depend on are missing.
I had mentioned this to Sunbeam, and he said he couldn't locate the other files that are referenced.
No worries it seems a lot of lua files are scattered between .dat files and some are still unamed in the unpacker and/or hidden somewhere so I am sure they will come up at some point. Still unpacking .dat files myself.

*EDIT* Finding a lot of the referenced files in installpkg.dat and common.dat
 

SunBeam

Trouble-Maker
Talents
Feb 4, 2018
564
299
63
#22
I've only unpacked farcry5.dat, there might be others in other .dat files. Also, some that are interesting were not shipped in the release build, so yeah, stop looking :)
 
Apr 8, 2018
5
0
1
#23
Stoopid noob question... I took care of the EAC bypass. Used this last night with Mr.AF trainer. Worked great, but won't activate anymore so... I placed both the dll and the lua in the bin directory. When I click insert, nothing happens. Thoughts?
 

SunBeam

Trouble-Maker
Talents
Feb 4, 2018
564
299
63
#24
^ It is a DLL you have to manually inject with CE, for example.
 

Meth0d

What is cheating?
Apr 8, 2018
3
0
1
#26
JDimensional post_id=41789 time=1523207185 user_id=13492 said:
gir489 post_id=41769 time=1523196550 user_id=3979 said:
JDimensional post_id=41748 time=1523174677 user_id=13492 said:
Are there files missing? Seems like a lot of the lua files they depend on are missing.
I had mentioned this to Sunbeam, and he said he couldn't locate the other files that are referenced.
No worries it seems a lot of lua files are scattered between .dat files and some are still unamed in the unpacker and/or hidden somewhere so I am sure they will come up at some point. Still unpacking .dat files myself.

*EDIT* Finding a lot of the referenced files in installpkg.dat and common.dat
Release here as soon as possible dude :)
Let's create a database.
 

Norway-_-1999

RCE Fanatics
Talents
Apr 5, 2018
9
3
3
#27
JDimensional post_id=41624 time=1523017801 user_id=13492 said:
Lua:
--Give Player set ammo in held weapon
CAPI_Player.GiveAmmoToPlayer(player, 999)

Lua:
--Enable flashlight
CAPI_Player.SetFlashlightEnable(player, 1);
Lua:
--Disable Flashlight
CAPI_Player.SetFlashlightEnable(player, 0);

Lua:
CAPI_Player.SetPlayerMoney(player, 999999);
Change 999999 to amount you want.

Lua:
--Disable Fall Damage
CAPI_Player.SetLandingDamageEnabled(player, 0);
Lua:
--Enable Fall Damage
CAPI_Player.SetLandingDamageEnabled(player, 1);

Lua:
--Force Credits
PopUpEndOfGame(1);
Game breaking, DO NOT DO.

Lua:
--Remove fire from player.
CAPI_Pawn.ExtinguishFire(player, 1);
Lua:
--Extinguish All Fires
ExtinguishAllFires(1);

*USE WITH CAUTION*
Lua:
--Remove All Inventory (This also removes fists etc)
CAPI_Pawn.RemoveAllInventory(player, 1);
More inventory scripts to come as and when I find them.

Lua:
--Mark a Zone as out of bounds
MarkOutOfBounds(1);

--Mark a Zone as not out of bounds
MarkOutOfBounds(0);
*EDIT* Turns out it does not remove already implemented OOB but is used to remove ones you add yourself.


Lua:
-- Disable Death at 0 Oxygen
CAPI_Pawn.SetDieOnOxygenDepletion(player, 0);
Lua:
-- Enable Death at 0 Oxygen
CAPI_Pawn.SetDieOnOxygenDepletion(player, 1);

Just visual stuff for the lulz.
Lua:
--Change size of the moon.
SetOverrideMoonSize(1); -- Tiny Moon
--Change to whatever size you want to see the difference.

*EDIT* Added all my scripts into this one post and put in code tags.
Added to thread, thanks for sharing.
 

SunBeam

Trouble-Maker
Talents
Feb 4, 2018
564
299
63
#28
Here's my feedback from browsing the decompiled .lua files in farcry5.dat:

• considering missions end with a 'completed' message and a slow motion effect, this is why:
Code:
cboxRes:RegisterBox("Domino/System/CHEAT_SetEnvironmentTimeScale.lua")
• there are Lua files for all 3 upcoming DLCs from which you can learn quite a bunch of stuff:

- there's going to be a gravity belt in the Lost on Mars DLC:
Code:
C:\lua_decompiled\domino\user\gyms\gym_sha_dlc_mars_benchmark\mars_benchmark_initilization.mars_gravitybelt.lua (1 hit)
[0] = "cheat_belt 0"
- the Hours of Darkness DLC takes place in Vietnam
Code:
04/08/2018  03:02            84,079 lib_vietnam_activities.dlcv_brick_aagun_double.debug.lua
04/08/2018  03:02            39,172 lib_vietnam_activities.dlcv_brick_aagun_double.lua
04/08/2018  03:02            63,050 lib_vietnam_activities.dlcv_brick_aagun_single.debug.lua
04/08/2018  03:02            31,190 lib_vietnam_activities.dlcv_brick_aagun_single.lua
04/08/2018  03:02            53,058 lib_vietnam_activities.dlcv_brick_artillerybomb.debug.lua
04/08/2018  03:02            24,979 lib_vietnam_activities.dlcv_brick_artillerybomb.lua
04/08/2018  03:02           200,831 lib_vietnam_activities.dlcv_brick_outpost.debug.lua
04/08/2018  03:02            92,155 lib_vietnam_activities.dlcv_brick_outpost.lua
04/08/2018  03:02           115,606 lib_vietnam_activities.dlcv_brick_outpost_cinematic.debug.lua
04/08/2018  03:02            54,196 lib_vietnam_activities.dlcv_brick_outpost_cinematic.lua
04/08/2018  03:02            29,656 lib_vietnam_activities.dlcv_brick_outpost_success.debug.lua
04/08/2018  03:02            14,701 lib_vietnam_activities.dlcv_brick_outpost_success.lua
04/08/2018  03:02           102,265 lib_vietnam_activities.dlcv_brick_pow_american.debug.lua
04/08/2018  03:02            47,084 lib_vietnam_activities.dlcv_brick_pow_american.lua
04/08/2018  03:02            84,238 lib_vietnam_activities.dlcv_brick_pow_southvietnam.debug.lua
04/08/2018  03:02            38,899 lib_vietnam_activities.dlcv_brick_pow_southvietnam.lua
04/08/2018  03:02            65,615 lib_vietnam_activities.dlcv_brick_warningfailingzone.debug.lua
04/08/2018  03:02            29,708 lib_vietnam_activities.dlcv_brick_warningfailingzone.lua
04/08/2018  03:02            12,930 lib_vietnam_openworld.dlcv_brick_breakablebuildings.debug.lua
04/08/2018  03:02             6,261 lib_vietnam_openworld.dlcv_brick_breakablebuildings.lua
04/08/2018  03:02            59,861 lib_vietnam_openworld.dlcv_brick_hannah.debug.lua
04/08/2018  03:02            28,985 lib_vietnam_openworld.dlcv_brick_hannah.lua
04/08/2018  03:02           108,712 lib_vietnam_openworld.dlcv_brick_mapprogresscheck.debug.lua
04/08/2018  03:02            40,725 lib_vietnam_openworld.dlcv_brick_mapprogresscheck.lua
04/08/2018  03:02            33,531 lib_vietnam_openworld.dlcv_brick_worldzonetrigger.debug.lua
04/08/2018  03:02            16,177 lib_vietnam_openworld.dlcv_brick_worldzonetrigger.lua
- the Lost on Mars DLC has various challenges/missions where you're supposed to kill a queen, destroy some eggs, etc.; just check the name of the Lua files in domino\library\sp :)
Code:
04/08/2018  03:02           121,846 lib_mars_activities.dlcm_brick_antenna_cinematic.debug.lua
04/08/2018  03:02            57,283 lib_mars_activities.dlcm_brick_antenna_cinematic.lua
04/08/2018  03:02            57,976 lib_mars_activities.dlcm_brick_antenna_liberate.debug.lua
04/08/2018  03:02            25,769 lib_mars_activities.dlcm_brick_antenna_liberate.lua
04/08/2018  03:02            36,347 lib_mars_activities.dlcm_brick_interact_with_terminal.debug.lua
04/08/2018  03:02            17,251 lib_mars_activities.dlcm_brick_interact_with_terminal.lua
04/08/2018  03:02            12,883 lib_mars_activities.dlcm_brick_safehouse_postcompletion.debug.lua
04/08/2018  03:02             6,181 lib_mars_activities.dlcm_brick_safehouse_postcompletion.lua
04/08/2018  03:02           120,031 lib_mars_activities.dlcm_brick_safehouse_rebootsequence.debug.lua
04/08/2018  03:02            53,711 lib_mars_activities.dlcm_brick_safehouse_rebootsequence.lua
04/08/2018  03:02            10,655 lib_mars_activities.dlcm_brick_vo_manager.debug.lua
04/08/2018  03:02             5,418 lib_mars_activities.dlcm_brick_vo_manager.lua
04/08/2018  03:02           104,418 lib_mars_brick_nest.brick_nest_destroyeggs_v1.debug.lua
04/08/2018  03:02            49,646 lib_mars_brick_nest.brick_nest_destroyeggs_v1.lua
04/08/2018  03:02            59,553 lib_mars_brick_nest.brick_nest_phase1_enragequeen_v2.debug.lua
04/08/2018  03:02            28,928 lib_mars_brick_nest.brick_nest_phase1_enragequeen_v2.lua
04/08/2018  03:02           193,028 lib_mars_brick_nest.brick_nest_phase2_eliminatequeen_v2.debug.lua
04/08/2018  03:02            88,557 lib_mars_brick_nest.brick_nest_phase2_eliminatequeen_v2.lua
04/08/2018  03:02            34,423 lib_mars_brick_nest.brick_nest_phase3_rebootterminal.debug.lua
04/08/2018  03:02            16,774 lib_mars_brick_nest.brick_nest_phase3_rebootterminal.lua
04/08/2018  03:02            53,662 lib_mars_brick_nest.brick_nest_queenspawningfx.debug.lua
04/08/2018  03:02            25,886 lib_mars_brick_nest.brick_nest_queenspawningfx.lua
04/08/2018  03:02            85,239 lib_mars_brick_nest.dlcm_brick_sh_reboot_v0.debug.lua
04/08/2018  03:02            38,104 lib_mars_brick_nest.dlcm_brick_sh_reboot_v0.lua
04/08/2018  03:02            13,623 lib_mars_common.checkvaluevalidity.debug.lua
04/08/2018  03:02             6,845 lib_mars_common.checkvaluevalidity.lua
04/08/2018  03:02            19,001 lib_mars_common.compareentitymultiple.debug.lua
04/08/2018  03:02             8,598 lib_mars_common.compareentitymultiple.lua
04/08/2018  03:02               212 lib_mars_common.globals.lua
04/08/2018  03:02           102,158 lib_mars_common.gp_arachnidreinforcementspawning_v2.debug.lua
04/08/2018  03:02            46,087 lib_mars_common.gp_arachnidreinforcementspawning_v2.lua
04/08/2018  03:02            56,466 lib_mars_common.gp_autodoor_v1.debug.lua
04/08/2018  03:02            25,897 lib_mars_common.gp_autodoor_v1.lua
04/08/2018  03:02            27,041 lib_mars_common.gp_flashlighttod_v1.debug.lua
04/08/2018  03:02            12,789 lib_mars_common.gp_flashlighttod_v1.lua
04/08/2018  03:02            44,285 lib_mars_common.gp_genericrandomspawner.debug.lua
04/08/2018  03:02            20,231 lib_mars_common.gp_genericrandomspawner.lua
04/08/2018  03:02            52,636 lib_mars_common.gp_gravitybelt_switch_v1.debug.lua
04/08/2018  03:02            21,819 lib_mars_common.gp_gravitybelt_switch_v1.lua
04/08/2018  03:02            16,526 lib_mars_common.gp_playdialog_anne.debug.lua
04/08/2018  03:02             8,245 lib_mars_common.gp_playdialog_anne.lua
04/08/2018  03:02           143,456 lib_mars_common.gp_queenspawning_distance_v1.debug.lua
04/08/2018  03:02            64,316 lib_mars_common.gp_queenspawning_distance_v1.lua
Will post more once digging is complete :p

BR,
Sun
 

gir489

RCE Fanatics
Talents
May 8, 2017
188
8
18
#29
Did you find anything on inventory manipulation yet? Can't find jack shit...
 
Mar 28, 2018
36
0
6
#30
SunBeam post_id=41888 time=1523306811 user_id=12587 said:
Here's my feedback from browsing the decompiled .lua files in farcry5.dat:

• considering missions end with a 'completed' message and a slow motion effect, this is why:
Code:
cboxRes:RegisterBox("Domino/System/CHEAT_SetEnvironmentTimeScale.lua")
• there are Lua files for all 3 upcoming DLCs from which you can learn quite a bunch of stuff:

- there's going to be a gravity belt in the Lost on Mars DLC:
Code:
C:\lua_decompiled\domino\user\gyms\gym_sha_dlc_mars_benchmark\mars_benchmark_initilization.mars_gravitybelt.lua (1 hit)
[0] = "cheat_belt 0"
- the Hours of Darkness DLC takes place in Vietnam
Code:
04/08/2018  03:02            84,079 lib_vietnam_activities.dlcv_brick_aagun_double.debug.lua
04/08/2018  03:02            39,172 lib_vietnam_activities.dlcv_brick_aagun_double.lua
04/08/2018  03:02            63,050 lib_vietnam_activities.dlcv_brick_aagun_single.debug.lua
04/08/2018  03:02            31,190 lib_vietnam_activities.dlcv_brick_aagun_single.lua
04/08/2018  03:02            53,058 lib_vietnam_activities.dlcv_brick_artillerybomb.debug.lua
04/08/2018  03:02            24,979 lib_vietnam_activities.dlcv_brick_artillerybomb.lua
04/08/2018  03:02           200,831 lib_vietnam_activities.dlcv_brick_outpost.debug.lua
04/08/2018  03:02            92,155 lib_vietnam_activities.dlcv_brick_outpost.lua
04/08/2018  03:02           115,606 lib_vietnam_activities.dlcv_brick_outpost_cinematic.debug.lua
04/08/2018  03:02            54,196 lib_vietnam_activities.dlcv_brick_outpost_cinematic.lua
04/08/2018  03:02            29,656 lib_vietnam_activities.dlcv_brick_outpost_success.debug.lua
04/08/2018  03:02            14,701 lib_vietnam_activities.dlcv_brick_outpost_success.lua
04/08/2018  03:02           102,265 lib_vietnam_activities.dlcv_brick_pow_american.debug.lua
04/08/2018  03:02            47,084 lib_vietnam_activities.dlcv_brick_pow_american.lua
04/08/2018  03:02            84,238 lib_vietnam_activities.dlcv_brick_pow_southvietnam.debug.lua
04/08/2018  03:02            38,899 lib_vietnam_activities.dlcv_brick_pow_southvietnam.lua
04/08/2018  03:02            65,615 lib_vietnam_activities.dlcv_brick_warningfailingzone.debug.lua
04/08/2018  03:02            29,708 lib_vietnam_activities.dlcv_brick_warningfailingzone.lua
04/08/2018  03:02            12,930 lib_vietnam_openworld.dlcv_brick_breakablebuildings.debug.lua
04/08/2018  03:02             6,261 lib_vietnam_openworld.dlcv_brick_breakablebuildings.lua
04/08/2018  03:02            59,861 lib_vietnam_openworld.dlcv_brick_hannah.debug.lua
04/08/2018  03:02            28,985 lib_vietnam_openworld.dlcv_brick_hannah.lua
04/08/2018  03:02           108,712 lib_vietnam_openworld.dlcv_brick_mapprogresscheck.debug.lua
04/08/2018  03:02            40,725 lib_vietnam_openworld.dlcv_brick_mapprogresscheck.lua
04/08/2018  03:02            33,531 lib_vietnam_openworld.dlcv_brick_worldzonetrigger.debug.lua
04/08/2018  03:02            16,177 lib_vietnam_openworld.dlcv_brick_worldzonetrigger.lua
- the Lost on Mars DLC has various challenges/missions where you're supposed to kill a queen, destroy some eggs, etc.; just check the name of the Lua files in domino\library\sp :)
Code:
04/08/2018  03:02           121,846 lib_mars_activities.dlcm_brick_antenna_cinematic.debug.lua
04/08/2018  03:02            57,283 lib_mars_activities.dlcm_brick_antenna_cinematic.lua
04/08/2018  03:02            57,976 lib_mars_activities.dlcm_brick_antenna_liberate.debug.lua
04/08/2018  03:02            25,769 lib_mars_activities.dlcm_brick_antenna_liberate.lua
04/08/2018  03:02            36,347 lib_mars_activities.dlcm_brick_interact_with_terminal.debug.lua
04/08/2018  03:02            17,251 lib_mars_activities.dlcm_brick_interact_with_terminal.lua
04/08/2018  03:02            12,883 lib_mars_activities.dlcm_brick_safehouse_postcompletion.debug.lua
04/08/2018  03:02             6,181 lib_mars_activities.dlcm_brick_safehouse_postcompletion.lua
04/08/2018  03:02           120,031 lib_mars_activities.dlcm_brick_safehouse_rebootsequence.debug.lua
04/08/2018  03:02            53,711 lib_mars_activities.dlcm_brick_safehouse_rebootsequence.lua
04/08/2018  03:02            10,655 lib_mars_activities.dlcm_brick_vo_manager.debug.lua
04/08/2018  03:02             5,418 lib_mars_activities.dlcm_brick_vo_manager.lua
04/08/2018  03:02           104,418 lib_mars_brick_nest.brick_nest_destroyeggs_v1.debug.lua
04/08/2018  03:02            49,646 lib_mars_brick_nest.brick_nest_destroyeggs_v1.lua
04/08/2018  03:02            59,553 lib_mars_brick_nest.brick_nest_phase1_enragequeen_v2.debug.lua
04/08/2018  03:02            28,928 lib_mars_brick_nest.brick_nest_phase1_enragequeen_v2.lua
04/08/2018  03:02           193,028 lib_mars_brick_nest.brick_nest_phase2_eliminatequeen_v2.debug.lua
04/08/2018  03:02            88,557 lib_mars_brick_nest.brick_nest_phase2_eliminatequeen_v2.lua
04/08/2018  03:02            34,423 lib_mars_brick_nest.brick_nest_phase3_rebootterminal.debug.lua
04/08/2018  03:02            16,774 lib_mars_brick_nest.brick_nest_phase3_rebootterminal.lua
04/08/2018  03:02            53,662 lib_mars_brick_nest.brick_nest_queenspawningfx.debug.lua
04/08/2018  03:02            25,886 lib_mars_brick_nest.brick_nest_queenspawningfx.lua
04/08/2018  03:02            85,239 lib_mars_brick_nest.dlcm_brick_sh_reboot_v0.debug.lua
04/08/2018  03:02            38,104 lib_mars_brick_nest.dlcm_brick_sh_reboot_v0.lua
04/08/2018  03:02            13,623 lib_mars_common.checkvaluevalidity.debug.lua
04/08/2018  03:02             6,845 lib_mars_common.checkvaluevalidity.lua
04/08/2018  03:02            19,001 lib_mars_common.compareentitymultiple.debug.lua
04/08/2018  03:02             8,598 lib_mars_common.compareentitymultiple.lua
04/08/2018  03:02               212 lib_mars_common.globals.lua
04/08/2018  03:02           102,158 lib_mars_common.gp_arachnidreinforcementspawning_v2.debug.lua
04/08/2018  03:02            46,087 lib_mars_common.gp_arachnidreinforcementspawning_v2.lua
04/08/2018  03:02            56,466 lib_mars_common.gp_autodoor_v1.debug.lua
04/08/2018  03:02            25,897 lib_mars_common.gp_autodoor_v1.lua
04/08/2018  03:02            27,041 lib_mars_common.gp_flashlighttod_v1.debug.lua
04/08/2018  03:02            12,789 lib_mars_common.gp_flashlighttod_v1.lua
04/08/2018  03:02            44,285 lib_mars_common.gp_genericrandomspawner.debug.lua
04/08/2018  03:02            20,231 lib_mars_common.gp_genericrandomspawner.lua
04/08/2018  03:02            52,636 lib_mars_common.gp_gravitybelt_switch_v1.debug.lua
04/08/2018  03:02            21,819 lib_mars_common.gp_gravitybelt_switch_v1.lua
04/08/2018  03:02            16,526 lib_mars_common.gp_playdialog_anne.debug.lua
04/08/2018  03:02             8,245 lib_mars_common.gp_playdialog_anne.lua
04/08/2018  03:02           143,456 lib_mars_common.gp_queenspawning_distance_v1.debug.lua
04/08/2018  03:02            64,316 lib_mars_common.gp_queenspawning_distance_v1.lua
Will post more once digging is complete :p

BR,
Sun

It was already known that the Hours of Darkness would take place in Vietnam. What i do want to know is if it will be something like Blood Dragon? Taking place in an open world environment? Or will it be linear with only missions without really being able to explore? You found some interesting info there about the Mars DLC though.
 

SunBeam

Trouble-Maker
Talents
Feb 4, 2018
564
299
63
#31
There are openworld references in the Lua file names.
 
Mar 28, 2018
36
0
6
#33
I'm curious about something. Is it possible to auto inject the "Norway-_-1999_FC5_SL.dll" straight into the game once the game exe is running? Like if cheat engine recognises the exe as active it will auto inject the "Norway-_-1999_FC5_SL.dll" without having to alt-tab out of the game to do this manually?
 

gir489

RCE Fanatics
Talents
May 8, 2017
188
8
18
#34
I'm curious about something. Is it possible to auto inject the "Norway-_-1999_FC5_SL.dll" straight into the game once the game exe is running? Like if cheat engine recognises the exe as active it will auto inject the "Norway-_-1999_FC5_SL.dll" without having to alt-tab out of the game to do this manually?
You could use something like Xenos to auto inject the DLL once FarCry5.exe is running.
 

roormonger

What is cheating?
Apr 11, 2018
3
0
1
#36
I have found this
Code:
CAPI_Pawn.AddItemToStash(player, itemDescriptorID, quantity)
Would like to know where to get the itemDescriptorID's from.

I have also found these functions

High Vision
local player = GetLocalPlayerId();
CAPI_Player.VisionModeStartHigh(player, 50, false);

Drunk Vision
local player = GetLocalPlayerId();
CAPI_Player.VisionModeStartDrunk(player, 50, false);

Bliss Vision
local player = GetLocalPlayerId();
CAPI_Player.VisionModeStartBliss(player, 50, false);

Stop Vision
local player = GetLocalPlayerId();
CAPI_Player.VisionModeStop(player);

Allow Front Takedown
SetAllowFrontTakedown(GetLocalPlayerId(), true);


true and false for the visions sets if the value you set (all of my examples are set to 50) is used as a percentage. I have not played around with it too much.
 

gir489

RCE Fanatics
Talents
May 8, 2017
188
8
18
#37
I have found this
Code:
CAPI_Pawn.AddItemToStash(player, itemDescriptorID, quantity)
Would like to know where to get the itemDescriptorID's from.
I think they might be the weapon's internal name? I found this in the Lua Sunbeam posted, might be relevant:

Code:
function export:OnEnter_box_InventoryItemModifier_174()
    local params;
    params = {
        -- itemDescriptorID,
        [0] = "9015213169001738",
        -- players,
        [2] = "#ED455357",
        -- quantity,
        [3] = 1,
    };
    return params;
end;
I also found files referencing the D50 and MG42 in patch_english.dat's graphics folder. Maybe they plan on bringing that back?

There's also a function GetEquippedItemID that might return whatever you have. Could be useful to log the result and see what happens when you switch stuff around.
 
Last edited:

roormonger

What is cheating?
Apr 11, 2018
3
0
1
#38
I think they might be the weapon's internal name? I found this in the Lua Sunbeam posted, might be relevant:

Code:
function export:OnEnter_box_InventoryItemModifier_174()
    local params;
    params = {
        -- itemDescriptorID,
        [0] = "9015213169001738",
        -- players,
        [2] = "#ED455357",
        -- quantity,
        [3] = 1,
    };
    return params;
end;
I also found files referencing the D50 and MG42 in patch_english.dat's graphics folder. Maybe they plan on bringing that back?

There's also a function GetEquippedItemID that might return whatever you have. Could be useful to log the result and see what happens when you switch stuff around.
What are you using to extract these dat and fat files?
 
Top Bottom