Commit graph

113 commits

Author SHA1 Message Date
JustArchi
b677ba8202 Code/style cleanup 2019-02-16 17:34:17 +01:00
JustArchi
e0ede90525 Closes #1036 2019-01-15 12:23:20 +01:00
JustArchi
18d5f1938f Open configs for public API 2019-01-14 21:50:23 +01:00
JustArchi
e1e9a9f457 Rider cleanup 2019-01-14 19:11:17 +01:00
JustArchi
cf63065681 Implement redirection RFC in WebBrowser 2019-01-06 19:20:24 +01:00
JustArchi
f8aa8babcf R# cleanup 2018-12-15 00:27:15 +01:00
JustArchi
3b607b1294 Misc 2018-10-17 20:28:17 +02:00
JustArchi
f4a96c681e R# cleanup 2018-10-17 20:22:55 +02:00
JustArchi
7ab19aa806 Refactor ASF commands for future actions
Closes #891
2018-09-15 22:34:32 +02:00
JustArchi
9534d2b9f0 R# cleanup 2018-09-08 00:46:40 +02:00
Łukasz Domeradzki
e18c8ffa55
Rewrite IPC from HttpListener to KestrelHttpServer (#898)
* Debug tests

* Update

* Add support for IPCPassword

* Misc

* Misc

* Update

* Misc

* Cut dependencies to bare minimum

* Update

* Update

* Update

* Update

* Add support for websockets

* Cleanup and preparation for merge

* Add missing mapping of / -> index.html

* Add support for custom path + misc

* Misc

* Declare latest compatibility version

* Fix harmless error on /Api/Log websocket disconnect
2018-09-08 00:05:23 +02:00
Vital7
ca9a3458fb Autoaccepting wallet gift cards (#885)
* Add accepting of wallet gift cards

* Split function by two, move bot-related parts to Bot.cs, better xpath

* Remove unneccessary warning

* Forgot to remove beginning chars

* Request data to separate variable, session request in GetDigital..., variable renaming

* Modify XPath a bit to make it more understandable

* Move substring call further, length checking

* Implement semaphore and queue

* Fix typo

* SessionID comment, entries are in alphabetical order

* Add a few spaces to xpath

* Logging: warning -> error

* Dispose GiftCardsSemaphore

* General formatting fixes

* Final formatting fixes, HandledGifts check

* AcceptGifts config value handling

* Handling 0 in function argument
2018-08-20 03:33:09 +02:00
JustArchi
16d002f99b Misc code cleanup 2018-07-27 04:52:14 +02:00
JustArchi
7c789c62f4 Disable EditorConfig for R# until it gets better support with it 2018-07-11 16:59:40 +02:00
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