Closed VictorECDSA closed 9 months ago
For local preview, you need to switch to foundy testnet.
For local preview, you need to switch to foundy testnet.
Thank you! I can enter Single Play now. But the status bar on the right blocking my game interface. Could you tell me how to "collapse" it?
press tab
press
tab
Oh thank you, I see it.
But I still have some questions.
Firstly, according to 'How to Play', there should be a 'Refresh Heros' button, but I haven't see it, so I have not heros. So I can not perform any operation. I can just wait for the time pass by.
Secondly, there are some errors on the 'Actions', present periodically. I know it is the operation of bot. But some 'tick' are failure. And the error info is as below. Is this normal?
ContractFunctionExecutionError: The contract function "tick" reverted with the following reason:
preparing time
Contract Call:
address: 0xe3a6d6d5570f1d87d45036eac17342ffe32d8f46
function: tick(uint32 _gameId, address _player)
args: (3, 0x52e5145EaF688dD5b36E371E28F419c8E4112903)
sender: 0x52e5145EaF688dD5b36E371E28F419c8E4112903
Docs: https://viem.sh/docs/contract/simulateContract.html
Version: viem@1.13.2
at getContractError (http://localhost:3000/node_modules/.vite/deps/chunk-FOH7TKH3.js?v=83bcda20:988:10)
at simulateContract (http://localhost:3000/node_modules/.vite/deps/chunk-FOH7TKH3.js?v=83bcda20:1678:11)
at async a (http://localhost:3000/node_modules/.vite/deps/chunk-WLWLZ3I7.js?v=83bcda20:20782:151)
at async H (http://localhost:3000/node_modules/.vite/deps/chunk-WLWLZ3I7.js?v=83bcda20:20784:11)
@fenghaoming Thanks for your trying.
The shop btn is a little covert so that you need to click the autochessia
to open it. We are making a new interface in #191
Secondly, the error of tick is expected.
It's not ready for playtest now but you can read code to learn how it work.
@fenghaoming Thanks for your trying.
The shop btn is a little covert so that you need to click the
autochessia
to open it. We are making a new interface in #191Secondly, the error of tick is expected.
It's not ready for playtest now but you can read code to learn how it work.
Thanks. I am reading the source code of such a charming game.
Version: develop 439c3d6e
After execute the command below:
I go to http://localhost:3000/ in explorer, and click the button 'Single Play', and then wait a while. I hit an error on the 'singlePlay()' of Actions, as below: