Commit graph

6174 commits

Author SHA1 Message Date
JustArchi
4b226b8569 Include GUID in user-agent 2018-12-08 17:51:32 +01:00
JustArchi
9bfd26a3d8 Remove debug, misc 2018-12-08 01:45:13 +01:00
JustArchi
1a6b8792e5 Bump default WebLimiterDelay 2018-12-07 22:22:26 +01:00
JustArchi
c684582ce1 Packages update 2018-12-07 22:14:39 +01:00
Łukasz Domeradzki
1d78060015
.NET Core 2.2 (#958)
* Initial bump

* Fix travis
2018-12-07 22:04:09 +01:00
JustArchi
6a909aa1b2 R# cleanup 2018-12-06 16:23:47 +01:00
Vital7
46e01eea0c Fix wallet code redeeming (#957)
* Fix wallet code redeeming

* Fix creating wallet

* More fixes

* More fixes

* Renaming variables

* More renaming thanks to valve

* Returning actual EPRD value instead of assumed

* Additional wallet check

* Steam gives Success code even on bad key
weird response but ok

* fix fucked up logic

* Fix steam fuckup by giving user a real response, not that one which is in steam imagination

* Remove amount property

* Fix logic fuckup + add some comments

* Update BGR logic for handling wallet keys

* Fix build
2018-12-06 16:06:44 +01:00
JustArchi
ca59b992d7 Update cc.sh 2018-12-05 23:23:59 +01:00
JustArchi
a67139a5c2 Update cc.sh 2018-12-05 23:17:09 +01:00
JustArchi
e61212a00f Rewrite active matching code for more fairness and robustness 2018-12-05 23:13:55 +01:00
JustArchi
dd1f567d80 Misc 2018-12-05 22:16:38 +01:00
JustArchi
f0a6907603 Make MatchActively more fair
This will also help with users not having anything interesting to offer
2018-12-05 19:13:46 +01:00
Łukasz Domeradzki
428933af91
Update CONTRIBUTING.md 2018-12-05 01:20:58 +01:00
JustArchi
466f4dd754 Bump 2018-12-04 02:41:37 +01:00
JustArchi
cf36e7b233 Translations update 2018-12-04 02:35:34 +01:00
JustArchi
6313144626 Packages update 2018-12-04 02:14:27 +01:00
JustArchi
bb6276835f Code review, bugfixing, remove loot& command 2018-12-04 02:05:09 +01:00
JustArchi
577c2436d0 Misc 2018-12-03 05:21:12 +01:00
JustArchi
2aaa40436c Bump 2018-12-03 02:47:24 +01:00
JustArchi
6e84424db4 Further memory optimizations
Now we'll never parse more than we absolutely need, also during neutrality check
2018-12-03 02:43:24 +01:00
JustArchi
b13ef29588 Bump 2018-12-03 01:30:36 +01:00
JustArchi
555a74e2b6 Optimize memory usage 2018-12-03 01:24:33 +01:00
JustArchi
4582c40dbe Update timers 2018-12-03 00:59:01 +01:00
JustArchi
ec26a30ddf Misc 2018-12-03 00:45:09 +01:00
JustArchi
84243a1bce Bump 2018-12-02 22:53:06 +01:00
JustArchi
2b8a969fd4 Translations update 2018-12-02 22:29:26 +01:00
JustArchi
a385aa9ce5 When matching actively, take into account number of trades and items in each 2018-12-02 19:04:53 +01:00
JustArchi
3c7c3ccc58 Misc 2018-12-02 06:28:03 +01:00
JustArchi
def23e5ba9 Remove excessive debug from new feature
As it's not needed anymore
2018-12-02 06:24:36 +01:00
JustArchi
a64ce524aa Closes #954 2018-12-02 00:56:08 +01:00
JustArchi
a9691d04e7 Skip login keys also when user provides details himself 2018-12-01 01:53:21 +01:00
JustArchi
d5618452fc Avoid supplying login keys in full-details scenario
Apparently Steam network is too stupid to find out that despite of our invalid login key, we also include password and 2FA token, which are valid. Therefore in order to save potential login failure due to invalid login key, let's not use it at all if it's not needed.

We still save it as we might need to use it in the future.
2018-12-01 01:46:08 +01:00
JustArchi
ff2c0b3b79 Add semaphore to active matching
Very unlikely to be hit, but still
2018-11-29 21:05:40 +01:00
JustArchi
00f1ddfae3 Bump 2018-11-29 20:09:48 +01:00
JustArchi
0e07b0e327 Translations update 2018-11-29 20:07:58 +01:00
JustArchi
c9908add44 Implement better no-more-dupes logic 2018-11-29 19:21:41 +01:00
JustArchi
e1305f1855 Double the limits 2018-11-29 18:56:28 +01:00
JustArchi
0767f256e8 Fix build 2018-11-29 18:47:53 +01:00
JustArchi
1beb08f823 Implement ETradingPreferences.MatchActively
This will probably need a lot more tests, tweaking and bugfixing, but basic logic is:

- MatchActively added to TradingPreferences with value of 16
- User must also use SteamTradeMatcher, can't use MatchEverything
- User must have statistics enabled and be eligible for being listed (no requirement of having 100 items minimum)

Once all requirements are passed, statistics module will communicate with the listing and fetch match everything bots:
- The matching will start in 1h since ASF start and will repeat every day (right now it starts in 1 minute to aid debugging).
- Each matching is composed of up to 10 rounds maximum.
- In each round ASF will fetch our inventory and inventory of listed bots in order to find MatchableTypes items to be matched. If match is found, offer is being sent and confirmed automatically.
- Each set (composition of item type + appID it's from) can be matched in a single round only once, this is to minimize "items no longer available" as much as possible and also avoid a need to wait for each bot to react before sending all trades.
- Round ends when we try to match a total of 20 bots, or we hit no items to match in consecutive 10 tries with 10 different bots.
- If last round resulted in at least a single trade being sent, next round starts within 5 minutes since last one, otherwise matching ends and repeats the next day.

We'll see how it works in practice, expect a lot of follow-up commits, unless I won't have anything to fix or improve.
2018-11-29 18:35:58 +01:00
JustArchi
06607fc0a3 Misc 2018-11-28 23:44:41 +01:00
JustArchi
b34039e10c Allow omitting the name in BGR import
Naming logic also applies to ASF API, but it's userspace in charge of making use of it.
2018-11-28 23:36:56 +01:00
JustArchi
c4e6d34b85 Misc 2018-11-28 04:18:44 +01:00
JustArchi
f0c15a0eec Bump 2018-11-28 04:13:56 +01:00
JustArchi
ae6e868b2b Translations update 2018-11-28 03:33:39 +01:00
JustArchi
328e34d313 Packages update + OpenAPI 3.0 2018-11-28 03:13:38 +01:00
JustArchi
88cea5d6f4 Misc WebBrowser improvements
Just when you thought that you've seen everything, wait for 200 OK with JSON cut in half.
2018-11-28 02:30:50 +01:00
JustArchi
049d9facba Dockerfiles: misc 2018-11-24 15:12:36 +01:00
JustArchi
321fc2f525 Dockerfiles: misc 2018-11-24 14:54:17 +01:00
JustArchi
f7f492d833 CIs: misc 2018-11-24 14:45:25 +01:00
JustArchi
fae9ad5ca8 Packages update 2018-11-24 03:24:27 +01:00