Juanan7676 / netcoin

A cryptocurrency written in lua for Minecraft mod OpenComputers.
11 stars 5 forks source link

Won't run #1

Open gobboo opened 2 years ago

gobboo commented 2 years ago

Can't get it to run at all is there a clearer guide on what to run where to x file and such :)

kcinnaJlol commented 2 years ago

Well... For a normal node (using node/node.lua) you need to have netcraftAPI.lua and everything in the node dir except node/node.lua inside /usr/lib (or any other valid path in package.path) and have node/node.lua inside /usr/bin (or any other valid path in $PATH) Then you need the following files in the directory where you will run node.lua (it uses the current directory for config files)

Then: On the index disk, create index.txt consisting of nothing. On the wallet disk, create remutxo.txt, utxo.txt, walletremutxo.txt and walletutxo.txt also consisting of nothing.

Then apply a lot of patches. The program SHOULD run by typing node.

TLDR: You need to do a lot. And yes, I might make a fork with all of the above and a setup command. Also, for the protocol to work, you need to have gamerule doDaylightCycle set to true

gobboo commented 2 years ago

Yeah seems like a lot, just a lot of code reading it seems to get it setup I'll try this thanks

Juanan7676 commented 2 years ago

Yep, this is very WIP project and need to document it a bit. Thanks for replying, @kcinnaJlol !

Juanan7676 commented 2 years ago

I am open to accepting pull requests by the way, I do not have currently a lot of time available to spend on this project, but any improvements are more than welcome!