使用ArchiSteamFarm在树莓派挂卡

概述

挂卡,我也是今天知道这个词语,意思就是steam中某些游戏有集换式卡牌,集齐能合成徽章有经验,玩游戏到一定时间可以获得总数一半数量的卡,挂卡就是挂游戏时间获得这一部分的卡。然后这些卡片是可以用来卖的,也就是可以换钱,反正树莓派开着也是开着,为什么不让它做点有意义的事情,所以,你懂的
我们用的挂卡软件是ArchiSteamFarm

安装

首先安装挂卡软件
先新建一个文件夹
mkdir ArchiSteamFarm
cd ArchiSteamFarm
之后把软件下载过来
因为是树莓派所以就下载arm版本的
wget https://github.com/JustArchi/ArchiSteamFarm/releases/download/3.0.3.1/ASF-linux-arm.zip
为什么下载这个版本,因为我下载最新版本会有报错,但是这个版本不会报错
当然我建议是用代理下载,不然很慢真的很慢,贼鸡巴慢,网速是和百度一样垃圾
解压
unzip ASF-linux-arm.zip
安装相关依赖
sudo apt install libunwind8-dev
可能你还要安装其他依赖,反正我的raspbian系统就安装了一个依赖
你可以看运行下面这个命令来看看你缺少什么依赖
chmod +x ArchiSteamFarm
./ArchiSteamFarm
我就缺少一个,如果你缺少其他的你可以看下面这个命令来 选择安装
sudo apt-get install libunwind8 libunwind8-dev gettext libicu-dev liblttng-ust-dev libcurl4-openssl-dev libssl-dev uuid-dev unzip
运行正常吧是下面这个状态

1
2
3
4
5
6
7
8
9
10
11
12
13
➜  ArchiSteamFarm ./ArchiSteamFarm               
2017-10-10 19:31:09|ArchiSteamFarm-24067|INFO|ASF|InitASF() ASF V3.0.3.5 (e32ea1ea-e695-4b84-ad80-a22100c12256)
2017-10-10 19:31:16|ArchiSteamFarm-24067|INFO|ASF|InitGlobalDatabaseAndServices() It looks like it's your first launch of the program, welcome!
2017-10-10 19:31:16|ArchiSteamFarm-24067|WARN|ASF|InitGlobalDatabaseAndServices() Please review our privacy policy section on the wiki if you're concerned about what ASF is in fact doing!
2017-10-10 19:31:28|ArchiSteamFarm-24067|DEBUG|ASF|OnLogMessageReceived() WebServer | Web server prefix 'http://127.0.0.1:1242/' added.
2017-10-10 19:31:28|ArchiSteamFarm-24067|DEBUG|ASF|OnLogMessageReceived() WebServer | Finished Loading Web Server.
2017-10-10 19:31:30|ArchiSteamFarm-24067|INFO|ASF|CheckAndUpdateProgram() ASF will automatically check for new versions every 1 day.
2017-10-10 19:31:30|ArchiSteamFarm-24067|INFO|ASF|CheckAndUpdateProgram() Checking for new version...
2017-10-10 19:31:33|ArchiSteamFarm-24067|INFO|ASF|CheckAndUpdateProgram() Local version: 3.0.3.5 | Remote version: 3.0.3.0
2017-10-10 19:31:33|ArchiSteamFarm-24067|WARN|ASF|CheckAndUpdateProgram() You're using a version that is newer than latest released version for your update channel. Please note that pre-release versions are dedicated to users who know how to report bugs, deal with issues and give feedback - no technical support will be given.
2017-10-10 19:31:48|ArchiSteamFarm-24067|INFO|ASF|InitializeSteamConfiguration() Initializing SteamDirectory...
2017-10-10 19:31:49|ArchiSteamFarm-24067|INFO|ASF|InitializeSteamConfiguration() Success!
2017-10-10 19:31:49|ArchiSteamFarm-24067|WARN|ASF|InitBots() No bots are defined. Did you forget to configure your ASF?

配置 ArchiSteamFarm

官方提供了一个页面来可视化配置,打开
https://justarchi.github.io/ArchiSteamFarm/#/bot
注意是点击BOT这个选项卡,版本选择
然后Name随便输入,之后输入账号和密码,bot account 不打钩和enable选择打钩,版本是latest接着直接点击download下载就好了
就像下面这样

之后把这个json文件上传到你新建的文件夹的config目录中
scp Bboysoul.json root@192.168.1.100:/root/ArchiSteamFarm/config
接着新建一个会话
screen -S steam
重新运行
./ArchiSteamFarm
会提示你输入验证码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
�  ArchiSteamFarm ./ArchiSteamFarm
2017-10-10 20:00:38|ArchiSteamFarm-25013|INFO|ASF|InitASF() ASF V3.0.3.5 (e32ea1ea-e695-4b84-ad80-a22100c12256)
2017-10-10 20:00:45|ArchiSteamFarm-25013|INFO|ASF|InitGlobalDatabaseAndServices() It looks like it's your first launch of the program, welcome!
2017-10-10 20:00:45|ArchiSteamFarm-25013|WARN|ASF|InitGlobalDatabaseAndServices() Please review our privacy policy section on the wiki if you're concerned about what ASF is in fact doing!
2017-10-10 20:00:57|ArchiSteamFarm-25013|DEBUG|ASF|OnLogMessageReceived() WebServer | Web server prefix 'http://127.0.0.1:1242/' added.
2017-10-10 20:00:57|ArchiSteamFarm-25013|DEBUG|ASF|OnLogMessageReceived() WebServer | Finished Loading Web Server.
2017-10-10 20:00:58|ArchiSteamFarm-25013|INFO|ASF|CheckAndUpdateProgram() ASF will automatically check for new versions every 1 day.
2017-10-10 20:00:58|ArchiSteamFarm-25013|INFO|ASF|CheckAndUpdateProgram() Checking for new version...
2017-10-10 20:01:01|ArchiSteamFarm-25013|INFO|ASF|CheckAndUpdateProgram() Local version: 3.0.3.5 | Remote version: 3.0.3.0
2017-10-10 20:01:01|ArchiSteamFarm-25013|WARN|ASF|CheckAndUpdateProgram() You're using a version that is newer than latest released version for your update channel. Please note that pre-release versions are dedicated to users who know how to report bugs, deal with issues and give feedback - no technical support will be given.
2017-10-10 20:01:17|ArchiSteamFarm-25013|INFO|ASF|InitializeSteamConfiguration() Initializing SteamDirectory...
2017-10-10 20:01:18|ArchiSteamFarm-25013|INFO|ASF|InitializeSteamConfiguration() Success!
2017-10-10 20:01:19|ArchiSteamFarm-25013|INFO|Bboysoul|Start() Starting...
2017-10-10 20:01:19|ArchiSteamFarm-25013|INFO|Bboysoul|Connect() Connecting...
2017-10-10 20:01:21|ArchiSteamFarm-25013|INFO|Bboysoul|OnConnected() Connected to Steam!
2017-10-10 20:01:22|ArchiSteamFarm-25013|INFO|Bboysoul|OnConnected() Logging in...

<Bboysoul> Please enter SteamGuard auth code that was sent on your e-mail:

你去邮箱看一下验证码输入就好了
最后成功的样子是下面这样的

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
�  ArchiSteamFarm ./ArchiSteamFarm
2017-10-10 22:43:48|ArchiSteamFarm-30771|INFO|ASF|InitASF() ASF V3.0.3.1 (a6dc45b6-8a14-47c2-a033-2673180de925)
2017-10-10 22:43:57|ArchiSteamFarm-30771|INFO|ASF|CheckAndUpdateProgram() ASF will automatically check for new versions every 1 day.
2017-10-10 22:43:57|ArchiSteamFarm-30771|INFO|ASF|CheckAndUpdateProgram() Checking for new version...
2017-10-10 22:44:00|ArchiSteamFarm-30771|INFO|ASF|CheckAndUpdateProgram() Local version: 3.0.3.1 | Remote version: 3.0.3.0
2017-10-10 22:44:00|ArchiSteamFarm-30771|WARN|ASF|CheckAndUpdateProgram() You're using a version that is newer than latest released version for your update channel. Please note that pre-release versions are dedicated to users who know how to report bugs, deal with issues and give feedback - no technical support will be given.
2017-10-10 22:44:16|ArchiSteamFarm-30771|INFO|Bboysoul|Start() Starting...
2017-10-10 22:44:17|ArchiSteamFarm-30771|INFO|Bboysoul|Connect() Connecting...
2017-10-10 22:44:19|ArchiSteamFarm-30771|INFO|Bboysoul|OnConnected() Connected to Steam!
2017-10-10 22:44:20|ArchiSteamFarm-30771|INFO|Bboysoul|OnConnected() Logging in...
2017-10-10 22:44:24|ArchiSteamFarm-30771|INFO|Bboysoul|OnLoggedOn() Successfully logged on!
2017-10-10 22:44:24|ArchiSteamFarm-30771|INFO|Bboysoul|Init() Logging in to ISteamUserAuth...
2017-10-10 22:44:30|ArchiSteamFarm-30771|INFO|Bboysoul|Init() Success!
2017-10-10 22:44:31|ArchiSteamFarm-30771|INFO|Bboysoul|IsAnythingToFarm() Checking first badge page...
2017-10-10 22:44:35|ArchiSteamFarm-30771|INFO|Bboysoul|StartFarming() We have a total of 2 games (8 cards) left to idle (~6 hours remaining)...
2017-10-10 22:44:35|ArchiSteamFarm-30771|INFO|Bboysoul|Farm() Chosen idling algorithm: Complex
2017-10-10 22:44:37|ArchiSteamFarm-30771|INFO|Bboysoul|FarmSolo() Now idling: 321040 (DiRT 3 Complete Edition)
2017-10-10 22:44:39|ArchiSteamFarm-30771|INFO|Bboysoul|ShouldFarm() Idling status for 321040 (DiRT 3 Complete Edition): 3 cards remaining
2017-10-10 22:44:39|ArchiSteamFarm-30771|INFO|Bboysoul|Farm() Still idling: 321040 (DiRT 3 Complete Edition)

很显然我有两个游戏可以挂机,现在挂机的是尘埃3

注意

有下面几个地方是需要注意一下的
首先受限账号挂不了,什么是受限账号,就是你的游戏都是淘宝礼物买的,反正就是没有往steam里面冲过钱,至少30元,用微信付一下就好了。
还有免费游戏貌似要在游戏里面充值过才可以
还有就是如果出现下面这样的报错
We don't have anything to idle on this account!
表示你的库存里没有游戏可以挂机的

最后祝大家可以挂到卡,赚钱那是不可能的啦,哈哈

欢迎关注Bboysoul的博客www.bboy.app
Have Fun

欢迎关注我的其它发布渠道