Shop [Unmaintained]
Discussion in 'Plugin Support' started by Bombardir, Nov 16, 2014.
-
Is there a way to list the items in a particular order when using /bsl? Tried rearranging the items in the config file, but that didn't seem to do anything.
-
[DOUBLEPOST=1424235825][/DOUBLEPOST] -
cant seem to get the plugin to load up with an edited config. Upon every server startup it rewrites the config with all prices at 0. how can I fix this?
-
Make sure that the option "New_Price_List" is set to false.
-
Code:
[2/18/2015 12:11:30 PM] [Oxide] 12:11 PM [Info] [Logger] Jikey#0327 ran chat command: /buy wood 10[2/18/2015 12:12:36 PM] [Oxide] 12:12 PM [Info] [Logger] Jikey#0327 ran chat command: /sell wood 10[2/18/2015 12:11:30 PM] [Oxide] 12:11 PM [Error] LuaScriptException while calling C_Buy: File: Shop.lua Line: 64 attempt to index field '?' (a boolean value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0[2/18/2015 12:12:36 PM] [Oxide] 12:12 PM [Error] LuaScriptException while calling C_Sell: File: Shop.lua Line: 64 attempt to index field '?' (a boolean value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
Code:"PriceList": { "generated": { "3655341": [ 0.5, 0.02, false, "Wood" ], }, "base": { "Wood": 0, } },
[DOUBLEPOST=1424255593][/DOUBLEPOST]when everywhere 0, all working -
[Oxide] 10:52 AM [Info] Loaded plugin Shop v1.1.0 by Bombardir
[Oxide] 10:52 AM [Info] Price List Loaded!
wont generate -
-
span { font-family: 'Consolas'; font-size: 10pt; color: #000000; } .sc0 { } .sc5 { color: #0000FF; } .sc6 { color: #808080; } .sc10 { color: #000080; } .sc11 { } .sc13 { color: #0080C0; }
self.Config.Generate.New_Price_List=trueself.Config.PriceList=dataself:SaveConfig()print("Price List Generated!") end
[DOUBLEPOST=1424275260][/DOUBLEPOST]also i just have the main plugin file.. should i have more then just 1 file? -
[DOUBLEPOST=1424275402][/DOUBLEPOST] -
is there anyway to send me that file? my server provider is bullS**t and none of my plugins are making cfg files..
-
I did set "New_Price_List" to false. but it still rewrites the config when I start server with modified config prices. All prices roll back to default 0. Has anyone been able to get prices adjustetd? Also would it matter that im editing both base prices and the pricelist while keeping the "New_Price_List": false? should I leave the base prices 0? never had a problem before.
Last edited by a moderator: Feb 18, 2015 -
> oxide.reload Shop
[Oxide] 12:02 PM [Info] Unloaded plugin Shop v1.1.0 by Bombardir
[Oxide] 12:02 PM [Info] Loaded plugin Shop v1.1.0 by Bombardir
[Oxide] 12:02 PM [Info] Price List Loaded!
gen=self.Config.Generateor{}
gen.New_Price_List=gen.
New_Price_Listifgen.New_Price_List==nilthengen.
New_Price_List=trueendgen.
Generate_Ingredients=gen.
Generate_Ingredientsortruegen.
Sell_Modificator=gen.Sell_Modificatoror0.25
gen.Blueprint_Modificator=gen.Blueprint_Modificatoror3
gen.List_Items_Per_Page=gen.List_Items_Per_Pageor10
self.Config.Generate=gen
and how do i flag so none admin can change stuff via in game -
even when I do oxide.reload Shop in console after altering config it jsut writes a new config with everything for FREE.
-
should post a good generic price list for a good start.
-
Worked after generating a list from base prices then reloading and altering after. Apparently you cant just jump straight to the point anymore. (Edit: you can jump to the point with server off but not running, my mistake.)
Last edited by a moderator: Mar 9, 2015 -
Works fine for me but it's getting really old having to go through and remake the whole price list every update
-
yeah would be nice for a good price econ standard where you dont have to fricken edit all the time..
-
I can't buy or sell anything
But the price list work
Buy error
Code:File: Shop.lua Line: 189 Object reference not set to an instance of an object: at PlayerInventory.GiveItem (Int32 itemid, Int32 amount, Boolean sendNotification) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
EDIT:NEVERMIND I JUST REALISED THERE IS NEW AND OLD ITEMIDS
Rust updated item id list >.>Last edited by a moderator: Feb 21, 2015 -
what ithem id metal ore? in the pricelist it is, but not in the generated
[DOUBLEPOST=1424794720][/DOUBLEPOST]sulfar ore and metal ore not selling, what?
[DOUBLEPOST=1424794779][/DOUBLEPOST]Code:[2/24/2015 7:16:59 PM] [Oxide] 7:16 PM [Error] LuaScriptException while calling C_Sell: File: Shop.lua Line: 64 attempt to index field '?' (a boolean value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 [2/24/2015 7:18:33 PM] [Oxide] 7:18 PM [Error] LuaScriptException while calling C_Buy: File: Shop.lua Line: 64 attempt to index field '?' (a boolean value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0