Valens Has The Power 1.2.1

Allows you to configure a percentage chance for power to spawn automatically On for maps that allow it, at the start of Raid.

I never liked the fact that after you threw power on for a location that it suddenly is gone the next raid.


So this mod will allow you to configure a Percentage Chance for power to be set to On at the start of a Raid for all Maps that currently allow for this. Currently this is Customs, Interchange, and Reserve.

All extracts, and objects linked to power are working and operable (like OBJ21 Container, and ZB-013 extract on Interchange, and Customs respectively).


Configuration Manager Implemented!

In order to use the configuration manager you have two means of access.


In game you can press F12 to access the GUI provided by the BepInEx Configuration Manager and set your values there


OR


You can navigate to SPT-Aki/BepInEx/config/com.Valens.HasThePower.cfg and edit the values manually in here.


## Percentage Chance that Power will be On at Raid Start for the Customs Map. Default is 100.

# Setting type: Int32

# Default value: 100

Customs = 100


You would want to edit the part in Blue for each Green Map. Where Blue is the Percent Chance you desire for every map.


Will Raiders Spawn?!

Raiders will still spawn given that the switches their spawns are tied to (D2 on Reserve for instance) as the script that is run when you for example manually throw Power on is ran at Raid Start instead.


So yes raiders will still appear where appropriate if the %chance is hit. Currently I believe the %chance for D2 when power is thrown on is 50% so you have a 50% chance that Raiders will spawn.


To Install: all you need do is extract the BepInEx folder to your SPT installation.

To UnInstall: all you need to do is delete the ValensHasThePower.dll from your SPT-Aki/BepInEx/plugins folder, and remove ValensHasThePower-x.x.x (Where x.x.x is the version number you have) from your SPT-Aki/user/mods folder.


Thanks to CWX, and Clodan (that Alex) for their help in coding, and testing.


ALL SUPPORT IS DONE ON THE GITHUB FOR THE REPOSITORY/PROJECT YOU'RE HAVING THE ISSUE WITH.

CLICK HERE FOR SUPPORT OR TO REQUEST A FEATURE



  • Version 1.2.1

    Update for 3.1.0 and enable config manager as well as tidying up some things + conversion of user/mods folder to 3.1

  • Version 1.2.0

    Updated to be compatible with SPT-Aki v3.1.0

  • Version 1.1.0

    Implemented Configuration Manager via BepInEx Configuration Manager.


    Access the GUI config in game, before raid start to change the values properly, via the F12 shortcut.


    Access the config file out of game via Aki/BepInEx/config/com.Valens.HasThePower.cfg

    • Edit the value where it says MapName = 100 changing the 100 for what percentage you desire for power to be turned on for each map.
  • Version 1.0.1

    Updated release to be compatible with 2.3.1

  • Version 1.0.0

    Version 1.0.0 - Initial Release, compatible with SPT 2.3.0

  • Does this work on 3.71?

  • Does this work for 3.6.1?

  • sadly this mod conflicts with other I run.

    Strangely it hinders pmc from spawning (using bsp). One raid was 1 pmc that died to scavs, other raid heard footsteps once (interchange).

    As soon as I removed the mod everything was fine again.

  • Also working just fine on 3.4.1, in case anyone is wondering.

  • It still works on 3.3.0 btw !

  • shows up under f12 but not working in raid any suggestions?

    • Give me a bit to update it then, figured it should work but if it doesn't I'll have to delve into it deeper but atm V-AIO and V-Progression are priority.

    • Finally got around to testing it after releasing new versions of V-AIO and V-Progression. I have confirmed it is working on 3.2.2 and 3.2.1

  • Hard Post

  • Download only has the dll file but doesn't have to cfg file or the files that go in the mod folder.
    I have tried the source zip download but got a compatibility error while starting the server.

    • Config is done in game with F12 by default.


      bepinex/plugins/valenshasthepower.dll is the only file really needed.

    • Nothing is showing up for in f12. When i selected debug mode it says " plugins with no options available: AKI.xxxx, AKI.xxxx, config manager, valenshasthepower".

    • I was using your mod on 2.3.1 and so on and everything worked but on 3.1 nothing shows up when i press f12.

      Like 1
  • Can confirm that 1.1.0 works with Aki 3.0.

  • Thanks for the update <3

  • Question about capabilities. Given that you were able to flip the power switch based on a percentage, would it then possible to extend or create a new mod that will open a percentage of locked doors on a map and/or open a percentage of closed doors on a map? This will allow SPT players to feel a little bit like playing Live. Sometimes it takes forever to find a key (pre-flea) and you get quest locked. In Live, I would just run several raids and see if it was opened and if so then finish the quest.


    Extending that a bit further, would it be possible to have the loot generation nerfed by an adjustable range to simulate Live players beating you to the loot?

    • i just had the same idea wow :D

    • I'm sure it's all theoretically possible but not something I'm wanting to take up personally. If you take a look at the source code, you'll see why.


      It breaks down basically to running a bunch of for loops and then pairing it with random variable chance for every single door in the game per map. That'd be a shit load of code but also a shit load of gathering every single object (as that's what everything in game is, is an object).


      As for loot there's a few mods out there that you can already adjust loot distribution.

    • OK, thanks for the reply.

  • Will this mod be updated to v3?

    • It's compatible just need to drop the dll into bepinex/plugins. I've been lazy and haven't uploaded/updated the mod. Waiting for 3.1.0

  • SPT-AKI 2.3.1??? Is this some "developer ONLY access version", because the site ONLY has 2.3.0 as the current version - AKI Patcher

  • Cool mod!!! i like it alot. Would be cool if you could configure a % chance to have it on or off.

    • Done with the newest version.

      Like 1
  • Is there any easy way to limit which maps are affected? Like Only Customs power would be always on and remaining still requiring to be powered?

    • Easy way without knowing js/c#? No.

  • i dont understand where we supposed to install it like in the files were i copy my tarkov over to or where

    • Extract the contents of the zipped mod folder to your SPT-Aki install directly so something like C:\Games\SPT-Aki (this is just an example not necessarily where yours is installed). The install should be entirely separate from your EFT Live installation.


      it will install the mod into the C:\Games\SPT-Aki\BepInEx\Plugins and C:\Games\SPT-Aki\user\mods folders.

  • Thank you! This was the one mod I hoped was now possible with BepinEX that I have always wished for but knew it wasn't technically feasible at the time.

    • No problemo. :thumbup: Glad ya like it.

  • This is really great! Any chance you can through in a probability to the power on? Maybe make the chance configurable so it can somewhat simulate a Live raid?

    • I'll see about it.

    • To add to what NugentGL said, it would be awesome if we could configure which map has power ON by default (i.e. just have Interchange and not the 2 others).


      Great mod BTW !

    • Done with latest update.

      Like 2
    • You rock mate !

  • Labs? And will raiders spawn still? Do I have to activate power to spawn raiders still?

    • Labs doesn't require power, and this isn't designed to mess with switches for extracts.


      Raiders will still spawn given their chance tied to the switch as the switch is thrown automatically at raid start.

      Like 1
  • Will this mess with the raiders that spawn after the power is turned on for applicable maps?

    • Yes, it will enable them to spawn as power is turned on at whatever chance you have configured or the default pending the version of Tarkov you are on. Currently I believe for D2 switch it's 50%.

      Like 1
  • What is the power? :/

    Haha 1
    • Uh. Power. All of the power.


      It turns on power to Interchange, Customs, and Reserve.