Commit Graph

86 Commits

Author SHA1 Message Date
JustArchi
7c8d7b5ada Resharper cleanup 2017-04-05 16:59:48 +02:00
JustArchi
c7515f9024 Post-merge Resharper fixes #501 2017-04-05 16:17:34 +02:00
Logerfo
e4da0c05d5 Merge branch 'master' into master 2017-04-05 10:33:13 -03:00
JustArchi
be164ad726 Fix JSON failures with wallet code redeem 2017-04-05 15:03:27 +02:00
Bruno Logerfo
f8b2fcda7a C# 7.0 syntax sugars 2017-03-14 08:20:29 -03:00
JustArchi
f6d0bd9e9c Closes #486
Further tests might be needed
2017-03-05 16:51:14 +01:00
JustArchi
353af0d67b Update SK2 to latest master and rewrite ASF to use newly-introduced EPurchaseResultDetail 2017-02-11 22:24:49 +01:00
JustArchi
c426ddece7 Second fix attempt 2017-01-31 21:03:06 +01:00
JustArchi
4133254f7f Test 2017-01-31 20:57:56 +01:00
JustArchi
281577698b First fix attempt 2017-01-31 20:47:37 +01:00
JustArchi
fc4574d143 Closes #445
Review https://github.com/JustArchi/ArchiSteamFarm/wiki/Logging for examples once I'm done updating the wiki
2017-01-31 01:10:01 +01:00
JustArchi
a3c5e8ab0c Misc 2017-01-28 15:29:38 +01:00
JustArchi
9775f07644 Misc 2017-01-27 21:57:23 +01:00
JustArchi
e338ae4188 DateTime optimizations
DateTime.UtcNow is from at least 30 up to even 117 times faster than DateTime.Now. We have many places in which we compare our date to previous one we set ourselves - in all those places we can (and should) use UtcNow instead of Now.
Local DateTime is still around in some places, those that are user-specific, such as when logging messages.
2017-01-23 00:46:44 +01:00
JustArchi
21be4c5c72 Code cleanup 2017-01-23 00:34:48 +01:00
JustArchi
184029caab Further HeartBeat() enhancements
This is another great idea I thought about - ArchiHandler already receives all packets from Steam Network, so why bother checking if steam client is still alive if we can make use of the time last message arrived, and send request only when needed.
Extra points for performance benefits for accounts receiving lots of packets, so mainly primary ones with lots of friends/groups
2017-01-23 00:33:08 +01:00
JustArchi
ba8d70aebb Copyright update 2017-01-02 20:05:21 +01:00
JustArchi
33edc81116 Add farming time approximation
Because @MaduRUDE asked nicely
2016-12-26 22:07:49 +01:00
JustArchi
30c69cf57c Move main ArchiLogger from ASF to Program
It makes more sense to put it in ASF class due to sharing potential, but I want to unify ArchiBoT logging and this makes it easier for maintenance
2016-12-23 18:49:52 +01:00
JustArchi
7fe65144c1 Code cleanup 2016-12-18 16:03:32 +01:00
JustArchi
e5a39cc0de EXPERIMENTAL: Hopefully fixes #374 2016-12-15 01:56:13 +01:00
JustArchi
9d0cc07d4e Reject clan invites when IsBotAccount
Also make it possible for quite rare situation of ASF accepting invite to SteamMasterClanID if it couldn't join due to group being non-public
2016-12-11 04:23: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
8b3b822938 Rewrite entire ASF logging, as preparation for #354 2016-11-06 12:06:02 +01:00
JustArchi
46825424d8 Sync LogOnWithoutMachineID() with SK2 2016-11-04 07:48:54 +01:00
JustArchi
7580544e27 Fix !redeem of coupons 2016-10-15 02:21:57 +02:00
JustArchi
f7d822be99 Add support for steam wallet keys, #239 2016-10-12 22:56:19 +02:00
JustArchi
4986bee410 Code review 2016-10-01 21:40:11 +02:00
JustArchi
629c40b807 First wave of family sharing bugfixes 2016-09-30 02:41:27 +02:00
JustArchi
d39ed71d89 Add first family sharing bits 2016-09-30 01:15:26 +02:00
JustArchi
b8a0ab9d95 Move redeeming steam gifts from community to client
Glory to reverse-engineering and Madu for testing!
2016-09-25 01:23:31 +02:00
JustArchi
f8409e1be6 Misc 2016-08-19 17:49:56 +02:00
JustArchi
647a0ee865 Revert "Prepare for custom HeartBeat handling"
This reverts commit b9f2dd1292.
2016-08-08 18:47:23 +02:00
JustArchi
b9f2dd1292 Prepare for custom HeartBeat handling 2016-08-08 18:23:15 +02:00
JustArchi
d85d41c215 General improvements 2016-08-01 18:17:51 +02:00
JustArchi
de013850bc Add CustomGamePlayedWhileFarming
Also make it possible for CustomGamePlayedWhileIdle and GamesPlayedWhileIdle to coexist
2016-07-12 04:40:56 +02:00
JustArchi
51abdfb899 Bring back HackedLogOn()
It's still needed...
2016-07-12 03:56:35 +02:00
JustArchi
77413f13e2 Kill HackIgnoreMachineID with fire 2016-07-08 07:16:42 +02:00
JustArchi
1ca31ee33e Upgrade old SK2 conversions 2016-07-08 07:11:37 +02:00
JustArchi
1a6c5a3cff Fix trades with non-steam items 2016-06-10 01:16:05 +02:00
JustArchi
378a87bc86 Fix broken tabs 2016-06-10 00:49:44 +02:00
JustArchi
27635d260b Code review + some extra debug 2016-06-10 00:47:38 +02:00
JustArchi
52f3a86255 EXPERIMENTAL: Closes #238
Needs further tests
2016-06-08 23:26:37 +02:00
JustArchi
cdcaa9b06c Code review 2016-05-30 01:57:06 +02:00
JustArchi
9403985b14 LoggedInElsewhere improvements
Previously we had rather half-blind mechanism of trying to play given games, expecting a disconnect, and reconnecting in AccountPlayingDelay minutes. Now instead we have proper event-based handling - ASF listens on each PlayingSessionState event and updates availability of farming accordingly, not only resuming farming immediately after it's possible, but also limiting number of reconnects and other issues which could be caused by previous approach.

I bet this can be even further improved to not receive LoggedInElsewhere and disconnect error when user starts playing a game, but that's misc compared to gigantic improvement in this commit
2016-05-30 00:09:42 +02:00
JustArchi
4c64141462 Misc 2016-05-13 19:40:55 +02:00
JustArchi
4b50596709 Enhance concurrent access with ArchiBoT concurrent hashset 2016-05-13 19:39:54 +02:00
JustArchi
b8faca2517 Gigantic code review (with ReSharper) 2016-05-13 06:32:42 +02:00
JustArchi
36e99d9139 Code review 2016-05-03 07:26:41 +02:00