Commit Graph

7698 Commits

Author SHA1 Message Date
Crypto City
93dde3f83e game: remove "newly added" ghost effect
It looks so bad at night it makes it hard to see blocks
2020-02-22 14:17:21 +00:00
Crypto City
bcc16a0ad4 game: add "wallet synced" notification 2020-02-22 14:17:21 +00:00
Crypto City
11c5ca898b We can now remove materials already on the blockchain 2020-02-22 14:17:21 +00:00
Crypto City
4464d79932 game: message box aesthetic tweaks 2020-02-22 14:17:21 +00:00
Crypto City
ead26dd063 game: fix large performance drop in edit mode
Nothing was instanced. Instancing is now done, but this means
blocks all get the same UV, and so look a lot worse due to repetition
of an eighth of the texture on each side.
2020-02-22 14:17:20 +00:00
Crypto City
3f353f31ec tweak road shares so tiny roads don't get huge bonuses 2020-02-22 14:17:20 +00:00
Crypto City
01e6188dab game: close only the columns selector on escape if open 2020-02-22 14:17:20 +00:00
Crypto City
8034f506b7 game: fix adding hovering blocks 2020-02-22 14:17:20 +00:00
Crypto City
4f85ec704b game: do not count town squares in largest buildings leaderboard 2020-02-22 14:17:20 +00:00
Crypto City
a157a91de8 game: surrender to the idiotic warning spam that's getting on my nerves 2020-02-22 14:17:20 +00:00
Crypto City
8a89ba4c01 game: remove a TODO that's now moot 2020-02-22 14:17:20 +00:00
Crypto City
b8986d7cb0 game: fix building settings layout creeping to the left 2020-02-22 14:17:20 +00:00
Crypto City
13040bf4f4 cc: bump min buy size a bit 2020-02-22 14:17:20 +00:00
luigi1111
39e1890276
Merge pull request #6198
5f2a32c daemon: run with -rpc-payment-address and --rpc-restricted-bind-port (moneromooo-monero)
2020-02-19 22:25:44 -05:00
luigi1111
04187e5968
Merge pull request #6197
f812783 simplewallet: fix encrypted payment id note triggering on dummy ones (moneromooo-monero)
2020-02-19 22:24:44 -05:00
luigi1111
2de1137e60
Merge pull request #6194
316ab7b wallet2: better error when restoring a wallet with the wrong keys (moneromooo-monero)
2020-02-19 22:23:46 -05:00
luigi1111
22a0367398
Merge pull request #6190
096a9db Wallet: Distingush amounts for a single subaddress (tmoravec)
2020-02-19 22:22:36 -05:00
xiphon
fcb06f7a82 cryptonote_core: skip block notify on blockchain switching rollback 2020-02-19 16:19:29 +00:00
Crypto City
02b26b92db fix cultural buildings not getting payouts 2020-02-18 14:56:41 +00:00
Crypto City
626c916627 game: add consumption/production to buildings list 2020-02-18 14:56:41 +00:00
Crypto City
0bb92d8003 game: allow hiding some columns in flag list 2020-02-18 01:31:31 +00:00
Crypto City
895f7f9e6a game: add hotkeys for free/orbit cams 2020-02-17 22:12:27 +00:00
Crypto City
24c45d2ef2 game: show a building in the 3D view when double clicking it in a list 2020-02-17 21:52:15 +00:00
Crypto City
7f4fd0cfa6 game: default last update events to filter for the current player 2020-02-17 20:58:09 +00:00
Crypto City
329fb89d4c game: announce new players in chat 2020-02-17 20:22:27 +00:00
Crypto City
963ec238ee game: fix wrong parent in building settings 2020-02-17 20:19:02 +00:00
Crypto City
d709d855a4 game: unset focus on selection commands 2020-02-17 18:52:00 +00:00
Crypto City
e71d90d735 game: sort flags by clicking on header buttons in player info dialog 2020-02-17 18:20:49 +00:00
Interchained
c61abf87c0 remove empty statements
Cleaning up a little around the code base.
2020-02-17 11:55:15 -05:00
Guillaume Le Vaillant
82da832368 rpc: Add check for too old timestamps in payment signatures. 2020-02-17 15:10:19 +01:00
Crypto City
b9520cbffb game: fix research placement ordering, and add missing rd postfix 2020-02-17 14:05:30 +00:00
Crypto City
9599bb6958 game: the sun now rises in the east and sets in the west 2020-02-17 13:54:46 +00:00
Crypto City
adfb28bead game: fix console input focus highlight position 2020-02-17 13:54:46 +00:00
Crypto City
3f7607586c game: add footer to the player flag list
Dirty, but hey
2020-02-17 13:54:46 +00:00
moneromooo-monero
927fd47934
simplewallet: fix smart mining not starting after first setup
Also avoid rewriting the wallet if the setting is already was we need
2020-02-17 13:16:09 +00:00
Crypto City
7fa3010098 game: fix trade sorting 2020-02-16 23:13:22 +00:00
Crypto City
71c9723157 game: do not set video mode twice
We get the saved config manually before initializing the engine.
This fixes occasional loss of window focus at startup.
2020-02-16 22:00:44 +00:00
Crypto City
d30fe0a6ef game: disable focus for all panel widgets except edit field and buttons
This allows unimpleded 3D world motion
2020-02-16 22:00:44 +00:00
Crypto City
05fdc65e1e game: allow vertical console resizing only 2020-02-16 15:43:26 +00:00
Crypto City
bf30f57596 game: player flags grid now has resizable columns 2020-02-16 15:43:24 +00:00
Crypto City
903c206b0f game: check for modal dialogs before acting on keys in main view 2020-02-16 02:28:37 +00:00
Crypto City
517c590cdd game: do not lose filters on new blocks in last update dialog 2020-02-16 01:48:49 +00:00
Crypto City
937e73da15 game: ensure the amount selection dialog does not clip the message 2020-02-16 01:22:50 +00:00
Crypto City
a0af892a30 game: print max amount of money that can be selected 2020-02-16 01:04:41 +00:00
Crypto City
37750bbee7 game: print notification when a trade goes through
It's too easy to think the button click was missed, and click again
2020-02-16 00:31:43 +00:00
Crypto City
15e4833082 game: add a "selsect whole flag" command
Useful for large flags where mouse selection is finnicky when seen
whole from afar
2020-02-16 00:26:22 +00:00
Crypto City
7aa3d2da0c cc: replace spend public keys by cc keys
They're not the raw keys now and I forgot to replace them
2020-02-16 00:11:38 +00:00
Crypto City
bc6033aef7 game: remember window size 2020-02-16 00:04:18 +00:00
Crypto City
ccf3589e09 game: disable building settings input widgets if a building exists 2020-02-15 23:57:15 +00:00
Crypto City
5e3f37f902 game: print player nick with the right colour in chat 2020-02-15 23:57:15 +00:00
Crypto City
b6b9ed6ad8 game: print time till next update in last update dialog 2020-02-15 23:57:15 +00:00
Crypto City
c9752a0b3d some s/monero/townforge/ where appropriate 2020-02-14 13:19:03 +00:00
Crypto City
4f0ba51d29 game: bring up options on ESC 2020-02-14 13:19:03 +00:00
moneromooo-monero
e3779775d7
tx_pool: catch theoretical error in get_block_reward
Coverity 196626
2020-02-12 21:05:28 +00:00
moneromooo-monero
09c8111c53
threadpool: lock mutex in create
In some contrived case, it might theoretically be the case that
destroy is called from another thread, which would modify the
threads array from two threads.

Coverity 208372
2020-02-12 21:05:28 +00:00
xiphon
cc18926eba wallet2_api: wallet recovery - seed offset passphrase support 2020-02-11 23:36:50 +00:00
Crypto City
dd5adf983a game: update spector mode and node notification windows on resize 2020-02-11 21:41:41 +00:00
Crypto City
2149a17a10 game: don't try to set tiny video modes 2020-02-11 21:19:51 +00:00
Crypto City
f9cb74ecf7 game: move camera to the town square when travelling to a city 2020-02-11 19:17:36 +00:00
Crypto City
5a6006134a game: forbid removing more cases of existing blocks 2020-02-11 18:57:39 +00:00
Crypto City
c5907db199 game: prevent placing blocks below already built blocks
This would not yield the expected result
2020-02-11 18:52:22 +00:00
Crypto City
fb8b3af6fd game: merge faces into larger rectangles for performance 2020-02-11 18:17:16 +00:00
moneromooo-monero
9bde70e567
core: mention time being off in hash rate changes message 2020-02-10 16:56:10 +00:00
Crypto City
85ffc6ca5f game: restore walker camera by default 2020-02-10 02:04:38 +00:00
Crypto City
187da862a9 game: handle enter when in text fields 2020-02-09 21:11:42 +00:00
Crypto City
871336c4b7 game: update balance on synced 2020-02-09 19:34:10 +00:00
Crypto City
2141026848 Change a few more user visible Crypto City strings to TownForge 2020-02-09 15:43:45 +00:00
Crypto City
902fa67635 blockchain: enable block 1 check again 2020-02-09 15:41:24 +00:00
Crypto City
35e0c6a753 game: fix tooltip interfering with mouse rotation 2020-02-09 15:41:07 +00:00
Crypto City
5f42d3641a automatic match commands 2020-02-09 15:41:07 +00:00
moneromooo-monero
e4cd618178 rpc: fix print_pool_sh not finding local txes 2020-02-08 13:05:35 +00:00
moneromooo-monero
3627e53aab
rpc: fix print_pool_sh not finding local txes 2020-02-08 12:56:00 +00:00
xiphon
29b7cd1351 device_ledger: include status code name in error message 2020-02-08 01:46:39 +00:00
Crypto City
ef507c1ebd Revert "game: ensure non interactable list items don't claim a hit"
This reverts commit 5bd7572adb.

That was a bad idea.
2020-02-07 16:55:09 +00:00
xiphon
1a6e7bd40f wallet2: mention --daemon-ssl-allow-any-cert in --proxy error msg 2020-02-07 10:02:27 +00:00
Crypto City
364e197627 cc: tweak potential maps 2020-02-07 00:56:42 +00:00
Crypto City
549d90e6be game: add potential visualization
The ground takes the greyscale value of the potential for that tile
2020-02-06 19:29:34 +00:00
Crypto City
22c40d0b89 game: fix and simplify terrain positioning 2020-02-06 15:16:39 +00:00
moneromooo-monero
c2095fc27b
miner: use verification mode for low diff one block nonce searches
This avoids lengthy init times when testing
2020-02-06 14:27:10 +00:00
Alexander Blair
bd4acbf44c
Merge pull request #6183
3813a992 download: catch exceptions checking for size (moneromooo-monero)
2020-02-06 00:34:58 -08:00
Alexander Blair
af27276452
Merge pull request #6178
7ac7d5d3 updates: fix source code URL on _WIN32 (selsta)
2020-02-06 00:33:49 -08:00
Alexander Blair
e552ba14b2
Merge pull request #6127
67b4a19e simplewallet: noob-friendly help menu (wowario)
2020-02-06 00:33:31 -08:00
Alexander Blair
995f34b538
Merge pull request #6103
4b384003 wallet2: don't try to lock an empty filename (moneromooo-monero)
2020-02-06 00:33:18 -08:00
Alexander Blair
756f06cd83
Merge pull request #6102
b328de6b wallet_rpc_server: add tx weight in transfer commands responses (moneromooo-monero)
2020-02-06 00:32:47 -08:00
Alexander Blair
8136bf37e2
Merge pull request #6096
a633f85d daemon: allow printing N blocks from the end of the chain (moneromooo-monero)
2020-02-06 00:31:50 -08:00
Alexander Blair
b8e5c769c7
Merge pull request #6095
7ba31191 daemon: add +meta print_tx parameter (moneromooo-monero)
2020-02-06 00:31:17 -08:00
Alexander Blair
78d4d5ab79
Merge pull request #6094
236d2a88 blockchain_stats: make it work on pruned blockchains (moneromooo-monero)
2020-02-06 00:30:48 -08:00
Alexander Blair
2532567091
Merge pull request #6078
b9fc2066 Add a --keep-fakechain option to keep fakechain databases (JamesWrigley)
2020-02-06 00:30:15 -08:00
Alexander Blair
cd1610bc37
Merge pull request #6076
22d30866 simplewallet: add missing inactivity-lock-timeout to set help blurb (moneromooo-monero)
9f57f0df simplewallet: do not mention inactivity if a lock was manual (moneromooo-monero)
2020-02-06 00:29:52 -08:00
Alexander Blair
3b224bb99d
Merge pull request #6069
d64e5aa7 wallet: allow message sign/verify for subaddresses (moneromooo-monero)
2020-02-06 00:29:32 -08:00
Alexander Blair
34d7ea62f6
Merge pull request #6053
deb350b7 always print peer IDs in the same format (moneromooo-monero)
2020-02-06 00:28:47 -08:00
Alexander Blair
9a08ac98c0
Merge pull request #6050
65301c40 core: point out when we hit the block rate visibility limit (moneromooo-monero)
2020-02-06 00:28:18 -08:00
Alexander Blair
9658f5d7fc
Merge pull request #6040
2f8f3a94 rpc: base flush_cache request/response on the new base structs (moneromooo-monero)
2020-02-06 00:26:34 -08:00
Alexander Blair
25c1bd4714
Merge pull request #6035
b90c4bc3 rpc: error out from get_info if the proxied call errors out (moneromooo-monero)
fa16df99 make_test_signature: exit nicely on top level exception (moneromooo-monero)
054b2621 node_rpc_proxy: init some new rpc payment fields in invalidate (moneromooo-monero)
d0faae2a rpc: init a few missing client_info members (moneromooo-monero)
d56a483a rpc: do not propagate exceptions out of a dtor (moneromooo-monero)
3c849188 rpc: always set the update field in update on sucess (moneromooo-monero)
2020-02-06 00:26:13 -08:00
Crypto City
ee4cdcaa3e game: fix spectator mode widget flickering
Or bodge it, rather.
2020-02-05 20:37:54 +00:00
Crypto City
e41bd2a01e game: add graphics mode options 2020-02-05 01:54:56 +00:00
Crypto City
10fa503b7e game: change the window title to TownForge 2020-02-05 00:54:51 +00:00
luigi1111
d7aeb5a9f8
Merge pull request #6233
8a27645 blockchain: fix flushing txes from the txpool (moneromooo-monero)
2020-02-04 14:38:35 -05:00
Crypto City
74ace85ed0 game: increase the number of loaded sections to match horizon/zone 2020-02-04 15:18:00 +00:00
Crypto City
effc47d82a game: fix falling off the edge of the world
Well, increase that radius a lot anyway
2020-02-04 15:02:09 +00:00
Crypto City
39bdccc437 game: add forest horizon 2020-02-04 14:55:58 +00:00
Crypto City
32ee9647ef game: default to clouds on 2020-02-04 14:55:43 +00:00
Crypto City
3e05b3e9d0 game: make some edit fields autofocus where appropriate 2020-02-04 01:12:16 +00:00
Crypto City
6020912e94 game: fix crash accessing null flag 2020-02-04 01:11:10 +00:00
Crypto City
fccb8c6f15 game: add header to buildings list in player info dialog 2020-02-04 00:41:37 +00:00
Crypto City
c05d737979 cc: increase patent itme, and add some more discoveries 2020-02-03 20:02:32 +00:00
Crypto City
c13a4642d7 game: flag tooltip tweaks 2020-02-03 16:36:17 +00:00
Crypto City
4020cff279 game: tweak widget enabled/disabled state based on wallet/account 2020-02-03 16:20:30 +00:00
Crypto City
5bd7572adb game: ensure non interactable list items don't claim a hit 2020-02-03 16:20:22 +00:00
Crypto City
67f4e4f956 game: do not pick any scene object when a TB widget is in the way 2020-02-03 16:20:22 +00:00
Crypto City
15b6cab28a cc: decrease threshold for new cities 2020-02-03 16:20:22 +00:00
Crypto City
09b4953f3c game: show tooltip with building info on hover 2020-02-03 16:20:22 +00:00
Crypto City
048282de81 game: player info dialog 2020-02-03 16:20:22 +00:00
Crypto City
302f81013d game: add current name as default in rename dialog 2020-02-01 11:59:12 +00:00
Crypto City
e19be588c6 game: smooth motion when the orbit camera avoids obstacles 2020-02-01 01:52:41 +00:00
Crypto City
ee2246d5d0 blockchain: disable block 1 for now 2020-01-31 23:28:38 +00:00
Crypto City
c0a680bbdc game: make orbit camera avoid obstacles 2020-01-31 20:47:22 +00:00
Crypto City
159cd822dd game: constrain walker camera pitch 2020-01-31 19:06:57 +00:00
Crypto City
d4efb19936 game: use planes rather than boxes for ground 2020-01-31 18:59:53 +00:00
Crypto City
f7f223967c game: make boundaries more visible 2020-01-31 15:30:16 +00:00
moneromooo-monero
b818522d29
p2p: fix spurious warning when we're connected to at last one seed 2020-01-31 15:11:22 +00:00
Crypto City
f2962eb131 game: add orbit camera
Useful when building
2020-01-31 15:05:17 +00:00
Crypto City
a4495fe653 game: add camera type selection, and default to walker 2020-01-31 14:29:04 +00:00
Crypto City
0217ad3035 walker-camera: fix unwanted roll 2020-01-31 13:41:32 +00:00
Crypto City
bc16deee19 game: rename "Actions" to "Commands" and add an exit button 2020-01-31 03:35:08 +00:00
Crypto City
aa0d1c7cbf game: move show flags to the options dialog 2020-01-31 03:21:02 +00:00
Crypto City
f4e0f98d6d cc: make military buildings' influence much larger
They don't get payouts, and their only use is bonuses for other
buildings, so they need to have a lot more to start being worth
the price.
2020-01-31 01:37:32 +00:00
Crypto City
46b97a477b game: make terrain actually infinite (for some small version of infinity) 2020-01-31 01:26:14 +00:00
Crypto City
7e277ba370 game: add missing files for found city dialog 2020-01-30 17:46:04 +00:00
Crypto City
7d09141bda game: add a "pick random coordinates" button to the found city dialog 2020-01-30 17:45:41 +00:00
Crypto City
122e383cd2 different building types now contribute differently to city growth 2020-01-30 17:26:02 +00:00
Crypto City
28615fe42d cc: modulate bonus buildings get from roads by role 2020-01-30 15:44:32 +00:00
Crypto City
90ecde3f3d db_lmdb: guard against cities founded after the genesis block 2020-01-30 15:44:32 +00:00
Crypto City
3cceab2f0b rpc: initialize new cities in cc_debug_allocate_new_city 2020-01-30 15:44:32 +00:00
Crypto City
31680e85f0 db_lmdb: don't delete a record we did no add in account keys 2020-01-30 15:44:32 +00:00
Crypto City
70f136440f daemon: print city name in cc_get_city 2020-01-30 15:44:32 +00:00
Crypto City
0da452c2d1 game: add largest buildings leaderboard 2020-01-30 15:44:32 +00:00
Crypto City
44176fbe43 game: add building activity leaderboard 2020-01-30 02:04:20 +00:00
Crypto City
eeb0d446b3 game: highlight "chat" button text when your nick is mentioned 2020-01-29 22:30:16 +00:00
Crypto City
d5b99cf343 game: don't re-focus the GUI when it's not focused 2020-01-29 20:49:05 +00:00
Crypto City
03dfa20a44 game: simplify and fix item selection in last update events dialog 2020-01-29 19:05:11 +00:00
Crypto City
870eefb108 cc: do not add "flag N" in events, they're redundant 2020-01-29 18:47:43 +00:00
Crypto City
a4ea6a7767 ensure generator production does not overflow 2020-01-29 18:44:17 +00:00
moneromooo-monero
4771a7aec1
p2p: remove obsolete local time in handshake
Also removes a potential fingerprinting vector
2020-01-29 14:39:58 +00:00
moneromooo-monero
2fbbc4a2d3
p2p: avoid sending the same peer list over and over
Nodes remember which connections have been sent which peer addresses
and won't send it again. This causes more addresses to be sent as
the connection lifetime grows, since there is no duplication anymore,
which increases the diffusion speed of peer addresses. The whole
white list is now considered for sending, not just the most recent
seen peers. This further hardens against topology discovery, though
it will more readily send peers that have been last seen earlier
than it otherwise would. While this does save a fair amount of net
bandwidth, it makes heavy use of std::set lookups, which does bring
network_address::less up the profile, though not too aggressively.
2020-01-29 14:39:56 +00:00
Crypto City
57526fd8f5 game: texturing improvements and new materials 2020-01-29 14:00:15 +00:00
Crypto City
49aa16bc51 wip - texturing 2020-01-29 01:21:45 +00:00
Crypto City
8554a4ed10 game: textures now extend over 8x8 tiles
Looks a lot better
2020-01-29 01:19:49 +00:00
Crypto City
cf37ca6393 game: add leaderboards dialog
And a leaderboard for discoveries
2020-01-28 21:08:20 +00:00
Crypto City
9fd1740594 game: fix crash in research dialog 2020-01-28 21:08:20 +00:00
Crypto City
aad82022a3 cc: give new towns only the town square 2020-01-28 21:08:20 +00:00
Crypto City
656d583919 cc: some more resources tweaks 2020-01-28 21:08:20 +00:00
Crypto City
53be0c04af game: fix typo in building settings message 2020-01-28 15:20:10 +00:00
Crypto City
8b6e8cca7b game: use std::vector<uint8_t> instead of std::vector<bool>
Turns out the load of operator== with a large selection kills performance
2020-01-28 15:05:21 +00:00
Crypto City
3c514cd9ba game: remove some unused code 2020-01-28 15:05:21 +00:00
Crypto City
329c20a2b2 game: don't warn when optional files are not found 2020-01-28 15:05:21 +00:00
Crypto City
2b55564405 blockchain: guard against large pre-start chain reorg 2020-01-28 15:05:21 +00:00
Crypto City
87d5be8ddb cc: move the town hall to the north side, in view of the start camera 2020-01-28 15:05:21 +00:00
Crypto City
24ccfe38ae cc: tweak road materials again 2020-01-28 15:05:21 +00:00
Crypto City
4183745da4 add price limit for accrual trades 2020-01-28 15:05:21 +00:00
Crypto City
9ad2e1355d cc: make workforce proximity bonus/penalty starker 2020-01-28 15:05:21 +00:00
Crypto City
2282646a45 game: add flag size in the building settings dialog 2020-01-28 15:05:21 +00:00
Crypto City
7c1ea29fac cc: tweak workforce building 2020-01-28 15:05:21 +00:00
Crypto City
86448078f5 cc: basic residential does not need commercial influence anymore
make it just a bonus
2020-01-28 15:05:21 +00:00
Crypto City
28f8debbcf game: show road bonus for new buildings 2020-01-28 15:05:21 +00:00
Crypto City
53de630939 game: derive all windows from UITBWindow 2020-01-28 15:05:21 +00:00
Crypto City
d920561281 cc: bring first city earlier by 10 2020-01-28 15:05:21 +00:00
Crypto City
1c08f5d5a1 game: fix spurious "broken up" flag areas 2020-01-28 15:05:21 +00:00
moneromooo-monero
39a343d76e
p2p: remove backward compatible peer list 2020-01-26 18:37:33 +00:00
moneromooo-monero
606318026e
p2p: simplify last_seen serialization now we have optional stores 2020-01-26 18:37:32 +00:00
moneromooo-monero
9467b2e44c
cryptonote_protocol: omit top 64 bits of difficulty when 0 2020-01-26 18:37:31 +00:00
moneromooo-monero
5f98b46d58
p2p: remove obsolete local time from TIMED_SYNC 2020-01-26 18:37:26 +00:00
Alexander Blair
8eedc8a390
Merge pull request #6140
08635a08 blockchain: speedup fetching pruned contiguous tx blobs (moneromooo-monero)
2020-01-25 16:55:18 -08:00
Alexander Blair
40f82b35ae
Merge pull request #6170
56a4469e network: log traffic and add a simple traffic analysis script (moneromooo-monero)
2020-01-25 16:54:24 -08:00
moneromooo-monero
56a4469ef3
network: log traffic and add a simple traffic analysis script 2020-01-26 00:33:41 +00:00
moneromooo-monero
dd8c6b1703
wallet: do not split integrated addresses in address book api 2020-01-26 00:03:53 +00:00
Crypto City
623bc266ca tx_pool: fix tracking of city/flag trade commands 2020-01-25 23:17:44 +00:00
Crypto City
5a4d63f5f1 cc: new match command, matches trades without trading itself
This will be useful for trade ussing accrual
2020-01-25 22:18:04 +00:00
Crypto City
22b74d59d1 cc: ensure chat commands are not mined 2020-01-25 19:33:54 +00:00
xiphon
dab604e010 wallet2_api: implement estimateTransactionFee 2020-01-25 05:34:51 +00:00
Alexander Blair
59e7d5686b
Merge pull request #6093
2e58eb5c lmdb: Remove meaningless const qualifier on function type (Nathan Dorfman)
2020-01-24 20:24:44 -08:00
Alexander Blair
e8f94e7f1d
Merge pull request #6173
8231c7cd rpc: fix bootstrap RPC payment RPC being made in raw JSON, not JSON RPC (moneromooo-monero)
81c26589 rpc: don't auto fail RPC needing payment in bootstrap mode (moneromooo-monero)
2020-01-24 20:19:41 -08:00
Alexander Blair
93d49c1a54
Merge pull request #6172
d7cf8727 rpc: add received_timestamp for pool txes in gettransactions (moneromooo-monero)
2020-01-24 20:17:39 -08:00
Alexander Blair
e51ce477db
Merge pull request #6157
402dd207 db_lmdb: guard against non NUL terminated keys (moneromooo-monero)
2020-01-24 20:07:37 -08:00
Alexander Blair
159c78758a
Merge pull request #6154
3b419333 wallet: don't issue node rpc proxy requests in '--offline' mode (xiphon)
2020-01-24 20:07:01 -08:00
Alexander Blair
f20a962774
Merge pull request #6153
24adee4a p2p: don't request flags after closing connection (moneromooo-monero)
2020-01-24 20:06:46 -08:00
Alexander Blair
d1b08c00cf
Merge pull request #6146
70c9cd3c Change to Tx diffusion (Dandelion++ fluff) instead of flooding (Lee Clagett)
2020-01-24 20:06:34 -08:00
Alexander Blair
5558919e56
Merge pull request #6128
9fe8a76c perf_timer: fix pause/resume macros dereferencing too much (moneromooo-monero)
2020-01-24 20:06:12 -08:00
moneromooo-monero
2e9d1e6e1f
wallet2: fix store-tx-info loading
The backward compatibility code was always setting it to 1
in modern wallets since store_tx_keys was not present and thus
assumed to be 1 by default.

Reported by SeventhAlpaca
2020-01-24 16:34:07 +00:00
Crypto City
0a53ab2732 wallet2: don't process game balance changes for pool txes 2020-01-24 15:49:35 +00:00
Crypto City
fb9e5297e8 auto updating trade prices
A trade order can be set to update its price every game update,
allowing auctions of sorts
2020-01-24 15:49:34 +00:00
Crypto City
df17dcdcda name binaries and relevant files townforge* 2020-01-24 15:49:34 +00:00
Crypto City
f8fddabe81 add a give (items) command 2020-01-24 15:49:34 +00:00
Crypto City
712fed31fa cc: don't require a valid pubkey when not sending money 2020-01-24 15:49:34 +00:00
Crypto City
ae6ad7eb3a cc: fix reverting game update with defaulted land 2020-01-24 15:49:34 +00:00
Crypto City
8e2c9d5489 cc: make roads use granite, but less so 2020-01-24 15:49:34 +00:00
Crypto City
97da41ec66 game: fix selection disappearing as the mouse moves off an object 2020-01-24 15:49:34 +00:00
Crypto City
564b79bbc9 game: add edit commands which went missing during the tb switch 2020-01-24 15:49:34 +00:00
Crypto City
4ccc38366d game: fix influence/generator area markers 2020-01-24 15:49:34 +00:00
Crypto City
26c803adf6 game: factor out the area model builder, it'll be reused 2020-01-24 15:49:34 +00:00
Crypto City
0158e4bc71 game: add travel between cities 2020-01-24 15:49:34 +00:00
Crypto City
d68801f026 Allow trading cities 2020-01-24 15:49:34 +00:00
Crypto City
9d06dcf5b9 db_lmdb: don't place null pubkeys in the key-to-account table
all treasuries will have that key
2020-01-24 15:49:34 +00:00
Crypto City
7d6cb44866 db_lmdb: fix missing city name in for_all_cc_cities 2020-01-24 15:49:34 +00:00
Crypto City
c82864acfc New cities can now be created, price goes down with world size 2020-01-24 15:49:34 +00:00
Crypto City
b395e17a43 game: fix disappearing budget items 2020-01-20 00:58:01 +00:00
Crypto City
429cf3e9c0 game: disable assign items when appropriate
it was left enabled as a debug helper
2020-01-20 00:58:01 +00:00
Aaron Hook
d0641b42fe net: fix incorrect less operator for top/i2p addresses 2020-01-18 19:18:56 -08:00
Crypto City
3e25efaf45 game: display the max amount assignable in item select dialog 2020-01-18 13:02:00 +00:00
Crypto City
8ae7f04e93 game: some usability tweaks in trade ui 2020-01-18 12:14:27 +00:00
Crypto City
d6200512fd game: fix line taken out by mistkae in previous commit 2020-01-18 12:11:22 +00:00
Crypto City
d1b618ec43 game: wip - switch to turbo badger for ui 2020-01-18 01:21:51 +00:00
Crypto City
9c8fa71031 game: add missing node config dialog files 2020-01-17 23:24:08 +00:00
Crypto City
bc5bc0f085 game: make centered size conigurable 2020-01-17 23:21:37 +00:00
moneromooo-monero
484fc0c844 wallet2: remember daemon address overrides when loading a new wallet 2020-01-17 22:35:07 +00:00
Crypto City
bed5895ac3 game: node config dialog and disconnected notification 2020-01-17 21:13:02 +00:00
cohcho
fe92fa1391 [randomx] Add missing randomx_vm_set_cache() 2020-01-17 19:25:26 +00:00
Crypto City
4d4fbd7b41 game: wip - switch to turbo badger for ui 2020-01-17 16:59:43 +00:00
Crypto City
d0a35cbf6d game: more fuck you tb for this disappearing shade icon 2020-01-17 12:24:14 +00:00
Alexander Blair
beb815a81d
Merge pull request #6144
0e0351c4 wallet_rpc_server: add count parameter to create_address (Matt Smith)
2020-01-16 17:51:25 -08:00
Alexander Blair
c39ea485a0
Merge pull request #6141
b9b5c473 threadpool: use std::move when taking an element off the queue (moneromooo-monero)
2020-01-16 17:45:44 -08:00
Crypto City
1dc8488ca6 game: wip - switch to turbo badger for ui 2020-01-17 01:44:59 +00:00
Alexander Blair
2ce5529680
Merge pull request #6134
a7a40e28 Actually concatenate error strings. (Bert Peters)
2020-01-16 17:42:27 -08:00
Alexander Blair
f1ca98a7ef
Merge pull request #6133
b2ad757f Replace memset with memwipe. (Bert Peters)
2020-01-16 17:41:35 -08:00
Alexander Blair
e4e70b57ca
Merge pull request #6130
6dec0013 simplewallet: fix restore height warning (selsta)
2020-01-16 17:39:03 -08:00
Alexander Blair
c4abfbfbe7
Merge pull request #6124
21d4c216 blockchain: error out if the builtin hashes data size is wrong (moneromooo-monero)
2020-01-16 17:31:35 -08:00
Alexander Blair
c6f4113265
Merge pull request #6119
6f45cfa5 p2p: zero last seen timestamp when inserting a new peer (moneromooo-monero)
2020-01-16 17:29:27 -08:00
Alexander Blair
3acb22b889
Merge pull request #6115
27522aaa core_tests: reset thread pool between tests (moneromooo-monero)
2020-01-16 17:27:15 -08:00
Crypto City
5d188770ab game: fix constant change events for main window 2020-01-16 22:50:33 +00:00
Crypto City
3903e10240 game: fix disappearing shade icon, fuck you tb 2020-01-16 21:58:55 +00:00
moneromooo-monero
50e59cfada
wallet2: reject zero keys in json input
Because the user might do this for reasons unknown.
Values beyond l-1 will be reduced, so are accepted.

Reported by who-biz.
2020-01-16 19:58:21 +00:00
Crypto City
a9b39c68aa game: wip - switch to turbo badger for ui 2020-01-16 13:36:02 +00:00
Crypto City
c896aeb2b3 game: fix random flag construction height when selling items 2020-01-16 13:32:56 +00:00
Crypto City
5376ff9fce game: fix inventory/budget selection 2020-01-15 21:53:27 +00:00
Crypto City
524f5f51f9 game: add flag info / last update events again 2020-01-15 21:10:44 +00:00
Crypto City
3cbf53cf13 game: make the main command window shadable 2020-01-15 21:03:33 +00:00
Crypto City
fbbd2e56d1 game: disable wallet widgets when no wallet is loaded 2020-01-15 19:31:53 +00:00
Crypto City
4688a3ba9e game: keep console the width of the screen 2020-01-15 19:31:35 +00:00
Crypto City
f438bd2866 game: fix flag display mode at startup 2020-01-15 18:35:06 +00:00
Crypto City
9c26e18e80 game: wip - switch to turbo badger for ui 2020-01-15 18:20:45 +00:00
Crypto City
af6405909b game: fix edit field context menu 2020-01-15 12:36:35 +00:00
Crypto City
ce43aecf41 game: move the commands window on resize if flush right or bottom 2020-01-15 11:36:07 +00:00
Crypto City
c6e3d0994f game: wip - switch to turbo badger for ui 2020-01-15 02:32:08 +00:00
Crypto City
a6d47c4c4a game: wip - switch to turbo badger for ui 2020-01-15 01:30:50 +00:00
xiphon
ffe7165ebf wallet: reroll fake outs selection on local tx_sanity_check failure 2020-01-14 22:56:23 +00:00
Crypto City
4a32053f66 game: wip - switch to turbo badger for ui 2020-01-13 21:55:23 +00:00
Crypto City
0465ed3b96 game: wip - switch to turbo badger for ui 2020-01-13 18:49:18 +00:00
Crypto City
06c92d3cec game: wip - switch to turbo badger for ui 2020-01-13 03:34:14 +00:00
Alexander Blair
e49a055e89
Merge pull request #6112
7c1d31b0 build: fix IOS, build blockchain_db and rpc, skip wallet_rpc_server (xiphon)
2020-01-11 18:10:44 -08:00
Alexander Blair
d024695772
Merge pull request #6105
0de8a0d3 wallet_rpc_server: new estimate_tx_size_and_weight RPC (moneromooo-monero)
2020-01-11 18:04:49 -08:00
Tadeas Moravec
096a9dbdf9
Wallet: Distingush amounts for a single subaddress
Adding a new `amounts` field ot the output of `get_transfers` RPC
method. This field specifies individual payments made to a single
subaddress in a single transaction, e.g., made by this command:

    transfer <addr1> <amount1> <addr1> <amount2>
2020-01-11 11:48:27 +01:00
Crypto City
88ea3cf8c6 game: player info window skeleton 2020-01-10 22:22:25 +00:00
Crypto City
6ce02621bc cc: make the labour cost function a bit less jaggy 2020-01-10 18:03:44 +00:00
Crypto City
14097fdc9f wallet: don't init the bitmessage socket before use
It saves having to create a SSL key that won't be used
2020-01-10 17:05:08 +00:00
Crypto City
b857530615 game: fancy clouds 2020-01-10 17:05:08 +00:00
rbrunner7
664720747f Daemon: Guard against reporting "synchronized" too early
The added condition "hshd.current_height >= target" guards against
reporting "synchronized" too early in the special situation that the
very first peer sending us data is synced to a lower height than
ourselves.
2020-01-10 15:49:49 +01:00
moneromooo-monero
0349347e6d
ringdb: use a different iv for key and data in rings table
This is technically a record encrypted in two pieces,
so the iv needs to be different.
Some backward compatibility is added to read data written
by existing code, but new data is written with the new code.
2020-01-09 17:32:21 +00:00
moneromooo-monero
7b88208722
simplewallet: reword mixin in user message in terms of ring size 2020-01-09 17:32:21 +00:00
moneromooo-monero
f507a43a23
wallet2: do not remove known rings when a tx fails
Even if it fails, the ring composition is known to a potential
adversary, and so we should reuse the same ring next time
2020-01-09 17:32:21 +00:00
UkoeHB
02224e714d Fix check_fee() discrepancy.
M100 = max{300kb, min{100block_median, m_long_term_effective_median_block_weight}}
not
M100 = max{300kb, m_long_term_effective_median_block_weight}

Fix base reward in get_dynamic_base_fee_estimate().

get_dynamic_base_fee_estimate() should match check_fee()

Fee is calculated based on block reward, and the reward penalty takes into account 0.5*max_block_weight (both before and after HF_VERSION_EFFECTIVE_SHORT_TERM_MEDIAN_IN_PENALTY).

Moved median calculation according to best practice of 'keep definitions close to where they are used'.
2020-01-09 09:11:09 -06:00
Crypto City
289d9c134b cc: fix "cleanup" with tiny amount of basic, no medium, and some high 2020-01-08 00:13:46 +00:00
Crypto City
302aade6cb cc: tweak requirements/cost/production
Scale all requirements up by 8 times, so small flags have enough
blocks to build something. Larger ones will have too many, but
we don't care since they don't have to use a minimum anymore.
Tweak sawmill/stonecutter so they still get some profit with
those new numbers
2020-01-08 00:07:02 +00:00
moneromooo-monero
a84131cea3
p2p: fix off by one adding fallback peers
The code would ignore the first one to be added
2020-01-07 14:40:26 +00:00
Crypto City
9e0202913f game: fix race on new wallets 2020-01-07 13:41:23 +00:00
Crypto City
38c3352f6c game: simplify inventory code
Don't add 2048 list items, most of them hidden, get rid of
the index-to-item map, don't recreate the list unless changed
2020-01-06 21:42:55 +00:00
Crypto City
feb843c742 rpc: change items from uint32_t[NUM_ITEMS] to std::vector<{uint32_t, uint32_t}> 2020-01-06 21:40:39 +00:00
Crypto City
aef68e112c game: add stroke effect to the spector mode text
It makes the text readable when on bright daylight sky background
2020-01-06 12:44:11 +00:00
Crypto City
f258baa705 game: fix face orientations in new instanced quads render mode
They did not match the other modes
2020-01-06 12:44:11 +00:00
Crypto City
dbedf8df2d game: don't drop to per-cube rendering when a building isn't ours 2020-01-06 12:44:11 +00:00
Crypto City
6eee3091fb game: improve procsky (and enable it by default) and lighting
Procsky is now updated only when needed, removing the performance hit

A nighttime camera light is now added, and interpolates with the
sun light at dawn and dusk
2020-01-06 12:44:11 +00:00
Crypto City
0e8efe7976 game: add some shadow bias to fix some nasty artifacts 2020-01-04 23:24:45 +00:00
Crypto City
1734a6219c game: keep settings in a config file 2020-01-04 20:21:23 +00:00
Crypto City
5822dfd221 game: update labour when processing build commands 2020-01-04 14:49:36 +00:00
Crypto City
39a3fbec66 game: fix missing polygons on large meshes in optimized mesh render mode 2020-01-04 14:27:40 +00:00
Crypto City
e9afc00504 core: add txes to the txpool in parentage order 2020-01-04 13:51:23 +00:00
Crypto City
0c732485be game: prevent loading a model on flag without a building we own 2020-01-04 13:51:23 +00:00
Crypto City
4b5e70d283 tx_pool: add some debug logs on ready checks 2020-01-04 13:51:23 +00:00
Crypto City
055457ec67 cc: fix one CHECK_AND_ASSERT_MES to CHECK_COMMAND_SET 2020-01-04 13:51:23 +00:00
Crypto City
f77ff2201f game: new render mode using StaticModelGroup and instancing 2020-01-04 13:51:23 +00:00
Crypto City
5f40893ef7 game: fix node leak when changing render mode 2020-01-03 22:17:12 +00:00
Crypto City
f8f8035a1d db_lmdb: store accounts flags in canonical sorted order 2020-01-03 20:30:51 +00:00
moneromooo-monero
36bdf40288
p2p: fix adding wrong indices to the filtered peer list 2020-01-03 17:56:54 +00:00
Crypto City
559c5f7b2e fix issues with game update event cache and tests 2020-01-03 16:27:51 +00:00
Crypto City
1d8d178f36 blockchain: constrain the large coinbase tx allowance conditions 2020-01-03 15:23:14 +00:00
Crypto City
0df1c4eb7e game: only display the side of the frame quad if large enough 2020-01-02 22:51:35 +00:00
Crypto City
17a9eac108 game: add options for shadows and procsky 2020-01-02 21:55:32 +00:00
Crypto City
765e4bd709 game: disable smiley/clear buttons in spectator mode 2020-01-02 19:32:33 +00:00
Crypto City
b6dbec2347 game: don't crash when failing to load a wallet 2020-01-02 19:01:14 +00:00
Crypto City
45a2130be1 game: disable console input in spectator mode 2020-01-02 18:56:53 +00:00
Crypto City
a2d2598dc6 game: make the "load a wallet" button in spectator mode look better 2020-01-02 16:44:07 +00:00
Crypto City
c156b4459a game: highlight the selected item in the trade ui 2020-01-02 16:29:52 +00:00
Crypto City
3ac2fbffc8 game: always select an item by default in the trade ui 2020-01-02 16:10:40 +00:00
Crypto City
bac1eb6f47 game: display flag boundary rather than full area 2020-01-02 15:21:56 +00:00
Crypto City
8404b02301 miner: mine in verification mode when on low difficulty 2020-01-02 10:24:31 +00:00
Crypto City
c8c048f300 game: add activation notification when setting a building settings 2020-01-02 10:18:23 +00:00
Crypto City
a4986e988f game: clear screen even earlier at startup 2020-01-02 09:54:24 +00:00
Crypto City
051bc8bc08 game: draw a single quad for the flag base 2020-01-02 09:51:56 +00:00
Crypto City
d41a7a753c game: move the custom mesh creation to a separate routine
It will be reused
2020-01-02 09:51:52 +00:00
Crypto City
e75a4803d3 game: splashscreen instead of whatever was in video RAM at the time 2020-01-02 00:05:14 +00:00
Crypto City
f2086cc7a1 game: initialize UI earlier 2020-01-01 21:33:46 +00:00
Crypto City
f7fc704b5c game: add a "spectator mode" text and load button when in spectator mode 2020-01-01 21:28:18 +00:00
Crypto City
87085a9538 game: add spectator mode
A player without an account can now look around the game,
just not alter it
2020-01-01 20:42:14 +00:00
Crypto City
36fe5f9cc5 cc: fix FlagState leak 2020-01-01 18:04:34 +00:00
Crypto City
4f1d3acc70 cc: add a game update cache 2020-01-01 16:53:02 +00:00
Crypto City
c13754532c Remove the unused "commit" version of game update creation 2020-01-01 16:33:15 +00:00
Crypto City
7e4fe631d5 allow large game update commands 2020-01-01 15:14:16 +00:00
Crypto City
debcea9769 cc: fix building name being lost on game update revert 2020-01-01 15:12:48 +00:00
Crypto City
18696fe6a1 include construction height in flag trade commands
This prevents someone from demolishing their building and selling
the now empty land to a waiting buyer
2019-12-31 11:16:38 +00:00
moneromooo-monero
7566d1d274 wallet: fix exceptions getting the hash of a pruned tx 2019-12-31 10:21:07 +00:00
Crypto City
eb494c526b cc: fix cumulative influence using the wrong flag's side for rounding 2019-12-31 10:19:13 +00:00
Crypto City
93743aa560 game: fix adding/removing blocks in a selection that spans flags 2019-12-31 10:19:13 +00:00
moneromooo-monero
d64e5aa719
wallet: allow message sign/verify for subaddresses 2019-12-31 08:44:36 +00:00
Crypto City
ab653343d6 game: fix leaking/duplicate flag quads 2019-12-30 22:38:18 +00:00
Crypto City
48082c41e9 game: select currently selected flag in trade ui, if any 2019-12-30 22:38:18 +00:00
Crypto City
868b8e3e2f game: add flags to trade ui 2019-12-30 22:38:18 +00:00
Crypto City
4a8aa3db2f game: pre-fill price/amount when clicking on an order 2019-12-30 22:38:18 +00:00
Crypto City
a1734a9935 game: bump trade ui price column widget width 2019-12-30 22:38:17 +00:00
Crypto City
b98aa4aaad game: better market selection 2019-12-30 22:38:17 +00:00
Crypto City
6818ef511f game: display potential as "-" when it doesn't apply 2019-12-30 22:38:17 +00:00
Crypto City
217166bcab game: add a resizing widget to the chat 2019-12-30 22:38:17 +00:00
Crypto City
c3e0f43f72 cc: make patent time per discovery 2019-12-30 22:38:17 +00:00
moneromooo-monero
a6c24412e5
wallet: fix exceptions getting the hash of a pruned tx 2019-12-30 15:14:57 +00:00
Crypto City
a31eaa1e55 simplewallet: don't print spent/received game money when locked 2019-12-29 18:47:18 +00:00
Crypto City
fe31868d7f game: fix horizontal scrollbar in chat 2019-12-29 18:41:18 +00:00
Crypto City
290067e908 game: don't print influence or potential when they don't apply 2019-12-29 17:51:02 +00:00
Crypto City
44ff248f19 game: add existing building name in building settings dialog 2019-12-29 17:50:40 +00:00
Crypto City
51469f08a8 cc: change research influence
Due to the way the research command works, we can't easily
determine "shares" for a research building, so instead we
make the research building influence others
2019-12-29 17:50:26 +00:00
Crypto City
883096ea25 cc: fix research bonus not taking height/EP into account
and grows in power of 1.5 to encourage large buildings (campuses)
2019-12-28 17:09:35 +00:00
Crypto City
cc2d565657 cc: fix research money not going back to treasury 2019-12-28 17:09:14 +00:00
Crypto City
2e136c18c4 replace more arrays of NUM_ITEMS by a std::map 2019-12-28 16:33:17 +00:00
Crypto City
bdbc367c8e keep track of building age 2019-12-28 16:33:17 +00:00
Crypto City
87122879af tx_pool: always send receive time for chat game txes 2019-12-27 19:23:33 +00:00
Crypto City
d740c0900a game: remove budget activation threshold when unused 2019-12-27 19:02:45 +00:00
Crypto City
fdac2c3917 game: announce discoveries in chat 2019-12-27 18:58:30 +00:00
Crypto City
c5583c224f more research tweaking 2019-12-27 17:37:46 +00:00
Crypto City
0d0ac253b9 make budget count against research difficulty decrease instead 2019-12-27 13:52:38 +00:00
Crypto City
24a9685e57 game: hide locked and discovered discoveries by default 2019-12-27 03:08:55 +00:00
Crypto City
c4d88a0996 cc: add a couple more discoveries 2019-12-27 02:24:49 +00:00
Crypto City
94c605528c cc: do not count existing budget for chance to discover
turns out this is the best in practice
2019-12-27 01:52:36 +00:00
Crypto City
bc78dfe75c cc: fix bug hashing research outcome 2019-12-27 01:51:08 +00:00
Crypto City
dbfac813e3 add some research/discoveries tests 2019-12-27 01:51:08 +00:00
Crypto City
d1f8d2c717 game: improve research UI
Prediction of chance of discovery from amount paid, colouring,
hide widgets if a discovery is not currently researchable
2019-12-26 18:03:59 +00:00
Crypto City
241a60c1ee game: swap buy and sell widgets around, it feels more natural 2019-12-26 16:49:13 +00:00
Crypto City
f81c8203aa game: add in chat game notifications
So far, only used for new buildings
2019-12-26 16:26:55 +00:00
Crypto City
22a59fb069 cc: add a few more discoveries 2019-12-26 16:26:55 +00:00
Crypto City
2f33a4a4f4 game: add research UI 2019-12-26 16:23:16 +00:00
Crypto City
54c462ed22 change item balances from uint32_t[NUM_ITEMS] to std::map<uint32, uint32>
We have a lot more item space now, and a lot of it is sparse
2019-12-26 16:23:16 +00:00
Crypto City
4fc5db3f78 small research fixes and factor some code 2019-12-25 23:19:02 +00:00
Crypto City
1076fe952b cc: add research buildings 2019-12-25 22:29:52 +00:00
Crypto City
ccb71779c6 game: fix buying from the last resort seller from the trade ui 2019-12-25 22:29:36 +00:00
Crypto City
86a1517139 Discoveries and research 2019-12-25 20:36:51 +00:00
Crypto City
33d04dff63 cc: fix defaulting on buildings not clearing flags from accounts 2019-12-24 19:16:25 +00:00
Crypto City
73af7e4905 game: add matching and expiration to the trade UI 2019-12-24 18:42:13 +00:00
Crypto City
1cc85512c3 game: fix type mismatch 2019-12-24 18:11:08 +00:00
Crypto City
fd7ad43a88 game: trade UI (no matching yet) 2019-12-24 13:42:41 +00:00
Crypto City
d3981da708 cc: fix item balance check not setting the detail flag 2019-12-24 13:42:31 +00:00
Crypto City
3ce82a8424 game: update blur sizes on window resize 2019-12-23 21:50:29 +00:00
Crypto City
2069249b41 game: speed up default rendering case
Disable glow effect when it's used for anything
2019-12-23 21:32:22 +00:00
Crypto City
20ce5ae867 game: fix new/glow effect missing 2019-12-23 21:29:56 +00:00
Crypto City
3dba400994 cc: cleanup tiny block amounts in requirements 2019-12-23 19:14:52 +00:00
Crypto City
6f5e74503f cc: more tweaks and payout fixes 2019-12-23 18:12:06 +00:00
Crypto City
90d31182b4 more road and influence tweaks 2019-12-23 13:32:49 +00:00
Crypto City
0b870194dc cc: make land cost proportional to tiles (with some skew penalty) 2019-12-23 01:49:10 +00:00
Crypto City
d3b1cb3334 cc: slash all costs by 10 2019-12-23 00:57:12 +00:00
Crypto City
85485b6ebc cc: tweak RES requirements 2019-12-23 00:38:25 +00:00
Crypto City
4a63f50420 only consider active buildings for road bonus/shares calc 2019-12-23 00:05:54 +00:00
Crypto City
94dd8fb8d3 cc: fix shares and activation in game update 2019-12-22 20:11:42 +00:00
Crypto City
5fc8c98a20 tweak road bonus for residential flags based on north/south 2019-12-22 15:51:03 +00:00
Crypto City
40801f4f33 custom repair print function
to avoid relying on floats
2019-12-22 14:06:29 +00:00
Crypto City
9475f232ba cc: some more tweaking 2019-12-21 23:42:08 +00:00
Crypto City
dedcfa08e5 cc: make the agricultural min size smaller 2019-12-21 17:56:58 +00:00
Crypto City
ab39221a5e Add minimum sizes for certain roles/economic power combinations 2019-12-21 17:56:58 +00:00
Crypto City
1c3e744cb3 game: fix tile changing before all build txes are emitted 2019-12-21 17:56:58 +00:00
Crypto City
46ff4e2d31 cc: fix min/max trade expiration to match block target change 2019-12-21 17:56:58 +00:00
Crypto City
b98b8bf5b2 some more road tweaking 2019-12-21 17:56:58 +00:00
Crypto City
28d92dacfa cc: fix removing update events from the wrong height on revert 2019-12-21 17:56:58 +00:00
Crypto City
4417e82007 game: fix loop back to end on previous button in update events dialog 2019-12-21 17:56:58 +00:00
Crypto City
51d6704a08 cc: connection_squares now also returns direction
of the first building compared to the second building
2019-12-21 17:56:58 +00:00
Crypto City
56e71876a1 cc: take into account amount of road space leading to a building 2019-12-21 17:56:58 +00:00
Crypto City
b9146035de cc: add adjecent squares calc
I'm sure it'll come handy soon
2019-12-21 17:56:58 +00:00
Crypto City
a6b50d309c road tweaks 2019-12-21 17:56:58 +00:00
Crypto City
22285d7b70 Roads 2019-12-21 17:56:58 +00:00
moneromooo-monero
6933693179
rpc: fill miner_tx_hash again
It was removed to save duplicated generation time, but it can
be copied from another instance instead
2019-12-20 14:16:31 +00:00
Crypto City
976dec8ded game: print building role if unnamed in events dialog 2019-12-19 00:58:29 +00:00
Crypto City
ed7e28d13d game: fix off by one 2019-12-18 21:24:59 +00:00
Crypto City
d46b622f65 game: allow empty role in building settings for empty building
also select the current role by default
2019-12-18 21:22:06 +00:00
Crypto City
f48ea3fefd game: fix buffer overflow 2019-12-18 21:15:39 +00:00
Crypto City
a585369ab1 game: make shares 64 bits in a place where they were still 32 bits 2019-12-18 01:04:27 +00:00
moneromooo-monero
21c3d42eb9
p2p: drop the peerlist dump to TRACE
It's spammy
2019-12-17 20:27:04 +00:00
Crypto City
2cc1144b19 cc: slowly increase land tax with distance from the town center 2019-12-17 13:56:16 +00:00
Crypto City
89b1c6c0d8 cc: tweak workforce generator a bit and fix its money sink 2019-12-17 13:56:15 +00:00
Crypto City
8a41742521 cc, game: disable some items and roles
They'll be game upgrades
2019-12-17 13:56:15 +00:00
Crypto City
7eeaa75acd cc: disable BUILD_RATIO_ACTIVE_THRESHOLD_PERCENT
It seemed like a good idea to push people to build, but it
might instead push people to build anything quick even if
they don't have a nice idea yet
2019-12-17 13:56:15 +00:00
Crypto City
6fafc90925 game: add building names to the last events dialog 2019-12-17 01:40:31 +00:00
Crypto City
099ddec05f game: move Map to GameState 2019-12-17 01:40:31 +00:00
moneromooo-monero
5f71de2803 wallet2: guard against race with multiple decrypt_keys users
If more than one thread wants to make sure of the spend secret key,
then we decrypt on the first caller and reencrypt on the last caller,
otherwise we could use an invalid secret key.
2019-12-17 01:40:29 +00:00
moneromooo-monero
f717d5936c
wallet2: guard against race with multiple decrypt_keys users
If more than one thread wants to make sure of the spend secret key,
then we decrypt on the first caller and reencrypt on the last caller,
otherwise we could use an invalid secret key.
2019-12-17 01:38:29 +00:00
moneromooo-monero
716012ca3a
rpc: drop the obsolete and wrong "unpruned size" log
Since we now get pruned data in the first place, the "unpruned" data
size will in fact be the pruned data size, leading to confusion
2019-12-16 14:50:07 +00:00
stoffu
ae84ec90c8
wallet-cli/rpc: allow sweep_all to use outputs in all subaddresses within an account 2019-12-16 21:10:11 +09:00
Crypto City
c76b4a210a game: fix free camera not keeping from rolling 2019-12-14 19:26:24 +00:00
Crypto City
56920d6130 game: fix crash removing last block 2019-12-14 19:01:43 +00:00
palomato
bc6d8aa343
Corrected message typo
Message was "peer claims higher version that we think"
Requested change "peer claims higher version than we think"
2019-12-14 13:06:09 -05:00
Crypto City
bbebe773f8 db_lmdb: fix bugs allocating new flags after some were deleted 2019-12-14 16:40:46 +00:00
Crypto City
2fa0400d72 Fixups after monero rebase, and fix tests after other recent changes 2019-12-14 16:40:46 +00:00
moneromooo-monero
5cbb17b946
wallet2: fix hang in wallet refresh
If the hashes received would move the current blockchain past the
stop point, the short history would not be updated, since we do
not expect another loop, but the daemon might return earlier hashes,
causing the end index to not be enough to reach the threshold and
this require another loop, which will download the same hashes and
cause an infinite loop.
2019-12-14 16:24:04 +00:00
moneromooo-monero
8a276451b2
blockchain: fix flushing txes from the txpool 2019-12-14 02:13:39 +00:00
Crypto City
41e339eff1 cc: decrease the one off fee to buy land 2019-12-13 01:33:07 +00:00
Crypto City
cbb7cb02ac game: add a basic "walker" camera
moves at ground level, can climb over one block
2019-12-13 01:33:07 +00:00
Crypto City
6577c31175 game: move camera code in a separate class with a base class 2019-12-13 01:33:07 +00:00
Crypto City
68b220edb7 game: speedup removing nodes 2019-12-13 01:33:07 +00:00
Crypto City
54646f0aeb game: optimized mesh generation 2019-12-13 01:33:07 +00:00
Crypto City
0223c854f8 game: F12 to draw debug geometry 2019-12-13 01:33:07 +00:00
Crypto City
ed8adb98ff game: fix crash switching material before the game is loaded 2019-12-13 01:33:07 +00:00
Crypto City
be772d75ba game: fix world tile streaming 2019-12-13 01:33:07 +00:00
Crypto City
a449e9aa33 game: add setting to ignore influence to get a cost/profit estimate 2019-12-13 01:33:07 +00:00
Crypto City
66293b2a88 cc: some more tweaking 2019-12-13 01:33:07 +00:00
Crypto City
a2389a9953 game: fix wood material after addition of more stone 2019-12-13 01:33:06 +00:00
Crypto City
a3ea3dd222 game: fix cursor/block z fighting 2019-12-13 01:33:06 +00:00
Crypto City
87b2d3e165 we can now build below existing blocks 2019-12-13 01:33:06 +00:00
Crypto City
cefe06e359 game: fix block addition to the wrong place 2019-12-13 01:33:06 +00:00
Crypto City
d2cfa670e0 game: fix error when removing a block where none exists 2019-12-13 01:33:06 +00:00
Crypto City
818d564719 game: better picking, and highlight selected tile too 2019-12-13 01:33:06 +00:00
Crypto City
5cc149c89f tests: fix tests after recent emission changes 2019-12-13 01:33:06 +00:00
Crypto City
11cf7f532b new demolish command
Recovers 20% of the flag budget, and the flag may now be reused
for another building role
2019-12-13 01:33:06 +00:00
Crypto City
b52d1cd974 game: fix theoretical loop bug 2019-12-13 01:32:49 +00:00
Crypto City
17b0ead854 game: estimate payouts for the first building of its type 2019-12-13 01:32:49 +00:00
Crypto City
019625c127 cc: some more tweaking 2019-12-13 01:32:49 +00:00
Crypto City
52deff213b game: add a scale field to the user guide prices 2019-12-13 01:32:49 +00:00
Crypto City
56a6b57d4b game: fix missing balance at start before a new block 2019-12-13 01:32:49 +00:00
Crypto City
2e105eef4b simplewallet: in-game balance change message wording and typo 2019-12-13 01:32:49 +00:00
Crypto City
18ca20333a game: add flag size in building settings dialog 2019-12-13 01:32:49 +00:00
Crypto City
349ddcb8b2 change emission parameters
1 minute target
raise tail emission
decrease the number of decimals to 8
4 game updates per day
2019-12-13 01:32:49 +00:00
Crypto City
003f4b85ae cc: some more tweaking 2019-12-13 01:32:49 +00:00
Crypto City
fef8f8fee6 game: add user selectable prices for profit/loss estimation 2019-12-13 01:32:49 +00:00
Crypto City
e48aae2fb3 tmp - log spam 2019-12-13 01:32:49 +00:00
Crypto City
18333fe5dc game: allow building sideways 2019-12-13 01:32:49 +00:00
Crypto City
b185d9127a cc: some more tweaking 2019-12-13 01:32:49 +00:00
Crypto City
238e7b2fff game: add estimated cost/price/profit/loss for generators
in building settings dialog
2019-12-13 01:32:49 +00:00
Crypto City
4a2ce9af1e ensure shares for non-earning buildings are 0 2019-12-13 01:32:49 +00:00
Crypto City
e8578103fa cc: some more tweaking 2019-12-13 01:32:49 +00:00
Crypto City
7e02bf3023 cc: double influence 2019-12-13 01:32:49 +00:00
Crypto City
4289fb6549 cc: add a comment about staff cost accounting where it's confusing 2019-12-13 01:32:49 +00:00
Crypto City
9c92a14a4d wallet: add chat RPC 2019-12-13 01:32:49 +00:00
Crypto City
d54f907d43 add game subsidy 2019-12-13 01:32:49 +00:00
Crypto City
893dc067a6 blockchain_db: fix built tiles counting 2019-12-13 01:31:56 +00:00
Crypto City
2041f2e4f0 rework production/requirements some
Will need more
2019-12-13 01:31:56 +00:00
moneromooo-monero
618338363a protocol: request txpool contents when synced
A newly synced Alice sends a (typically quite small) list of
txids in the local tpxool to a random peer Bob, who then uses
the existing tx relay system to send Alice any tx in his txpool
which is not in the list Alice sent
2019-12-13 01:31:56 +00:00
Crypto City
b80c323d42 remove some obsolete code 2019-12-13 01:31:25 +00:00
Crypto City
d0e49f833e game: chat display tweaks 2019-12-13 01:31:25 +00:00
Crypto City
c9c705f74e fix time drift causing missing chat lines 2019-12-13 01:31:25 +00:00
Crypto City
ed69abc73d game: don't try to send chat lines if there's no wallet 2019-12-13 01:31:25 +00:00
Crypto City
d49840000b game: make the console easier to snap to the end 2019-12-13 01:31:25 +00:00
moneromooo-monero
4fa9fc1070 rpc: add received_timestamp for pool txes in gettransactions 2019-12-13 01:31:25 +00:00
Crypto City
108234ea0d game: remember chat color in wallet attributes 2019-12-13 01:31:25 +00:00
Crypto City
c529d0e1dd game: display exception message when failing to load wallet 2019-12-13 01:31:25 +00:00
Crypto City
1c43243154 game: add chat button 2019-12-13 01:31:25 +00:00
Crypto City
0ab0f8d687 game: chat improvements: smileys, colors 2019-12-13 01:31:25 +00:00
Crypto City
d13a6ef700 game: add C hotkey for chat 2019-12-13 01:31:25 +00:00
Crypto City
6eecbf3f74 game: make the prefix style configurable 2019-12-13 01:31:25 +00:00
Crypto City
c1d07b7c42 p2p: fix connection to single seed network 2019-12-13 01:31:25 +00:00
Crypto City
dc612482eb cc: don't error when getting potential for a role with no potential
This will happen a lot since all flag types get potential,
it'll just be 0
2019-12-13 01:31:25 +00:00
Crypto City
80d2269217 player names are now unique and format restricted 2019-12-13 01:31:25 +00:00
Crypto City
6a4b803920 game: improve chat UI
Display /me lines in italic, and display timestamps in smaller font
2019-12-13 01:31:25 +00:00
Crypto City
ff42976c39 wallet_rpc_server: add cc_repair wallet RPC 2019-12-13 01:31:25 +00:00
Crypto City
84f16018d8 wallet_rpc_server: add cc_rename_flag wallet RPC 2019-12-13 01:31:25 +00:00
Crypto City
ecc038155a wallet_rpc_server: add new name field to building_settings 2019-12-13 01:31:25 +00:00
Crypto City
06401c86be game: save wallet cache on exit 2019-12-13 01:31:25 +00:00
Crypto City
da8a630d7f game: fix logic to get a new snapshot based on received blocks 2019-12-13 01:31:25 +00:00
Crypto City
d0915ab55e wallet2: add on_reorg callback 2019-12-13 01:31:25 +00:00
Crypto City
9de3148dd9 Add in-game chat through non-mineable txpool transactions 2019-12-13 01:31:25 +00:00
Crypto City
bcfa9ac956 cryptonote: fix prunable hash calculation 2019-12-13 01:31:25 +00:00
Crypto City
84d87d51a2 wallet2: fix cc_nonce not being serialized in pending_tx 2019-12-13 01:31:25 +00:00
Crypto City
629fcd44da game: add a console
Not the builtin one, since it's has builtin behaviour I don't want
and I'll need to extend this one
2019-12-13 01:31:25 +00:00
Crypto City
a762173511 game: add model export to Magical voxel format 2019-12-13 01:31:25 +00:00
Crypto City
87a2ab33de game: add save api (not used yet) 2019-12-13 01:31:25 +00:00
Crypto City
a0b6135cc9 game: don't display a dialog when trying to remove a block already on chain
It is aggravating
2019-12-13 01:31:25 +00:00
Crypto City
998730ef6e game: disable buy button when there is no selection 2019-12-13 01:31:25 +00:00
Crypto City
585b7c806d cc: tax empty land the same as a min level building 2019-12-13 01:31:25 +00:00
Crypto City
9770001686 Cities can now have a name 2019-12-13 01:31:25 +00:00
Crypto City
f0d7b3a8c4 game: use a 5x5 section setup from a 3x3 2019-12-13 01:31:25 +00:00
Crypto City
d7063d99d8 flags (with a building) can now be named and renamed 2019-12-13 01:31:25 +00:00
Crypto City
6b6ce844a3 game: don't display uninitialized timestamps in events window 2019-12-13 01:31:25 +00:00
Crypto City
5127173182 game: the events viewer can now explore history 2019-12-13 01:31:25 +00:00
Crypto City
5922cdad67 better player name lookup in game
Automatic lookup, and snapshots include the current set
2019-12-13 01:31:25 +00:00
Crypto City
cf0aca6c9b game: display owner name in flag window 2019-12-13 01:31:25 +00:00
Crypto City
d781e35365 game: display flags with the same colour if they have the same owner 2019-12-13 01:31:25 +00:00
Crypto City
761d212b53 cc: save events to the db
This makes them retrievable from a snapshot, after a restart,
and after a reorg that crosses a game update
2019-12-13 01:31:25 +00:00
Crypto City
b89e696a80 flag 0 is now invalid
makes it possible to have a "no flag applies" semantic
2019-12-13 01:31:25 +00:00
Crypto City
8f613351ec daemon: print cc command type in print_pool_sh 2019-12-13 01:31:25 +00:00
Crypto City
3e41959825 players can now select a name when creating an account 2019-12-13 01:31:25 +00:00
moneromooo-monero
fe48fe2790 core_tests: reset thread pool between tests
Avoids a DB error (leading to an assert) where a thread uses
a read txn previously created with an environment that was
since closed and reopened. While this usually works since
BlockchainLMDB renews txns if it detects the environment has
changed, this will not work if objects end up being allocated
at the same address as the previous instance, leading to stale
data usage.

Thanks hyc for the LMDB debugging.
2019-12-13 01:31:04 +00:00
Crypto City
be0ebbe148 fix fresh clone build 2019-12-13 01:31:04 +00:00
Crypto City
6b7bb1493b cc: repair command now takes a delta repair
rather than a from/to pair, which avoids it getting invalid if
a game update occurs before it gets mined
2019-12-13 01:31:04 +00:00
Crypto City
fd45f4bce9 game: note when building settings costs are over player inventory 2019-12-13 01:31:04 +00:00
Crypto City
c9616f7f83 better error reporting when submitting invalid commands 2019-12-13 01:31:04 +00:00
Crypto City
8261e1f03c game: disable building settings OK button on invalid configuration 2019-12-13 01:30:29 +00:00
Crypto City
d5f371143c game: pass resource flags upstream and include them in command 2019-12-13 01:30:29 +00:00
Crypto City
79b4718b07 game: show extra labour in building settings dialog 2019-12-13 01:30:29 +00:00
Crypto City
6f24dc5dc7 game: fix estimated land tax in building settings window 2019-12-13 01:30:29 +00:00
Crypto City
b2a77a2b39 cc: building settings costs more labour with distance to generators 2019-12-13 01:30:29 +00:00
Crypto City
f6e2faeeb7 wallet_rpc_server: add parent to build command 2019-12-13 01:30:28 +00:00
Crypto City
9853c226ef wallet_rpc_server: add resource_flags to building_settings request 2019-12-13 01:30:28 +00:00
Crypto City
3543d06137 rpc: return influence in cc_get_flag response 2019-12-13 01:30:28 +00:00
Crypto City
b2ce755525 cc: fix get_distance, and add unit tests 2019-12-13 01:30:28 +00:00
Crypto City
1d765e5689 cc: remove leftover debug trace 2019-12-13 01:30:28 +00:00
Crypto City
a3f97c26ec wallet_rpc_server: return command nonce in build command 2019-12-13 01:30:28 +00:00
Crypto City
1570a58471 db_lmdb: set economic power to 0 for new land (before any building) 2019-12-13 01:30:28 +00:00
Crypto City
ddb878c0b0 rpc: serialize missing field in cc_get_flag response 2019-12-13 01:30:28 +00:00
Crypto City
ed4ccaa3cf wallet: remove unused budget field in building_settings response 2019-12-13 01:30:28 +00:00
Crypto City
1caeafccb6 cc: fix game update revert reverting wrong items 2019-12-13 01:30:28 +00:00
Crypto City
cd10f8d974 p2p: add seed node 2019-12-13 01:28:54 +00:00
Crypto City
ac22b43e79 blockchain: fix get_output_distribution assuming monero forks 2019-12-13 01:28:54 +00:00
Crypto City
67946e117e cc: clear last events when reverting a game update command 2019-12-13 01:28:54 +00:00
Crypto City
95a9010a3a game: enable/disable buttons depending on current state 2019-12-13 01:28:54 +00:00
Crypto City
bedf6e19b1 simplewallet: replace cow with cubes on lock screen 2019-12-13 01:28:54 +00:00
Crypto City
d1d5226922 game: display a "loading wallet" notification when starting loading 2019-12-13 01:28:54 +00:00
Crypto City
dc5df6bba9 game: keep budget unchanged if there is not enough to build 2019-12-13 01:28:54 +00:00
Crypto City
c9c91ccb08 cc: add staff (extra payments per building count)
to incentivize richer people towards larger buildings rather
than many small ones
2019-12-13 01:28:54 +00:00
Crypto City
1bc506271e blockchain: fix crash in init 2019-12-13 01:28:54 +00:00
Crypto City
25cb8145fe game: fix inconsistent escape behaviour 2019-12-13 01:28:54 +00:00
Crypto City
341ed8ed53 rejig repair a bit
Repair is now 0 before anything is built, and goes to 100% when
building. This makes it easier when building anew after a building
got destroyed due to decay
2019-12-13 01:28:54 +00:00
Crypto City
79348ffb50 cc: don't add 0 land tax events 2019-12-13 01:28:21 +00:00
Crypto City
dfd37c7bf5 game: add mouse/key based building
z to place a block where the mouse points
x to remove a block where the mouse points
tab to cycle through block types
2019-12-13 01:28:21 +00:00
Crypto City
f2f92e924e game: auto select next item type when adding a row in item select dialog 2019-12-13 01:28:21 +00:00
Crypto City
de89dfa53b game: fix double counting of blocks when building 2019-12-13 01:28:21 +00:00
Crypto City
836b362159 fix reverting buy_land after trading flags 2019-12-13 01:28:21 +00:00
Crypto City
70b4a8f594 Fixes after rebasing onto latest monero 2019-12-13 01:27:46 +00:00
Crypto City
63b26444bb wallet: add assign_items RPC command 2019-12-13 01:26:54 +00:00
Crypto City
210882c66f remove tile data and set repair to 0 for derelict buildings 2019-12-13 01:26:54 +00:00
Crypto City
8fae545324 simplewallet: fix prospective balance reporting for create_account 2019-12-13 01:26:54 +00:00
Crypto City
5ed672eff3 rpc: fix pop_blocks not returning an error on error 2019-12-13 01:26:54 +00:00
Crypto City
302bcbef8f cc: add paranoid static assert about MIN_BUY_SIDE_SIZE 2019-12-13 01:26:54 +00:00
Crypto City
3b479592a8 db_lmdb: fix flag tile deletion 2019-12-13 01:26:54 +00:00
Crypto City
fd3b33d1d9 cc: fix stray db writes 2019-12-13 01:26:54 +00:00
Crypto City
94d28268f8 rpc: add optional cc_fee in get_transactions response 2019-12-13 01:26:54 +00:00
Crypto City
4d2bfe56f6 db_lmdb: don't move leftover balance to treasury on account deletion
It breaks reorgs
2019-12-13 01:26:05 +00:00
Crypto City
cfa02b4775 cc: fix stonecutter producing wood, not stone 2019-12-13 01:26:05 +00:00
Crypto City
21924d6aa9 cc: include bonus/penalty in game events 2019-12-13 01:26:05 +00:00
Crypto City
0aa4a74cd7 cc: tone down inactivity decay boost a bit 2019-12-13 01:26:05 +00:00
Crypto City
62263ec477 game: mention clicking on inventory when starting building 2019-12-13 01:26:05 +00:00
Crypto City
93de644e29 game: fix material selection for blocks only 2019-12-13 01:26:05 +00:00
Crypto City
3c1a2fcf39 game: some last update events dialog cosmetics 2019-12-13 01:26:05 +00:00
Crypto City
6b89692a82 game: make item buy dialog more forgiving
Merge duplicates and ignore empty fields
2019-12-13 01:26:05 +00:00
Crypto City
97cc397371 game: fix activation budget using the remaining budget 2019-12-13 01:26:05 +00:00
Crypto City
424143aa6d cc: fix item delta decoding 2019-12-13 01:26:05 +00:00
Crypto City
94737a7cff game: add notification when selecting materials 2019-12-13 01:26:05 +00:00
Crypto City
4a8c0cd031 game: add "activation budget use" to the flag window 2019-12-13 01:26:05 +00:00
Crypto City
897624f12a game: "pin" flag window when there is a selection 2019-12-13 01:26:05 +00:00
Crypto City
199fb76c3c game: UI for last update events 2019-12-13 01:26:05 +00:00
Crypto City
f26920e64e fix shares not being serialized in game update 2019-12-13 01:26:05 +00:00
Crypto City
4d5c6530be cc: fix game handler check mixing balance and items 2019-12-13 01:26:05 +00:00
Crypto City
71b1cd6fc8 game: remove leftover debug print 2019-12-13 01:26:05 +00:00
Crypto City
cf72522e86 make game update actions retrievable as text 2019-12-13 01:26:05 +00:00
Crypto City
32d7a3523d game: make window resizeable 2019-12-13 01:21:44 +00:00
Crypto City
02607cbc32 blockchain: verify game update command in miner tx 2019-12-13 01:21:44 +00:00
Crypto City
f92bc5e779 building activation requires a thresold of the budget to be used 2019-12-13 01:21:44 +00:00
Crypto City
c1c246b389 cc: make some log a bit more verbose 2019-12-13 01:21:44 +00:00
Crypto City
329ae07c49 blockchain: fix core tests for pre-v12 blocks 2019-12-13 01:21:44 +00:00
Crypto City
84106cbcbe allow 50-1000 economic level (in steps of 50) 2019-12-13 01:21:44 +00:00
Crypto City
e8f0a0c6c6 land tax is now proportional to economic power 2019-12-13 01:21:44 +00:00
Crypto City
4269143cd9 blockchain: allow large blocks, if they're due to the coinbase tx
Game update txes might get large
2019-12-13 01:21:44 +00:00
Crypto City
0b799a2a45 game: fix potential init bug 2019-12-13 01:21:44 +00:00
Crypto City
1824fec36a rework potential maps and add potential for generators 2019-12-13 01:21:44 +00:00
Crypto City
7c2f33c660 game: display "buildable" zone around generators 2019-12-13 01:21:44 +00:00
Crypto City
fd7eea2f4d repair level below 70% affects shares 2019-12-13 01:21:44 +00:00
Crypto City
d9176ad644 add repair command and UI 2019-12-13 01:21:44 +00:00
Crypto City
1d0ec34f78 setting up buildings needs to have relevant generators nearby 2019-12-13 01:21:44 +00:00
Crypto City
e6b2da4bb9 generators basics 2019-12-13 01:21:44 +00:00
Crypto City
136a6f5838 game: fix build materials coming from player rather than budget 2019-12-13 01:21:44 +00:00
Crypto City
c3e5087803 game: add motion speed modifiers, and increase far clip plane/fog 2019-12-13 01:21:44 +00:00
Crypto City
d10437e1ce fix typo 2019-12-13 01:21:44 +00:00
Crypto City
4809c5ed3a game: some ui width tweaks 2019-12-13 01:21:44 +00:00
Crypto City
aac978baa7 more work on influence 2019-12-13 01:21:44 +00:00
Crypto City
3fb509b796 more work in influence 2019-12-13 01:21:44 +00:00
Crypto City
81daa4733d improve snapshot handling 2019-12-13 01:21:44 +00:00
Crypto City
2fc645626a enable procsky and increase far plane 2019-12-13 01:21:44 +00:00
Crypto City
455c859823 new command to assign items to a flag 2019-12-13 01:21:44 +00:00
Crypto City
4e0158c476 fix prev cc_shares record fetching 2019-12-13 01:21:44 +00:00
Crypto City
9ec1540fee game: display treasury balance 2019-12-13 01:21:44 +00:00
Crypto City
5ff843a7a5 functional tests: fix cc tests (adding building settings as a side effect) 2019-12-13 01:21:44 +00:00
Crypto City
a2ff11aee3 rpc: CC locking fix 2019-12-13 01:21:44 +00:00
Crypto City
cd0c10342d game: fix estimate payout in empty world 2019-12-13 01:21:04 +00:00
Crypto City
445d59c650 city support in game update command 2019-12-13 01:21:04 +00:00
Crypto City
7b26b94e56 make shares 64 bit 2019-12-13 01:21:04 +00:00
Crypto City
3a9ce612ff game: display influence radius
also display those overlays with alpha
2019-12-13 01:21:04 +00:00
Crypto City
346f3e9791 game update 2019-12-13 01:21:04 +00:00
Crypto City
818aa814c3 game: get a new snapshot when we get a game update command
These will be complex to get right, so might as well get a new
snapshot. This can change if it proves slow as the world grows.
2019-12-13 01:20:38 +00:00
Crypto City
058e08e025 tweak influence rules 2019-12-13 01:20:38 +00:00
Crypto City
a7fcb2cce8 payouts 2019-12-13 01:20:38 +00:00
Crypto City
96bbe1857c keep land if a building decays to 0 2019-12-13 01:20:38 +00:00
Crypto City
6e8c42868d more work on influence 2019-12-13 01:20:38 +00:00
Crypto City
13f61e7e16 some work on potential 2019-12-13 01:20:38 +00:00
Crypto City
937621b98b add get_cc_agricultural_potential for an area 2019-12-13 01:20:38 +00:00
Crypto City
bfa21bfd15 cc: pass role, not stability, to influence calc 2019-12-13 01:20:37 +00:00
Crypto City
1795477cdd replace monetary cost by labour cost in building 2019-12-13 01:20:37 +00:00
Crypto City
f6dfd72be6 game: rename "Load" button "Import model" 2019-12-13 01:20:37 +00:00
Crypto City
043d41aaa3 game: maintain flag budget when approving/abandoning building 2019-12-13 01:20:37 +00:00
Crypto City
abe4da3167 fixes for labour as item 2019-12-13 01:20:37 +00:00
Crypto City
9b9aed1c56 make blocks and labour items 2019-12-13 01:20:37 +00:00
Crypto City
0a2797fea5 blockchain: remove some obsolete code 2019-12-13 01:20:37 +00:00
Crypto City
f9804e9cd7 game: better building settings UI 2019-12-13 01:20:37 +00:00
Crypto City
3b4bc714b4 game: don't ask for a snapshot multiple times when syncing 2019-12-13 01:20:37 +00:00
Crypto City
ef859fd01b game: enable/disable some buttons based on game state 2019-12-13 01:20:37 +00:00
Crypto City
29a7b2f954 more work on building settings 2019-12-13 01:20:37 +00:00
Crypto City
958e11370a cc: decrease town center stability potential map size 2019-12-13 01:20:37 +00:00
Crypto City
fb318fbf16 building settings 2019-12-13 01:20:37 +00:00
Crypto City
2bdb7be38c add role flag field 2019-12-13 01:20:37 +00:00
Crypto City
9cd6f6fc5c game: add a flag window, with basic flag info 2019-12-13 01:20:37 +00:00
Crypto City
d5b68cd957 game: don't allow buying more than 256x256
It'd end up buying a size modulo 256
2019-12-13 01:20:37 +00:00
Crypto City
4e1b8e14b9 add cc influence building blocks 2019-12-13 01:20:37 +00:00
Crypto City
70179de428 potential maps 2019-12-13 01:20:37 +00:00
Crypto City
8a9b3f0e66 more work on game update 2019-12-13 01:20:37 +00:00
Crypto City
2dbab85c58 quadtree: move to cc, and use std::shared_ptr instead of Urho3D's 2019-12-13 01:20:37 +00:00
Crypto City
3b318b5bf4 more work on trade command 2019-12-13 01:20:37 +00:00
Crypto City
1248fc2dc7 more work on trade command 2019-12-13 01:20:37 +00:00
Crypto City
4d351a682a more work on trade command 2019-12-13 01:20:37 +00:00
Crypto City
50dfea93af game: make the quadtree is a bit more generic 2019-12-13 01:19:10 +00:00
Crypto City
5face5e4c6 more work on trade command - accept only one trade for the same flag 2019-12-13 01:19:10 +00:00
Crypto City
39cfbb1c2d tx_pool: remove obsolete code 2019-12-13 01:19:10 +00:00
Crypto City
d422c248cf cc_command_defs: fix account size, it should be 32 bit 2019-12-13 01:19:10 +00:00
Crypto City
fc3bcb1533 tx_pool: flush txes with unknown parent 2019-12-13 01:19:10 +00:00
Crypto City
ca666fd6ff change display mode to "show/hide flags"
blocks are now always shown
2019-12-13 01:19:10 +00:00
Crypto City
f663f2d2b4 fix build wrt SDL 2019-12-13 01:19:10 +00:00
Crypto City
96cb892a74 more work on trade command 2019-12-13 01:19:10 +00:00
Crypto City
fe42578f44 removing blocks now obeys the fine grained selection 2019-12-13 01:19:10 +00:00
Crypto City
35d1b47607 Fix block caching when popping 2019-12-13 01:19:10 +00:00
Crypto City
8ca411330f game: copy Data/CoreData as game build post step 2019-12-13 01:19:10 +00:00
Crypto City
665d71b1f6 game: flatten all terrain for now 2019-12-13 01:19:10 +00:00
Crypto City
a502fca9b1 include for join 2019-12-13 01:19:10 +00:00
Crypto City
737db2a7e3 add missing file 2019-12-13 01:19:10 +00:00
Crypto City
35a15567fe more work on trade command 2019-12-13 01:19:10 +00:00
Crypto City
303267a975 more work on trade command 2019-12-13 01:19:10 +00:00
Crypto City
2c88df3028 more work on trade command 2019-12-13 01:19:10 +00:00
Crypto City
1979fa16ee more work on trade command 2019-12-13 01:19:10 +00:00
Crypto City
9ab9d4439b more work on trade command 2019-12-13 01:19:10 +00:00
Crypto City
2c4d9aa8ab more work on trade command 2019-12-13 01:19:10 +00:00
Crypto City
0fab3d28a4 wallet_rpc_server: handle unencoded blocks 2019-12-13 01:19:10 +00:00
Crypto City
32f6fe1f8e don't use the wallet keys for CC, but a derived key, for privacy 2019-12-13 01:19:10 +00:00
Crypto City
257c6279fc make create_account not a cc_command_base_t subclass 2019-12-13 01:18:57 +00:00
Crypto City
db46103ddf daemon: print_bc parameter to list only blocks with txes 2019-12-13 01:18:57 +00:00
Crypto City
33b25649ee fix deposit always sending 0 2019-12-13 01:18:57 +00:00
Crypto City
fad8355a7e add functional tests, a few fixes, and a cc_get_info wallet rpc 2019-12-13 01:18:57 +00:00
Crypto City
c37f2bdb10 fix account unset in rpc transfer 2019-12-13 01:18:57 +00:00
Crypto City
b36dba06b3 more work on trade commands 2019-12-13 01:18:57 +00:00
Crypto City
b791566140 trade command, and command overhaul it required 2019-12-13 01:18:19 +00:00
Crypto City
b188f4636d more work on game update command 2019-12-13 01:14:17 +00:00
Crypto City
32b856036e display repair in UI
also remove obsolete buy command in Map
2019-12-13 01:12:39 +00:00
Crypto City
efdeddfaaa add edge selection 2019-12-13 01:12:39 +00:00
Crypto City
408fb7b456 preliminary code to allow game commands in coinbase txes 2019-12-13 01:12:39 +00:00
Crypto City
634e477278 "game" command, for consensus driven changes 2019-12-13 01:12:39 +00:00