Auto Refill Vending Machines V1.0

Auto Refill Vending Machines V1.0

Vending machines on my ship seem to take a long time to refill. I think its a combo of a long vanilla game reset time and if your ship’s “cell” doesn’t refresh. I like the immersion of being able to use a vending machine, less so getting an empty one.

It’s also nice when you get a surprise two for one dispensing from the machine, which is built into the game. So the chance of that was also increased.

This mod only updates the vending machine script and would not be compatible with any mod that also modifies that. There are some globals for vending machines that are exposed to mods and the console, however I was not able to change those directly (the reason I went to the script). But if someone were able to modify those values, it may also clash with this mod.

I changed the code flow in several places where the vendor machine can go to a “done” state where it will return the banging sound with no dispense. No matter what state the machine is in when the mod loads, it will reset itself and continue dispensing forever. If the machine is already in the “done” state (was already not dispensing), you may have to hit it twice, the first time will reset it and the next time it will dispense, and forever after.

I think Vortex just takes care of this because I didn’t have to do anything special. If you don’t use a mod manager, loose files have to be enabled in your StarfieldCustom.ini since this will put a vendingmachinescript.pex into your Data/Scripts folder, which needs to override the games base version of it that is locked away in a resource file (.ba2 file):

[Archive]
bInvalidateOlderFiles=1
sResourceDataDirsFinal=

Install with Vortex or place script file in Data/Scripts and make to allow loose files

Credits:

TennesseeTuxedo

Download mod

File File size
zip Auto Refill Vending Machines 2 KB
Share mod:

Leave a Reply

Your email address will not be published. Required fields are marked *