Infinite Stock not working!!!

почему плагин не работает? ввод количества остается стандартным! Бесконечный запас
UP: sorry all working
UP: OverflowException: Arithmetic operation resulted in an overflow. error in console
 
Last edited:
due to an error, the server did not turn on after restart and spoiled the save file
error:
Error loading save (server/survivalhost.org/23232.215.sav)
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

OverflowException: Arithmetic operation resulted in an overflow.
at System.Linq.Enumerable.Sum[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector) [0x00036] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at VendingMachine.RefreshSellOrderStockLevel (ItemDefinition itemDef) [0x0007f] in <622100108423464eb70d44bb94c0f765>:0
at VendingMachine.Load (BaseNetworkable+LoadInfo info) [0x0006e] in <622100108423464eb70d44bb94c0f765>:0
at InvisibleVendingMachine.Load (BaseNetworkable+LoadInfo info) [0x00000] in <622100108423464eb70d44bb94c0f765>:0
at SaveRestore.Load (System.String strFilename, System.Boolean allowOutOfDateSaves) [0x00470] in <622100108423464eb70d44bb94c0f765>:0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
SaveRestore:Load(String, Boolean)
ServerMgr:Initialize(Boolean, String, Boolean, Boolean)
<StartServer>d__19:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

(Filename: <351e49e2a5bf4fd6beabb458ce2255f3> Line: 0)
 

Orange

Administrator
due to an error, the server did not turn on after restart and spoiled the save file
error:
Error loading save (server/survivalhost.org/23232.215.sav)
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

OverflowException: Arithmetic operation resulted in an overflow.
at System.Linq.Enumerable.Sum[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector) [0x00036] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at VendingMachine.RefreshSellOrderStockLevel (ItemDefinition itemDef) [0x0007f] in <622100108423464eb70d44bb94c0f765>:0
at VendingMachine.Load (BaseNetworkable+LoadInfo info) [0x0006e] in <622100108423464eb70d44bb94c0f765>:0
at InvisibleVendingMachine.Load (BaseNetworkable+LoadInfo info) [0x00000] in <622100108423464eb70d44bb94c0f765>:0
at SaveRestore.Load (System.String strFilename, System.Boolean allowOutOfDateSaves) [0x00470] in <622100108423464eb70d44bb94c0f765>:0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
SaveRestore:Load(String, Boolean)
ServerMgr:Initialize(Boolean, String, Boolean, Boolean)
<StartServer>d__19:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

(Filename: <351e49e2a5bf4fd6beabb458ce2255f3> Line: 0)
Where is config? And what version of plugin you are using?
 
{
"Extra stock by multiplier (0 to disable)": 10000000,
"Extra stock by amount (0 to disable)": 10000000,
"Force stock to amount (0 to disable)": 100000000
}

version 1.0.2
 

Orange

Administrator
{
"Extra stock by multiplier (0 to disable)": 10000000,
"Extra stock by amount (0 to disable)": 10000000,
"Force stock to amount (0 to disable)": 100000000
}

version 1.0.2
You set values too high, thats why its happened. You set default stock to 1m then extra stock 1m (2m) and then multiplier it by 1m. Thats too much
 
Top