File information

Last updated

Original upload

Created by

StinVec

Uploaded by

StinVec

Virus scan

Safe to use

Tags for this mod

Documentation

Readme

View as plain text

"Spectrum Flashlight Mod" mod for Dying Light
Created By: StinVec
https://www.nexusmods.com/dyinglight/users/21896034


_____________________________________________________________________________________
This mod is safe to use on both new and existing save games in all difficulty modes.
However, with any game you modify, it is always a good idea to make a backup of your
save game files before making any changes.

(save games are located at "...\Steam\userdata\*userid_or_number*\239140\" folder)
_____________________________________________________________________________________



__1__ To install "Spectrum Flashlight Mod"
__2__ To uninstall "Spectrum Flashlight Mod"



__1__________________________________________________________________________________
_____ To install "Spectrum Flashlight Mod" __________________________________________

File Affected: "...Steam\Steamapps\common\Dying Light\DW\Data3.pak"

1) Browse to your Dying Light installation folder and enter the 'DW' folder
2) Make a backup copy of the Data3.pak file if one exists
3) Open the downloaded "Spectrum Flashlight Mod" .zip file
4) Copy only the "Data3.pak" file from this zip into your game's 'DW' folder

--- If you ARE using other mods ---
1) Add this mod's files into your existing Data3.pak file if they do not already exist in it
-- If any files already exist due to being modified by other mods, manually merge this mod's files with the
existing ones modified by other mods using a program like WinMerge and place the combined version into your
Data3.pak file



__2__________________________________________________________________________________
_____ To uninstall "Spectrum Flashlight Mod" ________________________________________

-ARE NOT- using other mods:
� Remove the "Data3.pak" file from your game folder or replace it with the backup Data3.pak file you made

-ARE- using other mods:
- If file merging was needed
� Replace your Data3.pak file with the backup version that does not have Spectrum Flashlight Mod
added to it
or
� Manually remove the added Spectrum Flashlight Mod elements from the files or replace the merged
files with backup versions that do not have Spectrum Flashlight Mod elements incorporated into them





_____________To Merge With Other Mods_____________
*********************
Mod Merge Information
*********************
First, if you are encountering an issue of this mod not merging properly with another mod, it may due to this other
mod using an improper file structure. When you open your Data3.pak file, you should see only a folder called "data".
If you see any other files or folders there then this other mod author is using an incorrect file structure that
will break any properly structured mods that you attempt to merge into it.

You will first need to correct their improper file structure to merge their improperly structured mod with this mod
and other mods that are using the correct and proper file structure. The easiest way to fix their incorrect file
structure is to create a new folder called "data" inside of your Data3.pak file. You must then move all of those
existing files and folders into this "data" folder. You can then proceed to merge this mod with your existing mods
now that their structure is fixed.
*********************

For those with existing game mods that modify these files and would like help with merging, feel free to message
me and request that I merge SFM into your existing "Data3.pak" file for you. I'd be happy to help.

You need a tool like WinRAR to open and manipulate the .pak files the game is using.
.pak files are .zip files with a different extension.

_____________Mod Compatibility_____________

'Spectrum Flashlight Mod' alters the following game files:
----- "data\scripts\inventory\inventory_gen_dlc1.scr" - 2 lines to add
----- "data\scripts\inventory\inventory.scr" - 2 flashlight items to rename

!!!
- Browse your existing Data3.pak file to see if there are any existing versions of these files in use by other mods.
- If any of these files already exist in your Data3.pak file _DO NOT_ overwrite them! This means you are already
using a mod that modifies the file(s). You will need to manually edit the existing file(s) and add some lines of
code from this mod into the existing file(s).
!!!


To modify your existing version of the file(s) to also include this mod:

1. Make a backup copy of your Data3.pak file before beginning

2. Open the SFM zip and your existing Data3.pak file along side each other
-- Open the downloaded "Spectrum Flashlight Mod" .zip file
-- Enter the "Files To Merge Into An Existing Modified Data3.pak File" folder.
-- Open your existing Data3.pak file ("...Steam\Steamapps\Common\Dying Light\DW\Data3.pak")

3. Copy all non-conflicting files and folders from the SFM.zip window over to your open Data3.pak file
-- You may need to copy them to your computer first and then into the Data3.pak file instead of directly
from one to the other

4. Manually make the SFM changes to your existing files:
-- Open each of the conflicting scr files with a text editor program like Notepad one at a time along side
the existing versions from your Data3.pak file

-- File 1: "data\scripts\inventory\inventory_gen_dlc1.scr"
Copy the clearly defined 'import' and 'use' mod elements in the SFM file over to your existing file into
the proper places:
'import' section at the top of the file
'use' section above the } at the bottom of the file

-- File 2: "data\scripts\inventory\inventory.scr"
-- Change #1
In your existing file, use the text editor's 'search' function to look for "flashlight_basic" and rename:

Item("Flashlight_Basic"

to something like:

Item("Flashlight_Basic_default"

-- Change #2
In your existing file, use the text editor's 'search' function to look for "Flashlight_HARD" and rename:

Item("zzz_Flashlight_HARD"

to something like:

Item("zzz_Flashlight_HARD_default"

-- Change #3
In your existing file, use the text editor's 'search' function to look for "Flashlight_NIGHTMARE" and rename:

Item("zzz_Flashlight_NIGHTMARE"

to something like:

Item("zzz_Flashlight_NIGHTMARE_default"


(if you eventually remove the mod and do not want to lose any changes other mods have done to this file, you
can simply remove the "_default" part you added to the name or replace the whole file with the backup copy you
made)