HurtStore

A simplified store with dynamic prices

Total Downloads: 2,047 - First Release: Jan 15, 2016 - Last Update: May 12, 2018

5/5, 17 likes
  1. Sounds good, although I do like having the ability to fine tune how the calculation works. Hopefully this can still be built into the plugin somehow.
     
  2. I will still leave it in to give more control. But would like to move away from making a mandatory requirement. If that makes sense.

    I just need to get a more reliable supply vs demand equation.

    I originally inplemented a a timer on prices, but it created a huge exploit where users woulf buy extreme amounts of resources, wait for the timer and then sell all of it again for higher selling prices. this is why I opted the rpute for realtime updates to eliminate that all together. But my equation regarding the supply vs demand is a bit flawed.
     
  3. I have a problem
    I think it's money bug because Hurtstore/Economy/Bountie bug also

    13:38 [Warning] [HurtStore] check if settings
    13:38 [Info] [HurtStore] pierres
    13:39 [Warning] [HurtStore] check if settings
    13:39 [Info] [HurtStore] ressources
    13:39 [Warning] [HurtStore] check if settings
    13:39 [Info] [HurtStore] items


    It would be nice to create a selling hotel for the players, it would solve a lot of problem
    It's possible ? :)
    And add a shop clan , players manage themselves with their money ? :)
     
    Last edited by a moderator: Mar 11, 2016
  4. Those aren't bugs, they are just debug code left over.

    AS for the hotel thing, this will have to be developed as another plugin which I have very limited time for atm
     
  5. Hey sorry I'm not a pro in English

    I have an error, if I put the plugin while the server is started it works perfectly! But If I reboot the server I get this error and will not load the plugin.

    and I have the bank economy plugin installed.

    Code:
    11:07 [Info] Loading Oxide Core v2.0.1816...
    11:07 [Info] Loading extensions...
    11:07 [Info] Loaded extension Unity v1.0.1816 by Oxide Team
    11:07 [Info] Loaded extension SQLite v1.0.1816 by Oxide Team
    11:07 [Info] Loaded extension Python v1.0.1816 by Oxide Team
    11:07 [Info] Loaded extension JavaScript v1.0.1816 by Oxide Team
    11:07 [Info] Loaded extension MySql v1.0.1816 by Oxide Team
    11:07 [Info] Loaded extension CSharp v1.0.1816 by Oxide Team
    11:08 [Info] Loaded extension Lua v1.0.1816 by Oxide Team
    11:08 [Info] Loaded extension Hurtworld v1.0.1816 by Oxide Team
    11:08 [Debug] Cleanup file: C:\SERVICES\ni556654_2\hurtworld\mono-2.0.dll
    11:08 [Debug] Cleanup file: C:\SERVICES\ni556654_2\hurtworld\msvcr120.dll
    11:08 [Info] Using Covalence provider for game 'Hurtworld'
    11:08 [Info] Loading plugins...
    11:08 [Info] Loaded plugin Unity Core v1.0.0 by Oxide Team
    11:08 [Info] Loaded plugin Hurtworld Core v1.0.0 by Oxide Team
    11:08 [Info] Loaded plugin Time Manager v0.0.4 by SkinN
    11:08 [Info]
    11:08 [Info] [Time Manager] --------------------------------------------------
    11:08 [Info] [Time Manager] * Time settings:
    11:08 [Info] [Time Manager] Day length set to 20 minute/s
    11:08 [Info] [Time Manager] Night length set to 10 minute/s
    11:08 [Info] [Time Manager] --------------------------------------------------
    11:08 [Info] Help, RemoveStructure, HurtStore, PlayersList, NoClone, Reporting, BetterChat, HWClans, Reserved, LootChests, AdminTools, WelcomeMessage, EconomyBanks, Teleportation, Ping, Kits, AdvertMessages and AutoClean were compiled successfully in 2942ms
    11:08 [Info] Loaded plugin Help v1.2.0 by AnExiledGod
    11:08 [Info] Loaded plugin RemoveStructure v1.1.0 by JimLess
    11:08 [Info] Loaded plugin HurtStore v1.3.2 by Pho3niX90
    11:08 [Warning] [HurtStore] Creating a configuration file for HurtStore
    11:08 [Info] [HurtStore] StoreStock has loaded with 0 items
    11:08 [Error] Failed to initialize plugin 'HurtStore v1.3.2' (NullReferenceException: Object reference not set to an instance of an object)
    11:08 [Debug]   at Oxide.Plugins.HurtStore.Init () [0x00000] in <filename unknown>:0 
      at Oxide.Plugins.HurtStore.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0 
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 
      at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0 
    11:08 [Info] [HurtStore] Will now do failsafe check of config file
    11:08 [Info] [HurtStore] Storestock default 34
    11:08 [Info] [HurtStore] Storestock0
    11:08 [Info] [HurtStore] Defaults loaded = 34
    11:08 [Info] Unloaded plugin HurtStore v1.3.2 by Pho3niX90
    11:08 [Info] No previous version to rollback plugin: HurtStore
    11:08 [Info] Loaded plugin PlayersList v1.0.3 by Reneb
    11:08 [Info] Loaded plugin NoClone v1.0.0 by Noviets
    11:08 [Info] Loaded plugin Reporting v1.0.5 by Noviets
    11:08 [Info] Loaded plugin Better Chat v1.1.3 by LaserHydra
    11:08 [Info] Loaded plugin HWClans v1.3.1 by SouZa
    11:08 [Info] Loaded plugin Reserved v1.0.0 by Wulf/lukespragg
    11:08 [Info] Loaded plugin LootChests v1.0.7 by Noviets
    11:08 [Info] Loaded plugin AdminTools v1.2.5 by Noviets
    11:08 [Warning] AdminTools has replaced the 'mute' chat command previously registered by BetterChat
    11:08 [Warning] AdminTools has replaced the 'unmute' chat command previously registered by BetterChat
    11:08 [Info] Loaded plugin Welcome Message v2.0.3 by SkinN
    11:08 [Info] Loaded plugin EconomyBanks v1.5.4 by Pho3niX90
    11:08 [Warning] [EconomyBanks] Creating a configuration file for EconomyBanks
    11:08 [Info] [EconomyBanks] EconomyBanks is fully functional
    11:08 [Info] Loaded plugin Teleportation v1.4.1 by LaserHydra
    11:08 [Info] Loaded plugin Ping v1.2.3 by Wulf/lukespragg
    11:08 [Info] Loaded plugin Kits v1.0.4 by Reneb
    11:08 [Info] Loaded plugin Advert Messages v2.0.4 by SkinN
    11:08 [Info] [Advert Messages] Starting advert messages timer, set to 3 minute/s
    11:08 [Info] Loaded plugin AutoClean v1.0.0 by Noviets
    11:08 [Warning] Missing plugin name prefix 'kits.' for permission 'start' (by plugin 'Kits')
    
     
  6. how do you remove categories and items from the shop?????
     
  7. Dynamic pricing doesn't quite work how you'd expect it to. You can buy and sell stuff to manipulate the prices and in less than 5 minutes you'll make millions
     
  8. agreed, it hards to find a balance, also how do you delete stuff from the shop and categories?
     
  9. I amend the HurtStoreStock.json file directly (you'll find it in oxide/data)
     
  10. is there a way dev that you can make it so we can type /removecat or /removeitem from hurtstore??
     
  11. Hi, Yes I could but it is very low priority atm. I need to redev the dynamic pricing and store all together to give server owners more control.

    At this point I am expecting my little girl to arrive on the 30th, so I am not doing any dev at the moment,
    [DOUBLEPOST=1458633072][/DOUBLEPOST]
    Yes this will get reworked. But for the life of me I cannot think of any calculation that will make it more robust. All I can suggest is lowering the selling percentage to something like 80% and a dilutions of a million
    [DOUBLEPOST=1458633127][/DOUBLEPOST]
    This is strange. I will have a look at it once I get time.
     
  12. Congratulations!!!! My little boy arrived 11 weeks ago. Prepare to have your life turned upside down but in a good way :)
    [DOUBLEPOST=1458636422][/DOUBLEPOST]As for the dynamic pricing I think a lot of the problem is that there is an unlimited supply of stock. If you limit the stock in such a way that is defined by what the players sell to the shop then it would go a long way to sorting out that issue.
    Similar to the auction houses in MMO games
     
  13. Any fix for the lists that dont show up, goat parts etc?
     
  14. open the file Hurtworld.cs from the Plugin folder.
    uncomment the line 98 by typing "//" in front of it
    //new StockItem (GetMsg("cat_roachparts"),123,11000D), // Roach Chasis

    after that go into the data folder and delete HurtStockStore.json file

    Now restart your Hurtworld server!
     
    Last edited by a moderator: Apr 1, 2016
  15. Hey gents,

    So I am back, will look into all problems in this week
    [DOUBLEPOST=1460406736][/DOUBLEPOST]
    Thank you :)

    Yes I think I will rather add an option to enable a "Stocked" store
     
  16. Is it possible to make a max buy at the same time? We have some "funny" people who buy 1.000.000 of the same item which make my server crash.
    An idea is maybe buy untill bag is full or max 100 of the same item (with a cool down)
     
  17. Currently I have Hurtstore installed on my server.
    We have some "funny" people who buy 1.000.000 arrows (for example) which makes the server lagging and even crash.

    Is it possible to change this in the store so that you can say in the config what max you can buy at the same time?
    For example max 100 at the same time.

    This will also help the exploit that people can use to get massive amount of money. (when store is set to dynamic)
    I had to set the dynamic off (I liked it but not the exploit) on my server.
     
  18. Got the same problem :(
    [DOUBLEPOST=1461686677,1461659304][/DOUBLEPOST]
    Code:
    [Oxide] 18:02 [Info] HurtStore was compiled successfully in 1543ms
    [Oxide] 18:02 [Info] Loaded plugin HurtStore v1.3.2 by Pho3niX90
    [Oxide] 18:02 [Warning] [HurtStore] Creating a configuration file for HurtStore
    [Oxide] 18:02 [Info] [HurtStore] StoreStock has loaded with 0 items
    [Oxide] 18:02 [Error] Failed to initialize plugin 'HurtStore v1.3.2' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 18:02 [Debug]  at Oxide.Plugins.HurtStore.Init () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.HurtStore.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    [Oxide] 18:02 [Info] [HurtStore] Will now do failsafe check of config file
    [Oxide] 18:02 [Info] [HurtStore] Storestock default 34
    [Oxide] 18:02 [Info] [HurtStore] Storestock0
    [Oxide] 18:02 [Info] [HurtStore] Defaults loaded = 34
    [Oxide] 18:02 [Info] Unloaded plugin HurtStore v1.3.2 by Pho3niX90
    [Oxide] 18:02 [Info] No previous version to rollback plugin: HurtStore
    happends when i install hurtstore (already tried deleting EVERYTHING of hurtstore) pls help
     
    Last edited by a moderator: Jun 3, 2016
  19. Can't find any files by that name.