Skip to content

Instantly share code, notes, and snippets.

@vivek1986
Created October 5, 2023 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vivek1986/7f43337cace81a7b2327831563234e5d to your computer and use it in GitHub Desktop.
Save vivek1986/7f43337cace81a7b2327831563234e5d to your computer and use it in GitHub Desktop.
FarCry How to mod steps for modding / editing *.lua files

How to extract and edit files in FarCry game folder

  1. Put this Batch Script in FarCry install folder inside FCData folder (C:\Games\Far Cry\FCData):
  • Name this script RenameAndExtractScriptsPakFile.bat
@echo off && setlocal
copy /b /v /y Scripts.pak Scripts.zip
md Backups && copy /b /v /y Scripts.pak ".\Backups"
powershell Expand-Archive Scripts.zip -DestinationPath .
del /a /f /s /q ".\Scripts.zip"
start "" ".\SCRIPTS\Default\Entities\Weapons"
endlocal && exit /b && exit
  1. Make the changes you wish in any Scripts\*.lua files and then goto Step3 to pack it back to *.pak.

  2. Now use this script(same Path: FarCry install folder inside FCData folder (C:\Games\Far Cry\FCData)) to pack it back:

  • Name this script CompressAndRenameToScriptsPakFile.bat
@echo off && setlocal
powershell Compress-Archive ".\Scripts" -DestinationPath ".\Scripts.zip"
move ".\Scripts.zip" ".\Scripts.pak"
endlocal && exit /b && exit
  1. Refer these modding helper scripts to know more about editing/modding other *.pak files. Download them from here. Also you can direct download the modded Scripts.pak file from here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment