RGBLasers 1.2.0

Adds configurable laser color settings to the BepInEx plugin configuration menu.

ibtioo7k.png

rgblasers_v120.gif


This BepInEx plugin allows you to modify the RGB values of rendered laserbeams in the game world. There is also a rainbow mode, for a perpetually changing rainbow effect.



This plugin currently modifies all rendered laser beams in-game. That means any AI using laser attachments will have the same laser effects as you do (afaik). This also means you can't change the color for specific laser modules, ie. you can't have a red and a green laser simultaneously (for now).


Features


  • Customizable laser color, including a cycling rainbow option.
  • Custom mesh options to increase laser size, density, distance, etc.
  • Lasers are easily configurable via the BepInEx configuration menu (F1/F12).
  • Zero FPS impact.
  • Compatible with all light/laser bundle edit mods, including [alex's Better Lasers].
  • Validated to work on various different versions of SPT-AKI.


Installation


Simply drop the RGBLasers.dll file into your BepInEx/plugins folder.


Open the BepInEx plugin configuration menu in-game (F12 by default) and change the values to your liking. If rainbow mode is enabled, the RGB values will be ignored.


Known Bugs


None, so far.


Changelog


The release notes [here] describe changes per version.

  • Version 1.2.0

    Place the RGBLasers.dll file into your BepInEx/plugins folder.


    This release adds new functionality for dynamically modifying the laser beam and point light meshes at runtime to allow for larger beam sizes. Additionally, some other parameters were added, such as light intensity, to be configurable.


    Works for AKI versions >=3.6.1.

  • Version 1.1.1

    This release updates the mod to work for AKI 3.2.0, and all future versions.

  • Version 1.1.0

    This version should work for most AKI installations older than 3.2.0.

  • v1.2.0 is done, tried using mesh edits to try and create a "thicker" laser, but I may eventually also add some modified bundles similar to Better Lights & Lasers.


    Didn't notice any performance issues in my testing but please let me know if you notice any major performance or FPS drops when using the new version, or any other bugs you come across. I'm pretty sure it should be fine...

    Heart 1 Thumbs Up 1
  • I haven't played SPT in a while, but some users have confirmed this should still work for the latest version of AKI without any changes, so I updated the compatibility tag to 3.7.6. Let me know if you run into any issues!

  • should work without performance issue in 3.7.5 right?

    Thank you autor!

    • Probably, haven't tested it.

      Heart 1
  • v1.2.0 was originally tested on the 3.7.0 bleeding edge build, so I am assuming it will work fine for the full 3.7.0 release. Let me know if it doesn't or you encounter any issues. For now, I am marking this as 3.7.0 compatible.

    • Thank you for your mod, I like it, can have the mawl with a bright red laser.... Cool! Can confirm, it works fine with 3.7.0 :thumbup::thumbup:

      Heart 1
  • I want this with flashlights. Imagine Visceral Bodies / Dismemberment with a red flashlight on factory nighttime. Absolutely brutal LMAO

  • How do I make lasers more visible? The only mod I found for it is outdated as fuck.

    • This mod should already amplify the laser intensity, but it is not currently configurable and may not be bright enough for you.


      When I have some free time I'll see if I can work on it, but my current install of EFT is for 0.13.5 development. Don't want to do any plugin work until that's stable.

      Heart 2
    • Seconded. I would also love configurable brightness for the lasers and the dot, if you ever get the chance. Individually, if that's even possible, so faint laser with bright dot or vice-versa, with configurable ranges from invisible to death star beam.

    • That should be possible. I'll give it a look soon.

      Heart 1 Thumbs Up 1
  • works with 3.6.0

    Heart 1
  • Still works in 3.5.8 for anyone wondering.

    Thumbs Up 1
    • Thanks, will update the tag.

  • Code
    здравствуйте, подскажите как настоять на лице, чтобы оно было золотистого насыщенного цвета. а то все эти ползунки я дигай и никак не могу попасть в нужный цвет
  • Why i got virus warning like this?


    https://imgur.com/k2GoGba

    • That is not a virus warning, it is a warning that all .dll files have the capability to harm your computer.

      Thinking 1
  • still working in 3.4.1 :)

    • Nice, thanks for letting me know kanapat

  • is it compatible with better lights and lasers?

    • Should be, Better Lights & Lasers accomplishes its effects through bundle edits, whereas mine is done at runtime through a plugin. The laser might be really bright though.

      Thumbs Up 1
    • Okay thank you i'll check it out.

  • pepeclown

  • Really really cool mod idea!

  • 3.2.0 should now be supported. Grab the new version and let me know how it works.

    • I suggest editing your mod to reflect that it is on 3.2.0

  • Hi,


    I just installed your mod with AKI 3.2.0 and lasers colors won't change. Did I miss anything when trying to enable it ?


    I dropped the .dll in the BepInEx/plugins folder and when I press F12 I see the menu. But any changes I make in game don't do anything to lasers. Could someone check if it works for them ?


    All the others plugins works so it's not a problem with BepInEx apparently.

    • After looking in the BepInEx logs an error appears :



      MissingFieldException: Field 'LaserBeam.LightColor' not found.

      at RGBLasers.RGBLaserInjector.Update () [0x0007a] in <68d4970b58c34aa0a84e6d31c03351ea>:0

      UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)

      UnityEngine.DebugLogHandler:LogException(Exception, Object)

      Class297:UnityEngine.ILogHandler.LogException(Exception, Object)

      UnityEngine.Logger:LogException(Exception, Object)

      UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

      (Filename: <68d4970b58c34aa0a84e6d31c03351ea> Line: 0)


      If it can help you debug

    • Thanks, looks like BSG updated the LaserBeam class, I'll take a look soon.


      EDIT: Updated.

    • Thx a lot for the fast update !

  • I'm assuming this should work for 3.2.0 without testing it, let me know if that's not accurate.

    • it doesnt appear to be working with 3.2.0 unfortunately. i tried several different tings to get it to work and it doesnt. the f12 menu appears for it but the actual RGB color from the laser isnt there and there are a bunch of errors in the console regarding the color. i love this mod so ill keep checking back to see if it gets updated/fixed to work with 3.2.0

    • Okay, I'll take a look. Thanks for the report.


      EDIT: Updated.

  • I can confirm that this also works on 3.0.0 :)
    Have fun!

    Like 1
  • Just want to let people know that this also works on 2.3.0

  • Firearm performance increased by 20%.

  • I'm a bit dumb, but I didn't quite understand the setup. ;(:S Help me pls...

    • Setup? All you do is put the file in your BepInEx/plugins folder as it says so in the description.


      If you're using 2.3.1, the original release was missing a .dll that the mod depends on (ConfigurationManager.dll) If that's not in your BepInEx/plugins folder, the F12 menu won't work. The file was added in an update to the 2.3.1 release, so you might need to redownload the server to get that file.

    • Thanks kanapoker

  • lul - thats cool:D