• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Trader - Sell to Vending Machine Mod problem

kryzzk

New member
Around A18 I created a mod that allowed you to sell to the rentable vending machines as well as the other machines that spawn around the map.

The XML I used was: 

<setattribute xpath="/traders/trader_info" name="allow_sell">true</setattribute>

The mod has worked fine until now. With the current version of the game when you try to sell to one of the machines, the item is removed from your inv, no coin is given to you, and you are given the error "object not set to an instance of an object" Does anyone know what needs to be done to fix this? 

Thanks.

 
Last edited by a moderator:
Takes some code to fix. IDC made a small patch that fixes the issue. Fatrap I believe has it in one of his mods, and I added it to my vehicle pack as I had the same error with my Mechanic trader since he is technically a vending machine.

We did post it as a bug report in the hopes maybe TFP will sort the issue in vanilla so a patch isn't needed, but it technically isn't a vanilla bug so not sure if they will or not.

 
Last edited by a moderator:
Takes some code to fix. IDC made a small patch that fixes the issue. Fatrap I believe has it in one of his mods, and I added it to my vehicle pack as I had the same error with my Mechanic trader since he is technically a vending machine.

We did post it as a bug report in the hopes maybe TFP will sort the issue in vanilla so a patch isn't needed, but it technically isn't a vanilla bug so not sure if they will or not.
Thanks for the info, I found your vehicles mod on Nexus, and located the sellingfix.dll in it, but before I use it, is that .dll file why it's necessary to turn off EAC to use your vehicles mod?

Thanks.

 
Thanks for the info, I found your vehicles mod on Nexus, and located the sellingfix.dll in it, but before I use it, is that .dll file why it's necessary to turn off EAC to use your vehicles mod?

Thanks.
Yeah, can't run custom code with EAC on. 

 
Back
Top