Jump to content

Console Error

Not a Bug 1.3.2

dustyhansen

Posted

Getting the following console error after installing the latest version:

Loaded plugin Extra Vending Machine v1.3.2 by NooBlet [58ms]
Timer of 5s has failed in 'Extra Vending Machine v1.3.2 by NooBlet' [callback] (Object reference not set to an instance of an object)
   at void Oxide.Plugins.ExtraVendingMachine.SpawnVendingMachine1() in /home/container/carbon/plugins/ExtraVendingMachine.cs:line 471
   at void Oxide.Plugins.ExtraVendingMachine.OnServerInitialized()+() => { } in /home/container/carbon/plugins/ExtraVendingMachine.cs:line 39
   at Timer Oxide.Plugins.Timers.In(float time, Action action)+() => { } in /home/runner/work/Carbon/Carbon/Carbon.Core/Carbon.Components/Carbon.Common/src/Oxide/Libraries/Timer.cs:line 50

 

NooBlet

Posted

bc it looks like the monument is null . so is the monuments setup correct in config

 

dustyhansen

Posted

I also have an issue where the vending machine does not re-stock after a purchase with that config. i have tried everything to fix it but cannot.

NooBlet

Posted

why is all the max stock on 0

ExtraVendingMachine (1).json

so ive changed so things .... the max stocks needs to be more than refill amount and timer needs to be higher . that is in seconds .  so try this . it should refill every one min

 

dustyhansen

Posted

1 hour ago, NooBlet said:

why is all the max stock on 0

ExtraVendingMachine (1).json 3.4 kB · 0 downloads

so ive changed so things .... the max stocks needs to be more than refill amount and timer needs to be higher . that is in seconds .  so try this . it should refill every one min

 

The problem with this is that because it is a scrap exchange (all of my buy items are scrap) that it adds up the max stock amounts and then allows them to sell larger quantities of the items than I want.

NooBlet

Posted

any feed back on this . or can i close this ticket?

 

NooBlet

Posted

Changed Status from Pending to Not a Bug

dustyhansen

Posted

7 hours ago, NooBlet said:

any feed back on this . or can i close this ticket?

 

what do you mean? i replied twice and you didn't respond...

NooBlet

Posted

you can have the same items to sell . then it will stack ..... even in normal vendings this is the case thats why they dont do that .... sell for can be the same item ....

dustyhansen

Posted

1 minute ago, NooBlet said:

you can have the same items to sell . then it will stack ..... even in normal vendings this is the case thats why they dont do that .... sell for can be the same item ....

i don't understand what you are saying, sorry

your plugin doesn't allow me to sell scrap for multiple items and put a max stock on each item individually

did you see my config file above? ExtraVendingMachine.json? it doesn't work.

is there a way to fix this or do i have to have a separate vending machine for each item?

NooBlet

Posted

yes . bc when the stock is loaded its the same item so it will stack . and that will then mess up the refill timer

so no you cant have scrap to be sold multiple times for different items ... the items you sell must all be different

NooBlet

Posted

and because of facepunch vending logic . there is no way of separating which scrap was sold to get it in code , so this will not be possible

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.