This is a special version of the Qt client that kind of stretches the boundaries of what Huntercoin protocol as it is can do.
Hunters can now own items. At block 1030860 (testnet: 315600), and then if height is divisible by 1242 (testnet: 100) a gem will spawn in the stone cave either on the right side or left side of the map.
As it appears on the official testnet:
1 block after an hunter steps on this tile the gem is stored in gamestate with the reward address as key, or the name address if reward address is not set.
By default, save mode is on, with only client-side prediction, not touching the gamestate at all (good enough to fetch the gem, but not accurate all of the time).
Then you can
// uncomment this line and delete "game.dat" if you dare
//#define PERMANENT_LUGGAGE
and stuff becomes retroactively real. On testnet, game.dat regenerates in ~10 minutes. (it's the blockchain that can decide "who was on the right tile at the right time", gamestate is just the same data in different format for fast access)
Currently, only actions that are of no consequence (the hunter will die anyway and item is absolutely safe) are possible:
- set reward address to same as name address: this puts all gems in characterstate, amount is displayed after hunter name.
- set reward address to something different from name address: put gems back into storage
Another hunter can later inherit the inventory if they transfer to the "storage address".
Source:
https://github.com/wiggi/huntercoin/tree/betterQt-with-storagehttps://github.com/wiggi/huntercoin/blob/betterQt-with-storage/src/makefile.unixis a generic bitcoin makefile adapted for Huntercoin. No mystery dependencies anymore. Daemon build can be either identical to 1.3.01 release, or with full items/storage handling like the Qt,
making this all "client-agnostic", aside from visual effects.
For windows: (both builds, save mode and full)
https://mega.nz/#!2J0gza4C!_CGoc2_DsgjSLBc_pzkIgIJpWvjnQIdiS82K8Oh4h9E
Also for windows, a testnet in a box, showcasing a bunch of ideas that can now be ported to Huntercoin.
https://mega.nz/#!fUMWFRAZ!mYceRV0s91iokbMvkN6_vSKKbIzroi_WnnPa0uOhbeY