This is a mod requirable hack that must be required by a mod to be enabled.
This hack allows mods to provide custom files without modifying the game install.
It also allows mods to handle the game requesting files with Lua scripts which allows for a number of powerful features.
These are all of the available configuration options for this hack.
These should go in
CustomFiles.ini in the root of a mod.
; [Miscellaneous] Section ; OccludedPath: Occlude a file from the game's view, this will make the game think it doesn't exist. Be careful with this. Repeat for each file. ; [PathRedirections] Section: Set Path Redirections for Files ; PATH_TO_FILE: Set a path to another file, this will tell the game to use that one instead of the original. Repeat for each file. ; [PathHandlers] Section: Set Handlers for Files ; PATH_TO_FILE: Set a path to a Lua script, this will allow that script to handle the file. Repeat for each file. ; Notes ; * Wildcard can be used in a path to indicate anything of any length. ; ? Wildcard can be used in a path to indicate anything of a set length. ; OccludedPath is best used to hide introduction movies as the game will simply carry on if they are not found. [Miscellaneous] ; Hide the Vivendi Universal Games intro movie. OccludedPath=movies\\vuglogo.rmv [PathRedirections] ; Redirect all License screens to this new one. art\\frontend\\dynaload\\images\\license\\*.p3d=art\\license\\license.p3d [PathHandlers] ; Handle famil_v with our script over there. art\\cars\\family_v.p3d=Resources/scripts/handlers/famil_v.lua
See Lua Scripting.
Fixed a crash when redirecting files loaded by frontend pages.
Fixed a bug where using
GetSetting on an
Number setting would return a number.
Added various Console output messages.
- Now uses the Lua Support hack.
- This means this version effectively upgrades from Lua 5.2.3 to 5.3.1.
- This also makes the
coroutinelibraries available in Lua scripts and removes support for compiled Lua files.