File information

Last updated

Original upload

Created by

StinVec

Uploaded by

StinVec

Virus scan

Safe to use

Tags for this mod

25 comments

  1. StinVec
    StinVec
    • premium
    • 189 kudos
    Locked
    Sticky
    Latest Version: SFM.1.49
    Compatibility: Officially released Steam v1.49.0 - 1.50.0 (and GoG/Epic Equivalent)
    ____________________________________________________
    Troubleshooting - Custom flashlight color not importing and crashing on game load after install due to disabling official flashlight
    Spoiler:  
    Show

    If the mod flashlight is not being imported properly, some things to try to resolve this issue include:

    Verify that the mod is installed properly
    - Ensure you have installed the mod properly by following the steps outlined in the mod ReadMe Install-Uninstall file
    - If merging was required to add this mod to your existing Data3.pak file that has other mods installed into it, verify that any file conflicts between the mods were merged properly and no typos, stray characters, or placement issues were mistakenly made in the file(s)

    Utilize an alternate DLC to import the mod flashlight item
    - Open the Data3.pak file using WinRar or 7z and browse to the "data\scripts\inventory" folder
    - Rename the mod's "inventory_gen_dlc1.scr" file to "inventory_gen_dlc17.scr" to import the mod flashlight item via the "The Following" DLC (DLC17) instead of the standard "Be The Zombie" built-in DLC (DLC1)

    ____________________________________________________
    Tips for swapping colors
    Spoiler:  
    Show

    If you've merged SFM with other mods and you want to change the flashlight color to another of the colors the mod is available in, you don't need to re-merge all of its files into your existing ones again. As everything is the same between the colors, you can simply replace the "data\scripts\inventory\spectrum\spectrum.scr" file with that file of a different color.

    Using red? Open the Teal zip file and browse to the "spectrum.scr" file and copy and replace the one in your Data3.pak file with it.
    Want to try yellow? Copy Yellow's "spectrum.scr" file into your Data3.pak and overwrite the one in there.

    ______________________________
    Tips for changing the color to a custom one
    Spoiler:  
    Show

    In the spectrum.scr file are two items - the regular flashlight settings ("Flashlight_Basic"), and the settings for the flashlight in hard/nightmare mode ("zzz_Flashlight_HARD").

    If you also play in the harder modes, you may want to make the same changes to the 'HARD' flashlight as you do to the 'Basic' flashlight.

    If you want to change it to a color other than those provided by the mod versions, find the color you want it to be. You can usually search online for "color wheel" and get the exact combination of numbers you want for the shade of color you want.

    Its values are "Red" "Green" and "Blue", from 0 to 255.

    Example:
    0, 0, 0 = Black
    255, 255, 255 = White
    255, 0, 0 = Red
    0, 255, 0 = Green
    0, 0, 255 = Blue

    If you max both red and blue you will get purple (255, 0, 255).
    If you want it to not be as vibrant or bright of a purple and it be darker, just lower the values to some lower number (120, 0, 120).

    Once you have the shade you want, you can open the "spectrum.scr" file and edit its color attribute.

    In the "spectrum.scr" file, change the 5th attribute to the color you want, and the 6th attribute to the same attribute, and then lower it a little:

    Visibility(true);
    ItemType(ItemType_Flashlight);
    Price(0);
    PhysicsScript("single_dropped_inventory.phx");
    -->LightFullColor([125.0,0.0,180.0]);
    -->LightDimColor([90.0,0.0,135.0]);

    Here with Violet as an example, 'LightFullColor' has a mixture of red and blue, with zero green to make a shade of violet.
    Change this to the color you want it to be.
    Then change 'LightDimColor' to the same value. If you want your flashlight to dim when your battery gets lower, decrease the values some to make a darker shade.


    ______________________________



    _______________________________________________________________________
    PLEASE ACTUALLY READ THE README FILE AND MOD DESCRIPTION
    _______________________________________________________________________
    Asking basic questions that are not only already answered, but PLASTERED all over the mod and its files wastes not just my time, but yours.
    On that note:
    Spoiler:  
    Show
    As I am constantly needing to reply to questions on my mods with "As noted in the ReadMe...", and "As noted in the mod description...", if you do post a question that is already clearly answered on the mod page or in the mod ReadMe file(s):
    A) your question will be ignored
    B) your question will be removed
    C) you will be banned from access to all of my content

    Repeated posts asking already-answered questions will likely also lead to removal of not just the question(s), but also of the ability for the poster to download or even see any of my mods on Nexus.

    I already put the effort in to writing the information out clearly and in multiple locations. Being too lazy to bother reading any of them and going right to asking a question that is literally answered an inch above where the question is being written has no excuse.
    _________________________________________________________________________________________________________________
    As I am used to re-writing information:
    To summarize: Anyone who asks a question/makes a statement/reports an issue that is already answered in the ReadMe file or clearly noted in the mod description will have their question ignored, outright deleted, and or simply blocked from even being able to see/download any of my mods.
    _________________________________________________________________________________________________________________
  2. cyv233
    cyv233
    • member
    • 0 kudos
    Great Mod!
    Can you make that for the Survivor Sense aswell?
    If possible like in the demo version?
    1. StinVec
      StinVec
      • premium
      • 189 kudos
      Hi. Thank you very much for taking the time to let me know you enjoy the mod and also for inquiring about another way to improve your enjoyment of the game.

      I will absolutely look to make a Spectrum Survivor Sense mod as you are looking for. I'm not sure what it looked like in the demo version against how it is currently in the game. As the loot itself that is detected when using the Survivor Sense is the color/rarity of the item sensed, are you looking for the sense 'wave' that goes out to be made to be different colors instead of a white color? Or are you looking for all sensed items to be a uniform color when sensed regardless of what the item's color/rarity is?
    2. StinVec
      StinVec
      • premium
      • 189 kudos
      I will likely also implement the mod with a customization file where you can choose the desired color from within the file, as well as alter the sense range, highlight duration, and speed at which the sense wave moves.

      Something close to this:

      /////////////////////////////////////////
      ////////////// Sense Color ////////////// Add // to the left of the active color 'use' line to disable it
      ///////////////////////////////////////// Then remove // from the desired color 'use' line to enable it
      // use Aqua_Sense_Color
      // use Blood_Sense_Color
      // use Blue_Sense_Color
      use White_Sense_Color
      // Green_Sense_Color
      // Orange_Sense_Color
      // Red_Sense_Color
      // Teal_Sense_Color
      // Violet_Sense_Color
      // Yellow_Sense_Color

      //////////////////////////////////////
      ///////////// Sense Range //////////// Add // to the left of the active range 'use' line to disable it
      ////////////////////////////////////// Then remove // from the desired range 'use' line to enable it
      // Very_Low_Sense_Range
      // Low_Sense_Range
      Normal_Sense_Range
      // High_Sense_Range
      // Very_High_Sense_Range

      //////////////////////////////////////
      ////// Sense Highlight Duration ////// Add // to the left of the active highlight duration 'use' line to disable it
      ////////////////////////////////////// Then remove // from the desired highlight duration 'use' line to enable it
      // Very_Low_Sense_Duration//////// 2.5 seconds
      // Low_Sense_Duration//////// 5 seconds
      Normal_Sense_Duration//////// 10 seconds
      // High_Sense_Duration//////// 30 seconds
      // Very_High_Sense_Duration//////// 60 seconds

      //////////////////////////////////////
      /////// Sense Speed ////////////////// Add // to the left of the active sense speed 'use' line to disable it
      ////////////////////////////////////// Then remove // from the desired sense speed 'use' line to enable it
      // Very_Slow_Sense_Speed//////// 0.5
      // Slow_Sense_Speed//////// 0.25
      Normal_Sense_Speed//////// 0.15
      // Fast_Sense_Speed//////// 0.08
      // Very_Fast_Sense_Speed//////// 0.01
    3. cyv233
      cyv233
      • member
      • 0 kudos
      Well, in the demo the zombies flashed red, instead of orange. The "wave" was transparent and you could see, it moved way slower than in the original.
      Also the zombies didn´t have an outline of their body, they just flashed for 1 sec giving you an awareness of their present. I am looking for a mod, that changes the "wave" color aswell as it´s movement and makes the zombies flash "red" for one second. Just watch the demo "12 minutes of Dying Light gameplay" and you will see how it looked like in the demo.
    4. StinVec
      StinVec
      • premium
      • 189 kudos
      Thank you very much for all of that detailed information! The color of the night enemy sense highlight and is also easily customizable. I think the enemy highlight and the item highlight duration may be linked to the same value, so I don't think those can be altered separately so items highlight for a long time, but enemies for only a second or two. I'll take a look at that video and see if I can get the exact behavior duplicated and offer those choices in the customization file. if I can duplicate it, I'll also offer an alternate, pre-customized version of the mod set to those 'demo' settings, which can still be customized like the default file I'll look to offer.
  3. MAX79RUS
    MAX79RUS
    • member
    • 2 kudos

    sorry for late koment))) Thank you very much for the mod,good idea!!! Really had a little to adjust))) slightly Increased the range and angle of the beam,izvenjajus for liberty. If you can answer whether ordinary flashlight screw UV??? PS sorry for the language I Russian,and thanks again)
    1. StinVec
      StinVec
      • premium
      • 189 kudos
      Hello. I am glad that you like to use this. I changed the range and angle in my own game also, and other settings.

      If you are asking if these changes to the ordinary flashlight mess up or alter the UV flashlight, they do not.
      This mod does not touch the UV flashlight item at all, but it can be made to. I will look into making alternate colors for the UV flashlight as well.

      If you are asking if the ordinary flashlight can be changed to emit a UV beam that damages enemies, instead of only the regular light, as far as I can see it cannot. I am sad to say that the UV effect is not a single attribute that can be added to it. The damaging UV effect is associated with any flashlight that is equipped in your equipment slots which must be kept activated manually.

      I will do a few more tests to see if a heat/UV damage attribute can be added to the ordinary flashlight, but I do not think it will work.

      I am sorry if I am misunderstanding you completely. I will try to understand better if you can explain differently or in more detail what you mean by 'screw UV'.
    2. MAX79RUS
      MAX79RUS
      • member
      • 2 kudos
      Thank you very much for your reply. You correctly understood my thought. PS sorry again for the language is difficult to Express the thought on not native language)))
    3. StinVec
      StinVec
      • premium
      • 189 kudos
      And thank you for asking me. I am glad to try to help and answer any questions.

      I made more attempts to add UV damage to the ordinary flashlight, but I have not found any way that works yet.

      Your English is quite good. There is no need to apologize. One language is hard enough at times, especially in this year due to how much all languages have grown and changed, so I commend and admire you for working to know and to try to be able to communicate in more than one.
    4. MAX79RUS
      MAX79RUS
      • member
      • 2 kudos

      Yes, unfortunately and my attempts to install the UV radiation at normal lamp has failed. Thank you so much for responding to my question ))) PS Oh, and big minus mods , including game one )))
  4. TehHacker
    TehHacker
    • premium
    • 1 kudos
    this is a really cool mod. one request though, you think you could somehow have a setting in game so we can have all the light colors to change from while in game?
    1. StinVec
      StinVec
      • premium
      • 189 kudos
      HI. Thanks for checking the mod out and commenting. This was just asked by someone else down below and I responded about whether or not a swapping ability could be made in the options menu for it, but I'll go into a bit more on what I've found out on trying to get ANY kind of in-game color change ability.

      So the flashlight exists as an actual item in the game files (Flashlight_Basic). This mod hides that defined item and makes a duplicate in another file that has a different color. I put it in its own file for easier merging with other mods and so it's easier to switch out with a different color by replacing this small mod file.

      Now, even if this mod is not installed and I delete the actual flashlight item, your flashlight still works perfectly fine. The flashlight item seems to exist in the game code and this defined item simply allows for tweaking some of its values.

      That's what I thought, anyway. After making this mod and with it hiding the default flashlight, if you hide the duplicated one then your game won't even start up. Apparently this flashlight item is required for the game to even start and there is likely not an internally-coded flashlight item or it would use it instead of crashing.

      Anyway:
      There are 4 equipment slots for secondary weapons.
      Throwable items have an 'EquipmentSlot' value of '0'
      The defined flashlight item has a value of '1'
      The grappling hook has a value of '2'
      And the shield has a value of '3'

      All of these items can be placed into any of the 4 equipment slots, but the defined slot value seems more related to how the item functions:
      Slot '0' for items you throw and are not attached to you. Can be unequipped.
      Slot '1' is your flashlight that has a toggle keybind and is attached on your shoulder. Cannot be unequipped or even seen or changed.
      Slot '2' is your grappling hook that has a unique function and you never actually let go of it. Can be unequipped.
      Slot '3' is your Shield item that is attached to you similar to a weapon, but you cannot throw it. Can be unequipped.

      Now here is where things get interesting.
      I've made several flashlight items of different colors. Even if I give them the '1' slot designation, just like the 'real' flashlight, it will only let me equip it to one of the 4 equipment slots like the UV flashlight.

      In fact, activating one of these custom flashlights not only requires the button held down to keep it activated like the UV flashlight, but also seems to be associated with the activation sounds for the UV flashlight simply because it is a flashlight being activated from one of the secondary/equipment slots.

      So, yes, I can make it so you can flip between different colors while in-game.
      The down sides are:
      1. It isn't toggleable and it must be held down to keep it turned on
      2. Each color takes up an equipment slot so you cannot use any other equipment while having this flashlight activated (can't throw stuff)
      3. It has that buzzing sound that the UV flashlight has

      #1 - Cannot be helped. I don't think. It may be possible to set your equipment slots to be toggles instead of hold-to-use
      #2 - Cannot be helped. There is a value in the default skills file for number of equipment slots and it is set to '4', but increasing that to 5 makes no difference. Only 4 can still be equipped.
      #3 - The sound for activating the UV flashlight (and the custom flashlights) can be disabled easily.

      Another interesting thing I didn't mention up there is that these custom flashlights that kind of behave like the UV flashlight (equips in a slot, buzzes) seem to be a combination of the custom color flashlight item and the default UV flashlight item. It has the color I defined in the custom flashlight item's attributes, but the range, intensity and other custom values are ignored and it instead uses the values that are in the UV flashlight item's attributes.

      There may be a solution somewhere in all of this to get an easily swappable colored flashlight item that is on a toggle, but I'm not seeing it just yet.

      Maybe one day I'll figure something out.
  5. lorka1985
    lorka1985
    • member
    • 1 kudos
    You know how got the "pure white" color ? beacause by default, its seem to be "yellow" ! maybe the general game effects, but if yo ucan add that , thx

    1. StinVec
      StinVec
      • premium
      • 189 kudos
      The 'default' white that I offer is exactly identical to the default item. Exact same color setting.
      Are you asking for one that is white, but with a slightly yellowish tint?
    2. lorka1985
      lorka1985
      • member
      • 1 kudos
      No lol, my perception of the defaut game flash-light tint, it is slightly yellowish tint for a "pure white", but maybe its a game filter who give this impression !
    3. StinVec
      StinVec
      • premium
      • 189 kudos
      Ah! Sorry.
      You may be right on it being a game filter, that it is only really noticeable on the white color and not the other rich colors.

      I know the game's "chromatic aberration" "feature" that is forced on everyone to use adds a yellowish hue to the world.
      I use SuperRobotx' "Simple Chromatic Aberration Changer" mod to get rid of the CA, which also gets rid of that yellow tint.
      http://www.nexusmods.com/dyinglight/mods/164/

      That may be why I don't notice the yellow tint on the white flashlight anymore. Sorry, I forgot that mod removes the yellowish tint. Explains a lot. :)
    4. lorka1985
      lorka1985
      • member
      • 1 kudos
      thx you this mod for remove chromatic aberration is a new breath for me, an other game, thx you
  6. TheMightyWaffle156
    TheMightyWaffle156
    • premium
    • 31 kudos
    Is it possible to add an in-game menu to customize the choice of colour with a complete spectrum? Another cool feature could be the customization of the flashlight beam?(adding black spots to create a smiley face, etc.) It might be a bit out of the realm of possibility, but it would be really kick-ass.
    1. StinVec
      StinVec
      • premium
      • 189 kudos
      Unfortunately, I do not think the in-game menu is likely to be possible. There may be a chance that it could be made and defined to replace the color attributes of that specific item, but I think it would likely be extremely time-consuming to make. As I've not delved into modifying the in-game options at all, I'm not even sure that a selected value there could alter a specific value of an attribute for an item in a file.

      Then again, the flashlight is kind of hard-coded into the game. If you delete the flashlight item, your flashlight still exists and can be used. I think the flashlight item defined in the file is just to alter the internal flashlight code. Really not sure how it is set up on the inside with the flashlight attributes.

      It'd probably be very easy for Techland to add it in though, and even give it a hue slider. Having access to the game as they do opens so many possibilities for customization.

      Also unfortunate is our inability to replace textures in the game files so the beam could show an image instead of just the light texture. That's mainly to do with how textures are stored and used. They're not just in pak file where we could modify and replace them, they're inside of huge rpack files that cannot really be extracted, modified and repacked with modified files. :\

      I agree with you though, those would be very nice if we could do them.
    2. TheMightyWaffle156
      TheMightyWaffle156
      • premium
      • 31 kudos
      Yeah :p
      I really wish that it was possible to change textures and stuff, because it would open up so many new opportunities for modders.
      But then again the system as it is is fine right now, but it could use a few improvements(looking at you, techland. I would take that over dying light 2 or hellraid any day)
  7. ianc4ever
    ianc4ever
    • premium
    • 4 kudos
    thx StinVec again for another great mod.
    I always wanted different coloured lights, plain one kinda looked outta place - green light makes it look even more eerie at night.
    Thx

    ps- any advice on easiest method to combine .scr files?
    1. StinVec
      StinVec
      • premium
      • 189 kudos
      Glad to hear you like it. :)

      One of the easiest ways to merge documents, especially these game scr files that are identical but for a few changes, is a program called WinMerge.

      You can quickly see what is different between the two documents, quickly skip down to view the next difference, and quickly send the change over to the other file.

      Notepad++ has a plugin for comparing files also, but doesn't seem to have the quick move and send options WinMerge has. But Notepad++ is fantastic for a ton of other uses.

      Overall, I'd go straight for WinMerge when combining these game files where there are minor differences between them.
  8. retardmakeretard
    retardmakeretard
    • member
    • 0 kudos
    cool mod but kinda useless
    1. StinVec
      StinVec
      • premium
      • 189 kudos
      I quite like using several of the colors to give a different feeling to night gameplay, especially the red, blood, orange and aqua. I thought maybe some others might also.
    2. Killf4ce
      Killf4ce
      • premium
      • 5 kudos
      I like the look of these!