Commit graph

99 commits

Author SHA1 Message Date
JustArchi
2a1d5d1e60 Correct R# modifiers orders 2018-07-10 15:05:06 +02:00
JustArchi
06aad0c7d1 Misc 2018-07-10 14:54:01 +02:00
JustArchi
aaff52a40e Misc 2018-07-10 14:53:04 +02:00
JustArchi
dfb90624e8 R# Code cleanup 2018-06-16 07:47:07 +02:00
JustArchi
152ba0bdf2 Code review 2018-06-04 16:54:22 +02:00
JustArchi
87fb401928 Packages update 2018-03-29 01:52:39 +02:00
JustArchi
423200fd38 Add /Api/WWW/Directory 2018-03-15 01:55:24 +01:00
JustArchi
3682eefc02 Code review 2018-03-09 15:43:25 +01:00
JustArchi
1deb5e0d0a Add /Api/ASF, #732 2018-01-28 01:52:07 +01:00
JustArchi
6bbff6ab4e Happy new year 2018-01-01 02:56:53 +01:00
JustArchi
83821e9994 Make usage of login keys optional 2017-11-28 21:31:45 +01:00
JustArchi
d5f44f8f6c ReSharper: update header 2017-11-18 17:27:06 +01:00
JustArchi
2d767c41aa Fix latest Steam notifications fuckup
Initially the issue was observed in #697, but that itself wasn't exactly what was fixed here, as multiple evaluation of the same trade is still wanted scenario.

The real issue was reported in http://steamcommunity.com/groups/ascfarm/discussions/1/2425614539578192287/

In a huge TL;DR, Steam is now sending trades notification each time something fetches current trade offers, be it ASF, the user, or some other script.

This will lead to possible ASF trade loop, as we'll get wanted notification about new trades, fetch them, leave some trades untouched, get new notification about trades and so on.

Initially I wanted to fix this in dirty way by just ignoring any extra notifications that happened since API call until 5 extra seconds after we were done with entire parsing, but I found much better solution - Steam actually includes extra info about amount of trades/items in notification (makes sense, since Steam client displays that info too). We can make use of that info and simply ignore any extra notification that results in same or smaller count.

Thanks to that we didn't only add a decent workaround for this recent Steam fuckup, but we also improved internal ASF code that will no longer schedule extra parsing if we accepted/rejected only some of the trades, making me happy with the actual solution.
2017-11-18 17:20:24 +01:00
JustArchi
070e91a6f9 Misc improvement 2017-11-17 17:50:14 +01:00
JustArchi
054949419f Misc ReSharper 2017-11-12 21:21:42 +01:00
JustArchi
336a965903 ReSharper update 2017-11-11 19:12:26 +01:00
JustArchi
6929bf09f3 Add extra helper links 2017-09-28 05:07:23 +02:00
JustArchi
5b2b00a9f0 Add MatchableTypes
As well as unit testing so I'm sure that part is not screwed up.
2017-07-10 08:20:15 +02:00
JustArchi
88a7d2e7e9 Code cleanup 2017-07-09 09:09:46 +02:00
JustArchi
501c834d1d Kill last misleading ReSharper code issues 2017-07-05 04:55:17 +02:00
JustArchi
96a69f2157 Fix deadlock in FarmMultiple()
Our Forget() tasks are in fact getting forgotten when given async method stumbles upon await call.

We were executing async Farm() via Forget(), but it was entirely possible that we won't get opportunity to await anything if we follow FarmHours() path, making FarmingSemaphore signaled until we're done farming hours.
2017-07-03 18:54:57 +02:00
JustArchi
b482c35548 Misc 2017-07-03 12:17:42 +02:00
JustArchi
9aa36f1a03 Code style update/fixes 2017-07-03 12:14:23 +02:00
JustArchi
a42ec697b0 Implement basic HttpListener IPC as WCF alternative 2017-06-26 08:42:00 +02:00
JustArchi
c787beb655 Add hacked optimization mode 2017-06-26 05:02:40 +02:00
JustArchi
4e1a03222b Fix potential STM logic exploit
Previously we calculated amounts (and therefore, differences) based on cards only, which means that user could earn some extra 'points' in our calculation for giving us many trash cards that we miss, and in exchange for that swap cards from some other game that would normally results in non-neutral difference on that game basis, but neutral+ in overall basis (that we operated on).
This would not cause any serious problem, because ASF ensures that trade is fair before calculating actual neutrality, but it could result in accepting a trade that is neutral+ only at first sight, and non-neutral+ when we take a closer look what we're actually swapping.
The logic was enhanced to handle differences on per-game basis now, and taking minimum in account, so all swaps on per-game basis have to be neutral+ now
2017-04-08 04:33:01 +02:00
JustArchi
adfc992f26 Resharper Cleanup v2 2017-04-05 17:23:18 +02:00
JustArchi
fcf9686a79 Revert "Resharper cleanup"
This reverts commit 7c8d7b5ada.

Bad cleanup.
2017-04-05 17:01:18 +02:00
JustArchi
7c8d7b5ada Resharper cleanup 2017-04-05 16:59:48 +02:00
JustArchi
fbadc748c1 ReSharper code style update 2017-03-01 23:03:13 +01:00
JustArchi
a502826586 Update Resharper code style 2017-03-01 22:21:53 +01:00
JustArchi
24350dcba5 Closes #448
Everything works on Windows, pending tests on Mono
2017-02-03 09:54:09 +01:00
JustArchi
3e2679a57d Ignore missing translations for resharper 2017-01-08 06:18:46 +01:00
JustArchi
b2b11fe807 Localizing... 2017-01-06 13:20:36 +01:00
JustArchi
b7f15daa91 Misc 2016-11-24 07:49:44 +01:00
JustArchi
137a53ef89 Improve readability of some specific segments 2016-11-24 07:46:37 +01:00
JustArchi
df218074ad Gigantic code cleanup
Time to enforce some common file layout, as general mess started to annoying me. Sorry in advance for people using custom forks and having merge conflicts, this will help everybody in long-run
2016-11-24 07:32:16 +01:00
JustArchi
102caac4f0 Silent some more intrusive ReSharper inspections 2016-10-05 07:31:27 +02:00
JustArchi
2aec630b71 Final code review for today 2016-10-01 01:02:16 +02:00
JustArchi
d9e241a1b4 Code review 2016-10-01 00:25:15 +02:00
JustArchi
4a0866f93f Add family sharing inactivity timer 2016-09-30 04:02:25 +02:00
JustArchi
72b0ae21df EXPERIMENTAL: Make GetConfirmations() recursive 2016-09-29 21:04:34 +02:00
JustArchi
d517562467 Add more farming orders 2016-07-30 20:55:43 +02:00
stackia
5596e55c7b
Update ReSharper DotSettings file
This purges all green squiggly underlines on my machine.
2016-07-30 06:39:46 +08:00
JustArchi
feb3fbfe59 Get used to null propagation 2016-07-10 20:17:35 +02:00
JustArchi
1fe5cfff49 Fix broken Mono after #268 2016-06-28 10:36:28 +02:00
JustArchi
8d9fbce2ed Add support for encrypted passwords, closes #267 2016-06-28 04:32:48 +02:00
JustArchi
2ebce59ee7 WIP: Gigantic work on #252
TODO: Market confirmations, cleanup, code review, shitload of tests...
2016-06-19 05:40:46 +02:00
JustArchi
aae41d5c1f Add IsBotAccount + misc 2016-06-04 22:02:38 +02:00