- 27 Mar, 2019 1 commit
-
-
Adam Leyshon authored
Added Sentry SDK.
-
- 05 Mar, 2019 2 commits
-
-
Adam Leyshon authored
-
Adam Leyshon authored
-
- 04 Mar, 2019 2 commits
-
-
Adam Leyshon authored
-
Adam Leyshon authored
-
- 03 Mar, 2019 2 commits
-
-
Adam Leyshon authored
Make separate data files for each market instead.
-
Adam Leyshon authored
Thing name index was completely reprogrammed to be similar to how colony indices are created. ThingDefs are now also added to the index. Updated PriceHistory refs to BMVVotes due to changes in GWPCC. Always add english as a known language.
-
- 02 Mar, 2019 2 commits
-
-
Adam Leyshon authored
-
Adam Leyshon authored
-
- 01 Mar, 2019 3 commits
-
-
Adam Leyshon authored
-
Adam Leyshon authored
Sales now also reduce the Sell price by same amount to make sure it cannot be exploited. Sales now also exclude things that are not in stock. Sales no longer calculate stupid values.
-
Adam Leyshon authored
This fixes that issue which would allow people to exploit buying at a lower price and selling back at a higher one. Sales now emit an event message. Added market property to database class.
-
- 26 Feb, 2019 1 commit
-
-
Adam Leyshon authored
-
- 25 Feb, 2019 1 commit
-
-
Adam Leyshon authored
Moved library code to GWPCC. Fixed stupid bug that caused the colony index to be rebuilt exponentially many more times as there are databases. This also caused all other databases except the last to never exit maintenance mode.
-
- 21 Feb, 2019 3 commits
-
-
Adam Leyshon authored
-
Adam Leyshon authored
Added maximum price caps depending on the price break an item is in. Unit calculations changed to be more sensible. Reduce buy price if < 10% stock was traded. Increase sell price if < 50% of an item in stock. Maximum sell price hard capped at 150% of BMV. We now always update the price regardless of quantities traded or stock limits, previously the items price would never change if not traded. Price points are looked up only once now instead of per item. If an items price is outside known, we default to the highest point. Added CSV exports daily for price data.
-
Adam Leyshon authored
-
- 16 Feb, 2019 1 commit
-
-
Adam Leyshon authored
Stock will automatically be reduced for things that are over StockMax By an amount between 5 and 25% of the quantity in stock. Updated constants file with new Locale, Ban and index keys. Updated helper file with some new date/time funcs. Reduced StockMax of Items >=0 <5 to 100,000 from 200,000. Added some useful scripts that are hacked together for querying the DB or fixing shit. GB exits after a single pass if Force Run.
-
- 20 Sep, 2018 1 commit
-
-
Adam Leyshon authored
-
- 18 Sep, 2018 4 commits
-
-
Adam Leyshon authored
-
Adam Leyshon authored
Trying to call properties like methods ('float' object is not callable)
-
Adam Leyshon authored
Use ordered dicts for keys() if you need them in the right order. See merge request glitterworld-prime-ssc/GlitterBot!5
-
Adam Leyshon authored
Bug fix for null trade values if it's only been sold and not bought and vice versa. (cherry picked from commit 88538b43)
-
- 17 Sep, 2018 4 commits
-
-
Adam Leyshon authored
Don't force run on start See merge request glitterworld-prime-ssc/GlitterBot!4
-
Adam Leyshon authored
(cherry picked from commit f1d3745d)
-
Adam Leyshon authored
Re-write GlitterBot See merge request glitterworld-prime-ssc/GlitterBot!2
-
Adam Leyshon authored
-
- 11 May, 2018 3 commits
-
-
Adam Leyshon authored
Major update for Thing Pricing See merge request glitterworld-prime-ssc/GlitterBot!1
-
Adam Leyshon authored
-
Adam Leyshon authored
Added code to update schema and populate defaults for missing keys. Log will now output in current folder if Windows or /var/log/glitterbot if Linux. Small fix where Thing would have sale price changed even though they were not over max stock. Removed wellknownthings.py since this is now handled via DB.
-
- 01 May, 2018 1 commit
-
-
Adam Leyshon authored
First we calculate how many units over the Max Stock threshold we have Then reduce the price by that percentage. So if we've got 35% more items in stock than we should have we reduce the price by 35%. We now skip updating the prices if we can't find a price profile for that thing. The initial colony sell price is 75% of the base market value. We now make sure that we have an amount of items in stock between StockMin and half of the difference between StockMax and StockMin. So if StockMin is 100 and Max is 150 we put between 100 and 125 items in stock.
-
- 28 Apr, 2018 1 commit
-
-
Adam Leyshon authored
Added _KEY_GLITTERBOT_IGNORE_THINGS for things that will never be touched by GlitterBot Added _KEY_GLITTERBOT_SPRM which dictate the Sell Price Reduction multiplier, usually at 75% of Market Value. Completely reworked the creation of ThingWithMarketData objects, objects are now created in bulk and make better use of pipelining in __mass_get_things_market_data It is now possible to tell which attributes have changed on a ThingWithMarketData object by comparing the attribute with the value in the OriginalData dictionary of the ThingWithMarketData object. e.g. if thingWithData.OriginalData.get('BuyPrice') != thingWithData.BuyPrice
-
- 11 Apr, 2018 1 commit
-
-
Adam Leyshon authored
-
- 13 Dec, 2017 5 commits
-
-
Adam Leyshon authored
If less than zero in stock, set to zero before adding more.
-
Adam Leyshon authored
-
Adam Leyshon authored
Log files are rotated every hour and 48 hours worth of files are kept.
-
Adam Leyshon authored
-
Adam Leyshon authored
Added some logging to stdout and global exception handler.
-
- 08 Dec, 2017 2 commits
-
-
Adam Leyshon authored
Made further adjustments to price increase/decrease algorithm. Sale units are now calculated based on the price band the item is in. Price increase multiplier to sales is now capped at 10 units per day.