
df-explorer的ubuntu解决方案
df-explorer 是黑暗森林(dark forest)游戏的一款开图软件,利用nvidia的GPU加速,开地图的哈希率比cpu快到不知道哪里去了,如果设备较优的话,游戏彻底变为了光明森林!但是由于安装df-explorer需要一定的配置环境支持,往往让大家非常苦恼。这篇文章的主要部分是为大家带来的是df-explorer的ubuntu20.04解决方案,大家可以按照自己的需求进行选择。 特别强调: 自由的代价是永远的警惕,安装GNU/linux系统以及编译软件请自行了解和承担可能的风险!安装ubuntu20.04请利用搜索引擎完成ubuntu20.04双系统的安装过程。 ubuntu20.04是最新的稳定发行版,安装和使用的用户友好度较高。 推荐镜像站 清华大学开源软件镜像站 安装镜像选择 【20.04.3 (amd64, Desktop LiveDVD)】 推荐镜像制作软件 UItraISO安装nvidia显卡驱动1.连接互联网 2.【Ctrl+Alt+T】打开命令行,输入如下命令, 输出显卡具体的信息和推荐的的nivida显卡驱动程序。ubuntu-drivers de...

The Dilemmas of Constructing Onchain Digit Worlds
In the realm of building large-scale decentralized applications, there exist a multitude of ideological narratives and visions of the future. Certainly, crafting and debating these narratives is important. However, these romantic words will not automatically transform into smart contracts on the blockchain, nor will they attract thousands of participants to emerge from nowhere and engage actively. When developing large-scale onchain applications, we inevitably encounter a variety of dilemmas....

Dark Forest基础指北
黑暗森林(Dark Forest)是一款非常有潜力的区块链游戏,在以太坊社区也有很高的影响力。现在依然处于较早的发展期,最近有很多朋友对这个游戏感兴趣,作为v0.6 round 3 #rank 9 的爱好者,我为大家整理了一份黑暗森林基础指北中文版,方便朋友们熟悉黑暗森林。 特别强调:请准备专门的游戏地址,游戏地址的私钥存放在浏览器的缓存中,可能存在被黑客攻击的风险。1.1 登录所需网站 zkga.me 开源代码:https://github.com/darkforest-eth1.2 简单介绍视频一个 感觉还不错的介绍视频。 1.3 获得xdaixdai和币安usdt相互转换会用到的dex honeyswap, cbridge 也可以联系我给你打钱 :-)1.4 重要的信息来源官方博客 https://blog.zkga.me 官方discord群组 小蓝鸟 请关注 @darkforest_eth @orden_gg @d_fdao 还有其他的一些1.5 重要文章最新科技集合 https://blog.zkga.me/v6-r3-wrapup 挖地图原理 https://blo...

df-explorer的ubuntu解决方案
df-explorer 是黑暗森林(dark forest)游戏的一款开图软件,利用nvidia的GPU加速,开地图的哈希率比cpu快到不知道哪里去了,如果设备较优的话,游戏彻底变为了光明森林!但是由于安装df-explorer需要一定的配置环境支持,往往让大家非常苦恼。这篇文章的主要部分是为大家带来的是df-explorer的ubuntu20.04解决方案,大家可以按照自己的需求进行选择。 特别强调: 自由的代价是永远的警惕,安装GNU/linux系统以及编译软件请自行了解和承担可能的风险!安装ubuntu20.04请利用搜索引擎完成ubuntu20.04双系统的安装过程。 ubuntu20.04是最新的稳定发行版,安装和使用的用户友好度较高。 推荐镜像站 清华大学开源软件镜像站 安装镜像选择 【20.04.3 (amd64, Desktop LiveDVD)】 推荐镜像制作软件 UItraISO安装nvidia显卡驱动1.连接互联网 2.【Ctrl+Alt+T】打开命令行,输入如下命令, 输出显卡具体的信息和推荐的的nivida显卡驱动程序。ubuntu-drivers de...

The Dilemmas of Constructing Onchain Digit Worlds
In the realm of building large-scale decentralized applications, there exist a multitude of ideological narratives and visions of the future. Certainly, crafting and debating these narratives is important. However, these romantic words will not automatically transform into smart contracts on the blockchain, nor will they attract thousands of participants to emerge from nowhere and engage actively. When developing large-scale onchain applications, we inevitably encounter a variety of dilemmas....

Dark Forest基础指北
黑暗森林(Dark Forest)是一款非常有潜力的区块链游戏,在以太坊社区也有很高的影响力。现在依然处于较早的发展期,最近有很多朋友对这个游戏感兴趣,作为v0.6 round 3 #rank 9 的爱好者,我为大家整理了一份黑暗森林基础指北中文版,方便朋友们熟悉黑暗森林。 特别强调:请准备专门的游戏地址,游戏地址的私钥存放在浏览器的缓存中,可能存在被黑客攻击的风险。1.1 登录所需网站 zkga.me 开源代码:https://github.com/darkforest-eth1.2 简单介绍视频一个 感觉还不错的介绍视频。 1.3 获得xdaixdai和币安usdt相互转换会用到的dex honeyswap, cbridge 也可以联系我给你打钱 :-)1.4 重要的信息来源官方博客 https://blog.zkga.me 官方discord群组 小蓝鸟 请关注 @darkforest_eth @orden_gg @d_fdao 还有其他的一些1.5 重要文章最新科技集合 https://blog.zkga.me/v6-r3-wrapup 挖地图原理 https://blo...

Subscribe to byeddy.eth

Subscribe to byeddy.eth
Share Dialog
Share Dialog
<100 subscribers
<100 subscribers
first release date:2022-07-05
latest revision date:2022-07-05
The Graph is a decentralized protocol for indexing and querying data from blockchains.
Dark Forest v0.6.5 is on gnosis chain (xdai) now.
Actually, we have subgraph for dark forest office test round v0.6.5.
https://thegraph.com/hosted-service/subgraph/darkforest-eth/dark-forest-v06-round-5
So how to deploy a subgraph for lobby round?
Please notice: I don't think this is a elegant way to deploy, however it can work :-)
my computer OS is windows 10, and the CLI is PowerShell
1.download subgraph code
git clone https://github.com/darkforest-eth/eth.git
NOTICE: please make sure this code is only used for deploying subgraph, we will make lots of changes.
2.open file folder and download package dependencies.
cd eth
npm install
You may meet some error like
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the \"Desktop development with C++\" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
....
Don't worry, you can just ignore them.
3.find the contract address and start block.
For example, the lobby address is : zkga.me/play/0xadc6d5ffda27525a725b01eb2199a546686c72b9
the contract address is : 0xadc6d5ffda27525a725b01eb2199a546686c72b9
the start block can find in gnosis chain's explorer
https://blockscout.com/xdai/mainnet/address/0xadc6d5fFDA27525a725b01eb2199A546686c72B9
in the line of Creator 0x5da117–1a7145 at 0xce3501–c006f1
just click the right 0xce3501-c006f1 and go to
you will get the start block in the right of Block, which is 22977361
So the start block is: 22977361
4.open eth/node_modules/@darkforest_eth/contracts/
change the contract address and start block in index.d.ts, index.js, index.js.map, index.ts.
The contract address and start block in those file before are for v0.6.5,
you just need to change them to your lobby.
5.find eth/hardhat.config.ts
and change the 37 line
//const { DEPLOYER_MNEMONIC, ADMIN_PUBLIC_ADDRESS } = process.env;
const DEPLOYER_MNEMONIC = 'change typical hire slam amateur loan grid fix drama electric seed label';
const ADMIN_PUBLIC_ADDRESS ='';
This is just to make yarn hardhat --xdai can be used.
6.open file folder eth and input those command into CLI.
yarn subgraph:template:prod
This command will generate something into subgraph/subgraph.yaml
and you will see
Error: Command failed: npx graph codegen subgraph/subgraph.yaml
at ChildProcess.exithandler (node:child_process:399:12)
at ChildProcess.emit (node:events:526:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {
killed: false,
code: 1,
signal: null,
cmd: 'npx graph codegen subgraph/subgraph.yaml',
stdout: "\x1B[31mENOENT: no such file or directory, open 'C:\\Users\\robot\\Desktop\\subgraph\\eth\\subgraph\\subgraph\\subgraph.yaml'\x1B[39m\n",
stderr: ''
}
don't worry, and you input the command into CLI
npx graph codegen subgraph/subgraph.yaml
and you will see
...
√ Load GraphQL schema from subgraph\schema.graphql
Write types to generated\schema.ts
√ Generate types for GraphQL schema
Types generated successfully
You will see generated/ in eth/, just move generated/ into eth/subgraph/
7.follow the graph's docs to store the access token And Add Subgraph
https://thegraph.com/docs/en/hosted-service/deploy-subgraph-hosted/
for example , your github name is goodboy, and the subgraph name is Play Dark Forest
then input below command int CLI
yarn subgraph:deploy:prod GoodBoy/play-dark-forest
if deploy successfully, you will see
Deployed to https://thegraph.com/explorer/subgraph/goodboy/play-dark-forest
Subgraph endpoints:
Queries (HTTP): https://api.thegraph.com/subgraphs/name/goodboy/play-dark-forest
Subscriptions (WS): wss://api.thegraph.com/subgraphs/name/goodboy/play-dark-forest
then you may need wait some time to wait for subgraph to snyc.
You can check the state in
https://thegraph.com/explorer/subgraph/goodboy/play-dark-forest
That's all, thanks for reading .
If you have any question, please feel free to connect with me :-)
my twitter @ddy_mainland.
first release date:2022-07-05
latest revision date:2022-07-05
The Graph is a decentralized protocol for indexing and querying data from blockchains.
Dark Forest v0.6.5 is on gnosis chain (xdai) now.
Actually, we have subgraph for dark forest office test round v0.6.5.
https://thegraph.com/hosted-service/subgraph/darkforest-eth/dark-forest-v06-round-5
So how to deploy a subgraph for lobby round?
Please notice: I don't think this is a elegant way to deploy, however it can work :-)
my computer OS is windows 10, and the CLI is PowerShell
1.download subgraph code
git clone https://github.com/darkforest-eth/eth.git
NOTICE: please make sure this code is only used for deploying subgraph, we will make lots of changes.
2.open file folder and download package dependencies.
cd eth
npm install
You may meet some error like
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the \"Desktop development with C++\" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
....
Don't worry, you can just ignore them.
3.find the contract address and start block.
For example, the lobby address is : zkga.me/play/0xadc6d5ffda27525a725b01eb2199a546686c72b9
the contract address is : 0xadc6d5ffda27525a725b01eb2199a546686c72b9
the start block can find in gnosis chain's explorer
https://blockscout.com/xdai/mainnet/address/0xadc6d5fFDA27525a725b01eb2199A546686c72B9
in the line of Creator 0x5da117–1a7145 at 0xce3501–c006f1
just click the right 0xce3501-c006f1 and go to
you will get the start block in the right of Block, which is 22977361
So the start block is: 22977361
4.open eth/node_modules/@darkforest_eth/contracts/
change the contract address and start block in index.d.ts, index.js, index.js.map, index.ts.
The contract address and start block in those file before are for v0.6.5,
you just need to change them to your lobby.
5.find eth/hardhat.config.ts
and change the 37 line
//const { DEPLOYER_MNEMONIC, ADMIN_PUBLIC_ADDRESS } = process.env;
const DEPLOYER_MNEMONIC = 'change typical hire slam amateur loan grid fix drama electric seed label';
const ADMIN_PUBLIC_ADDRESS ='';
This is just to make yarn hardhat --xdai can be used.
6.open file folder eth and input those command into CLI.
yarn subgraph:template:prod
This command will generate something into subgraph/subgraph.yaml
and you will see
Error: Command failed: npx graph codegen subgraph/subgraph.yaml
at ChildProcess.exithandler (node:child_process:399:12)
at ChildProcess.emit (node:events:526:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {
killed: false,
code: 1,
signal: null,
cmd: 'npx graph codegen subgraph/subgraph.yaml',
stdout: "\x1B[31mENOENT: no such file or directory, open 'C:\\Users\\robot\\Desktop\\subgraph\\eth\\subgraph\\subgraph\\subgraph.yaml'\x1B[39m\n",
stderr: ''
}
don't worry, and you input the command into CLI
npx graph codegen subgraph/subgraph.yaml
and you will see
...
√ Load GraphQL schema from subgraph\schema.graphql
Write types to generated\schema.ts
√ Generate types for GraphQL schema
Types generated successfully
You will see generated/ in eth/, just move generated/ into eth/subgraph/
7.follow the graph's docs to store the access token And Add Subgraph
https://thegraph.com/docs/en/hosted-service/deploy-subgraph-hosted/
for example , your github name is goodboy, and the subgraph name is Play Dark Forest
then input below command int CLI
yarn subgraph:deploy:prod GoodBoy/play-dark-forest
if deploy successfully, you will see
Deployed to https://thegraph.com/explorer/subgraph/goodboy/play-dark-forest
Subgraph endpoints:
Queries (HTTP): https://api.thegraph.com/subgraphs/name/goodboy/play-dark-forest
Subscriptions (WS): wss://api.thegraph.com/subgraphs/name/goodboy/play-dark-forest
then you may need wait some time to wait for subgraph to snyc.
You can check the state in
https://thegraph.com/explorer/subgraph/goodboy/play-dark-forest
That's all, thanks for reading .
If you have any question, please feel free to connect with me :-)
my twitter @ddy_mainland.
No activity yet