Commit Graph

378 Commits

Author SHA1 Message Date
JustArchi
134aa62952 Seems to work properly 2016-08-15 22:00:32 +02:00
JustArchi
5a4132a679 More tests 2016-08-15 21:57:45 +02:00
JustArchi
7d32adac13 Perform loot also on new items received, if we're not farming 2016-08-15 21:35:19 +02:00
JustArchi
02a547e7d2 Misc 2016-08-13 15:58:00 +02:00
JustArchi
9594357d56 Misc code analysis fixes 2016-08-13 04:39:17 +02:00
JustArchi
1ec0b20604 Misc 2016-08-13 04:19:20 +02:00
JustArchi
26bd76cc4a Make debugging easier for me
Modification of ASF.json is troublesome when I work with GitHub tree, therefore make it possible for me to execute and test commands but only in debugging builds - public ASF releases are always compiled in release mode.
2016-08-13 04:12:39 +02:00
JustArchi
8e1d02f43f Implement !ownsall, closes #330 2016-08-13 04:04:47 +02:00
JustArchi
d09be453f3 Misc 2016-08-09 04:05:01 +02:00
JustArchi
5f1342ae26 Add extra check after waiting in OnDisconnected()
If for some reason this callback gets executed twice, we don't want to issue second connect request in any case
2016-08-09 04:04:22 +02:00
JustArchi
00b4c28843 Respect LimitLoginRequestsAsync() in HeartBeat() 2016-08-09 03:46:45 +02:00
JustArchi
cb6cfd08c2 Improve load-balancing 2016-08-08 20:10:04 +02:00
JustArchi
f53911bd9a Misc 2016-08-08 20:07:40 +02:00
JustArchi
527641439b Implement enhanced HeartBeat
The objective of this feature is to detect network malfunctions as well as SK2 connection issues early and initiate a reconnect as soon as possible, instead of relying on failures in SK2 code.
This is because those failures are very usually coming too late, when connection was already lost for a dozen or more minutes behind, and it also increases likehood of getting weird SK2 freezes like the one in #318.
Therefore, let's see how it works, it's possible that I'll revert it later when SK2 code improves or we find a better way to do that. The introduced overhead both CPU-wise and bandwidth-wise is negligible.
2016-08-08 20:06:20 +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
e8889fb087 Add one more status case 2016-08-04 15:11:23 +02:00
JustArchi
4481fb3a86 Work work 2016-08-02 22:51:09 +02:00
JustArchi
6bd161359f Work on GUI
There is still a long way till it's done...
2016-08-02 12:13:15 +02:00
JustArchi
7025659151 Refactoring for upcoming GUI app 2016-08-02 06:04:44 +02:00
JustArchi
2c10ebe8b3 Never attempt to loot non-connected bot instance 2016-08-02 05:06:52 +02:00
JustArchi
e2dca65165 Misc 2016-08-02 02:17:06 +02:00
JustArchi
beef5ec8ed Order also !statusall 2016-08-01 22:25:21 +02:00
JustArchi
14fc01d4ef Improve !status 2016-08-01 20:27:26 +02:00
JustArchi
7bd8b8f965 Fix !status 2016-08-01 20:01:20 +02:00
JustArchi
d25d4dcba6 Always prefer alphabetical order when redeeming keys, #319 2016-08-01 18:47:44 +02:00
JustArchi
d85d41c215 General improvements 2016-08-01 18:17:51 +02:00
JustArchi
66e01113bb Misc 2016-07-31 18:05:21 +02:00
JustArchi
646e52c28b Never attempt to start farming prior to ArchiWebHandler initialization 2016-07-31 18:03:06 +02:00
JustArchi
860b76f720 Correct statuses 2016-07-31 17:49:02 +02:00
JustArchi
82cbcecb6b Misc 2016-07-31 17:38:14 +02:00
JustArchi
fda3b1ac31 Misc 2016-07-31 15:39:46 +02:00
JustArchi
58453e72ac Misc 2016-07-31 01:25:18 +02:00
JustArchi
d8aad682d5 DeviceID hardening 2016-07-31 01:22:58 +02:00
JustArchi
53dcd22cea Restart farming also when user registers key outside of ASF
This is now possible thanks to license callback
2016-07-30 18:28:28 +02:00
stackia
3e1358b363 Add number of cards drop remaining in "!status" response 2016-07-30 11:52:21 +08:00
JustArchi
e41d2cf37e Report on confirmation issues 2016-07-29 01:02:58 +02:00
JustArchi
b44115711b Don't stop keys forwarding if initial bot gets OnCooldown
In this case, move to the next one, try to redeem, and get the package data from it instead
2016-07-28 21:40:40 +02:00
JustArchi
a90573e0ea Implement smart algorithm of avoiding OnCooldown
I really like this approach, as it has only one caveat: memory usage.
We need to keep in memory list of all packages that our account owns, which will result of N * 32bit extra memory usage, where N is equal to number of package licenses the account owns. This results in around 16 KB extra memory usage for my 4k account.
However, apart from that there are no real caveats as checking if we own given packageID is O(1) operation, and I think that apart from this extra memory footprint there can be more benefits of having this field in future, besides, my 16 KB is extreme case, as usually nobody goes that high. Ship it!
2016-07-28 21:20:57 +02:00
JustArchi
4f01dc39fc Code review 2016-07-25 06:08:45 +02:00
JustArchi
afbfb62bed Always expect english responses, closes #301
Also some misc fixes while I'm at it
2016-07-19 20:14:21 +02:00
JustArchi
325529262a Revert "Modify default logic of handling keys"
This reverts commit 84271488e6.

http://steamcommunity.com/groups/ascfarm/discussions/1/352788552264319199
2016-07-19 05:05:23 +02:00
JustArchi
8cbda098de Always reset one-time-only access token after logging in
And not only if it succeeds
2016-07-19 05:01:52 +02:00
JustArchi
84271488e6 Modify default logic of handling keys
I'm not yet sure if I want to keep it, but for now the logic is changed to start distributing/forwarding key from the bot that got it, and not from start of the collection
2016-07-17 04:19:56 +02:00
JustArchi
1227709bc2 Fix CD-key regex to be ignore-case
Also modify regex a bit to not catch keys like AAAAA-AAAAA-AAAAA- and the ones that are too long
2016-07-16 00:18:36 +02:00
JustArchi
2c2dccec2a EXPERIMENTAL: Move 2FA to multi-confirmations, closes #295
Some further tests would be cool to do
2016-07-15 16:13:36 +02:00
JustArchi
b2a4cf5e34 And slightly tweak delays 2016-07-13 20:02:50 +02:00
JustArchi
cec4fd7c54 Slightly improve load-balancing logic
So all timers won't go up all at the same time
2016-07-13 20:00:18 +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