1. Then I might do a video instruction, but it tomorrow.
    And if you change the regular price in the store you do not need set new pricelist to true, only when you make them on the basis of reference prices.
     
  2. So I guess I was doing it wrong. Ca we add more to the cofig like weapons and other clothes?

    Thanks for your help and great plugin!
     
  3. The plugin generates a complete list of items you can only remove unnecessary)
     
    Last edited by a moderator: Nov 18, 2014
  4. I'm not sure what you mean here?

    Himself add you hardly can, need item id
     
  5. I got it working, sweet plugin and here is what I was doing wrong, hopefully save other people from making the same mistake.

    When I modified the price file in the data directory (PriceList.json) to change the prices, I was also modifying the Shop.json file in the Config directory (setting the NewPriceList variable to true thinking this was needed when I update prices). This does NOT need to be set after you initialize (create) the PriceList.json file. So each time I was making changes to prices, I was setting this variable to true and thus regenerating all the other items I deleted, thus giving me lots of items set to 0/0 for buy, sell.

    Works great now, no instruction video needed for this guy, lol.

    Cheers,
    Meejun.

    upload_2014-11-18_15-18-33.png
     
  6. Oh I'm sorry. I mean that you will be hard to add the item to the list, as needed item id.
    [DOUBLEPOST=1416338608][/DOUBLEPOST]
    Yes of course, this option is made for the calculation of prices.
    For example you put the price of a wood: 10. And if something is composed of 100 wood, the plugin will set price: 1000.
     
  7. I just shut the server down, edited the pricelist (not base items) copied file over and started it up. It now says command unknown /bsl

    I did remove some items from the store per the directions.

    When I do a oxide.reload Shop I get this

    oxide.reload Shop
    [Oxide] 6:14 PM [Info] Loaded plugin Shop (v0.4.0) by Bombardir
    [Oxide] 6:14 PM [Error] Failed to initialise plugin Shop (A .NET exception occured in user-code)
    [Oxide] 6:14 PM [Debug] 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
     
  8. Check your syntax in your files
     
  9. http://jsonlint.com/ - check your pricelist
     
  10. get item with name not found when trying to buy 5.56 Rifle Cartridge
     
  11. M@CH!N3, try to search 'Rifle Cartridge'. The plugin can filter '.' .
     
  12. Bombardir updated Shop with a new update entry:

    Minor Changes

     
  13. Bombardir updated Shop with a new update entry:

    Updater

     
  14. thanks that works.

    noticed a glitch, if you by things like code locks it stacks them, but you MUST unstack them or else it will use the whole stack at once and you loose the extras. This goes with meat, locks, tools, etc.. everthing stacks when you buy multiple ones and if you don't unstack them you loose them.
     
  15. This is actually a problem of the Rust... But I will try to fix it.
     
  16. i have an error :
    Code:
    10:41 PM [Error] Shop: A .NET exception occured in user-code
      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.
     
    Last edited by a moderator: Dec 5, 2014
  17. How many of such errors? When it occurs?
     
  18. 4 Errors...
    Code:
    1:06 AM [Error] Shop: A .NET exception occured in user-code
      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
    1:12 AM [Error] Shop: A .NET exception occured in user-code
      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
    1:12 AM [Error] Shop: A .NET exception occured in user-code
      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
    1:13 AM [Error] Shop: A .NET exception occured in user-code
      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
     
    Last edited by a moderator: Dec 6, 2014
  19. I do not know what it is, need more information...
     
  20. When trying to buy something like A Bear trap it brings up multiple items and then it don't let you buy that item or the other item. Tried case sensitive tried many things still don't let you buy most of the items