2019-01-02 17:23:31 +00:00
|
|
|
[package]
|
2019-01-12 15:57:19 +00:00
|
|
|
name = "veloren-common"
|
2021-06-12 08:14:07 +00:00
|
|
|
version = "0.10.0"
|
2019-08-04 19:54:08 +00:00
|
|
|
authors = ["Joshua Barretto <joshua.s.barretto@gmail.com>", "Maciej Ćwięka <mckol363@gmail.com>", "Imbris <imbrisf@gmail.com>"]
|
2019-01-02 17:23:31 +00:00
|
|
|
edition = "2018"
|
|
|
|
|
2020-01-27 22:41:30 +00:00
|
|
|
[features]
|
|
|
|
no-assets = []
|
2021-06-27 18:34:32 +00:00
|
|
|
hot-reloading = ["common-assets/hot-reloading"]
|
2020-09-29 12:29:18 +00:00
|
|
|
simd = ["vek/platform_intrinsics"]
|
2021-06-07 08:51:38 +00:00
|
|
|
bin_csv = ["ron", "csv", "structopt"]
|
2021-06-08 18:42:51 +00:00
|
|
|
bin_graphviz = ["petgraph"]
|
2021-08-20 19:07:22 +00:00
|
|
|
bin_cmd_doc_gen = []
|
2021-08-27 16:47:34 +00:00
|
|
|
rrt_pathfinding = ["kiddo"]
|
2021-12-06 22:17:20 +00:00
|
|
|
calendar_events = []
|
2020-09-29 12:29:18 +00:00
|
|
|
|
|
|
|
default = ["simd"]
|
2020-01-27 22:41:30 +00:00
|
|
|
|
2019-01-02 17:23:31 +00:00
|
|
|
[dependencies]
|
2021-02-16 23:11:05 +00:00
|
|
|
|
2021-03-08 22:40:02 +00:00
|
|
|
common-base = { package = "veloren-common-base", path = "base" }
|
2021-03-23 09:51:53 +00:00
|
|
|
# inline_tweak = "1.0.8"
|
2021-03-08 22:40:02 +00:00
|
|
|
|
2021-02-16 23:11:05 +00:00
|
|
|
# Serde
|
|
|
|
serde = { version = "1.0.110", features = ["derive", "rc"] }
|
|
|
|
|
2021-06-11 07:33:32 +00:00
|
|
|
# Util
|
2021-09-20 10:05:41 +00:00
|
|
|
enum-iterator = "0.7"
|
2021-06-11 07:33:32 +00:00
|
|
|
vek = { version = "=0.14.1", features = ["serde"] }
|
2021-12-06 22:17:20 +00:00
|
|
|
chrono = "0.4"
|
|
|
|
chrono-tz = "0.6"
|
2021-11-14 18:32:37 +00:00
|
|
|
sha2 = "0.9.8"
|
2021-12-01 04:12:02 +00:00
|
|
|
serde_json = "1.0.50"
|
2021-06-11 07:33:32 +00:00
|
|
|
|
|
|
|
# Strum
|
2021-11-19 13:01:08 +00:00
|
|
|
strum = { version = "0.23", features = ["derive"] }
|
2021-07-29 18:17:19 +00:00
|
|
|
# TODO: remove this and rewrite every use of strum_macros to strum
|
2021-11-19 13:01:08 +00:00
|
|
|
strum_macros = "0.23"
|
2021-06-11 07:33:32 +00:00
|
|
|
|
2021-02-16 23:11:05 +00:00
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
2021-02-09 12:28:51 +00:00
|
|
|
approx = "0.4.0"
|
Added non-admin moderators and timed bans.
The security model has been updated to reflect this change (for example,
moderators cannot revert a ban by an administrator). Ban history is
also now recorded in the ban file, and much more information about the
ban is stored (whitelists and administrators also have extra
information).
To support the new information without losing important information,
this commit also introduces a new migration path for editable settings
(both from legacy to the new format, and between versions). Examples
of how to do this correctly, and migrate to new versions of a settings
file, are in the settings/ subdirectory.
As part of this effort, editable settings have been revamped to
guarantee atomic saves (due to the increased amount of information in
each file), some latent bugs in networking were fixed, and server-cli
has been updated to go through StructOpt for both calls through TUI
and argv, greatly simplifying parsing logic.
2021-05-08 18:22:21 +00:00
|
|
|
clap = "2.33"
|
2020-12-16 00:07:39 +00:00
|
|
|
crossbeam-utils = "0.8.1"
|
2021-04-06 17:18:40 +00:00
|
|
|
bitflags = "1.2"
|
2020-12-16 00:07:39 +00:00
|
|
|
crossbeam-channel = "0.5"
|
2020-11-12 02:47:22 +00:00
|
|
|
lazy_static = "1.4.0"
|
|
|
|
num-derive = "0.3"
|
|
|
|
num-traits = "0.2"
|
2020-12-16 09:42:36 +00:00
|
|
|
ordered-float = { version = "2.0.1", default-features = false }
|
2020-12-16 13:17:28 +00:00
|
|
|
rayon = "1.5"
|
2020-11-12 02:47:22 +00:00
|
|
|
roots = "0.0.6"
|
2020-11-10 21:39:10 +00:00
|
|
|
spin_sleep = "1.0"
|
2020-11-12 02:47:22 +00:00
|
|
|
tracing = { version = "0.1", default-features = false }
|
2020-12-13 17:11:55 +00:00
|
|
|
uuid = { version = "0.8.1", default-features = false, features = ["serde", "v4"] }
|
2021-02-16 23:11:05 +00:00
|
|
|
rand = "0.8"
|
2021-08-30 01:50:26 +00:00
|
|
|
fxhash = "0.2.1"
|
2020-11-12 02:47:22 +00:00
|
|
|
|
2020-11-13 00:17:30 +00:00
|
|
|
# Assets
|
2021-05-09 16:05:01 +00:00
|
|
|
common-assets = {package = "veloren-common-assets", path = "assets"}
|
2020-11-13 00:17:30 +00:00
|
|
|
dot_vox = "4.0"
|
|
|
|
|
2021-02-16 23:11:05 +00:00
|
|
|
# Assets
|
2020-11-13 00:17:30 +00:00
|
|
|
serde_repr = "0.1.6"
|
|
|
|
|
2021-06-07 08:51:38 +00:00
|
|
|
# csv import
|
2021-12-12 19:01:52 +00:00
|
|
|
ron = { version = "0.7", default-features = false, optional = true }
|
2021-05-04 13:22:10 +00:00
|
|
|
# csv export
|
2020-12-12 01:12:00 +00:00
|
|
|
csv = { version = "1.1.3", optional = true }
|
|
|
|
structopt = { version = "0.3.13", optional = true }
|
2021-06-08 18:42:51 +00:00
|
|
|
# graphviz exporters
|
|
|
|
petgraph = { version = "0.5.1", optional = true }
|
2021-11-04 12:45:08 +00:00
|
|
|
# K-d trees used for RRT pathfinding
|
2021-08-27 16:47:34 +00:00
|
|
|
kiddo = { version = "0.1", optional = true }
|
2020-12-12 01:12:00 +00:00
|
|
|
|
2021-02-16 23:11:05 +00:00
|
|
|
# Data structures
|
2021-06-07 11:01:01 +00:00
|
|
|
hashbrown = { version = "0.11", features = ["rayon", "serde", "nightly"] }
|
2021-02-16 23:11:05 +00:00
|
|
|
slotmap = { version = "1.0", features = ["serde"] }
|
2021-12-25 23:06:55 +00:00
|
|
|
indexmap = { version = "1.3.0", features = ["rayon"] }
|
2021-02-16 23:11:05 +00:00
|
|
|
slab = "0.4.2"
|
|
|
|
|
|
|
|
# ECS
|
2021-06-07 11:01:01 +00:00
|
|
|
specs = { git = "https://github.com/amethyst/specs.git", features = ["serde", "storage-event-control", "nightly"], rev = "f985bec5d456f7b0dd8aae99848f9473c2cd9d46" }
|
|
|
|
specs-idvs = { git = "https://gitlab.com/veloren/specs-idvs.git", rev = "8be2abcddf8f524cb5876e8dd20a7e47cfaf7573" }
|
2021-02-16 23:11:05 +00:00
|
|
|
|
2019-09-03 23:00:50 +00:00
|
|
|
[dev-dependencies]
|
2020-12-12 01:12:00 +00:00
|
|
|
#bench
|
2019-09-03 23:00:50 +00:00
|
|
|
criterion = "0.3"
|
|
|
|
|
Implement /price_list (work in progress), stub for /buy and /sell
remove outdated economic simulation code
remove old values, document
add natural resources to economy
Remove NaturalResources from Place (now in Economy)
find closest site to each chunk
implement natural resources (the distance scale is wrong)
cargo fmt
working distance calculation
this collection of natural resources seem to make sense, too much Wheat though
use natural resources and controlled area to replenish goods
increase the amount of chunks controlled by one guard to 50
add new professions and goods to the list
implement multiple products per worker
remove the old code and rename the new code to the previous name
correctly determine which goods guards will give you access to
correctly estimate the amount of natural resources controlled
adapt to new server API
instrument tooltips
Now I just need to figure out how to store a (reference to) a closure
closures for tooltip content generation
pass site/cave id to the client
Add economic information to the client structure
(not yet exchanged with the server)
Send SiteId to the client, prepare messages for economy request
Make client::sites a HashMap
Specialize the Crafter into Brewer,Bladesmith and Blacksmith
working server request for economic info from within tooltip
fully operational economic tooltips
I need to fix the id clash between caves and towns though
fix overlapping ids between caves and sites
display stock amount
correctly handle invalid (cave) ids in the request
some initial balancing, turn off most info logging
less intrusive way of implementing the dynamic tool tips in map
further tooltip cleanup
further cleanup, dynamic tooltip not fully working as intended
correctly working tooltip visibility logic
cleanup, display labor value
separate economy info request in a separate translation unit
display values as well
nicer display format for economy
add last_exports and coin to the new economy
do not allocate natural resources to Dungeons (making town so much larger)
balancing attempt
print town size statistics
cargo fmt (dead code)
resource tweaks, csv debugging
output a more interesting town (and then all sites)
fix the labor value logic (now we have meaningful prices)
load professions from ron (WIP)
use assets manager in economy
loading professions works
use professions from ron file
fix Labor debug logic
count chunks per type separately
(preparing for better resource control)
better structured resource data
traders, more professions (WIP)
fix exception when starting the simulation
fix replenish function
TODO:
- use area_ratio for resource usage (chunks should be added to stock, ratio on usage?)
- fix trading
documentation clean up
fix merge artifact
Revise trader mechanic
start Coin with a reasonable default
remove the outdated economy code
preserve documentation from removed old structure
output neighboring sites (preparation)
pass list of neighbors to economy
add trade structures
trading stub
Description of purpose by zesterer on Discord
remember prices (needed for planning)
avoid growing the order vector unboundedly
into_iter doesn't clear the Vec, so clear it manually
use drain to process Vecs, avoid clone
fix the test server
implement a test stub (I need to get it faster than 30 seconds to be more useful)
enable info output in test
debug missing and extra goods
use the same logging extension as water, activate feature
update dependencies
determine good prices, good exchange goods
a working set of revisions
a cozy world which economy tests in 2s
first order planning version
fun with package version
buy according to value/priority, not missing amount
introduce min price constant, fix order priority
in depth debugging
with a correct sign the trading plans start to make sense
move the trade planning to a separate function
rename new function
reorganize code into subroutines (much cleaner)
each trading step now has its own function
cut down the number of debugging output
introduce RoadSecurity and Transportation
transport capacity bookkeeping
only plan to pay with valuable goods, you can no longer stockpile unused options
(which interestingly shows a huge impact, to be investigated)
Coin is now listed as a payment (although not used)
proper transportation estimation (although 0)
remove more left overs uncovered by viewing the code in a merge request
use the old default values, handle non-pileable stocks directly before increasing it
(as economy is based on last year's products)
don't order the missing good multiple times
also it uses coin to buy things!
fix warnings and use the transportation from stock again
cargo fmt
prepare evaluation of trade
don't count transportation multiple times
fix merge artifact
operational trade planning
trade itself is still misleading
make clippy happy
clean up
correct labor ratio of merchants (no need to multiply with amount produced)
incomplete merchant labor_value computation
correct last commit
make economy of scale more explicit
make clippy happy (and code cleaner)
more merchant tweaks (more pop=better)
beginning of real trading code
revert the update of dependencies
remove stale comments/unused code
trading implementation complete (but untested)
something is still strange ...
fix sign in trading
another sign fix
some bugfixes and plenty of debugging code
another bug fixed, more to go
fix another invariant (rounding will lead to very small negative value)
introduce Terrain and Territory
fix merge mistakes
2021-03-14 03:18:32 +00:00
|
|
|
#test
|
2021-11-26 17:41:51 +00:00
|
|
|
tracing-subscriber = { version = "0.3.2", default-features = false, features = ["fmt", "time", "ansi", "smallvec", "env-filter"] }
|
Implement /price_list (work in progress), stub for /buy and /sell
remove outdated economic simulation code
remove old values, document
add natural resources to economy
Remove NaturalResources from Place (now in Economy)
find closest site to each chunk
implement natural resources (the distance scale is wrong)
cargo fmt
working distance calculation
this collection of natural resources seem to make sense, too much Wheat though
use natural resources and controlled area to replenish goods
increase the amount of chunks controlled by one guard to 50
add new professions and goods to the list
implement multiple products per worker
remove the old code and rename the new code to the previous name
correctly determine which goods guards will give you access to
correctly estimate the amount of natural resources controlled
adapt to new server API
instrument tooltips
Now I just need to figure out how to store a (reference to) a closure
closures for tooltip content generation
pass site/cave id to the client
Add economic information to the client structure
(not yet exchanged with the server)
Send SiteId to the client, prepare messages for economy request
Make client::sites a HashMap
Specialize the Crafter into Brewer,Bladesmith and Blacksmith
working server request for economic info from within tooltip
fully operational economic tooltips
I need to fix the id clash between caves and towns though
fix overlapping ids between caves and sites
display stock amount
correctly handle invalid (cave) ids in the request
some initial balancing, turn off most info logging
less intrusive way of implementing the dynamic tool tips in map
further tooltip cleanup
further cleanup, dynamic tooltip not fully working as intended
correctly working tooltip visibility logic
cleanup, display labor value
separate economy info request in a separate translation unit
display values as well
nicer display format for economy
add last_exports and coin to the new economy
do not allocate natural resources to Dungeons (making town so much larger)
balancing attempt
print town size statistics
cargo fmt (dead code)
resource tweaks, csv debugging
output a more interesting town (and then all sites)
fix the labor value logic (now we have meaningful prices)
load professions from ron (WIP)
use assets manager in economy
loading professions works
use professions from ron file
fix Labor debug logic
count chunks per type separately
(preparing for better resource control)
better structured resource data
traders, more professions (WIP)
fix exception when starting the simulation
fix replenish function
TODO:
- use area_ratio for resource usage (chunks should be added to stock, ratio on usage?)
- fix trading
documentation clean up
fix merge artifact
Revise trader mechanic
start Coin with a reasonable default
remove the outdated economy code
preserve documentation from removed old structure
output neighboring sites (preparation)
pass list of neighbors to economy
add trade structures
trading stub
Description of purpose by zesterer on Discord
remember prices (needed for planning)
avoid growing the order vector unboundedly
into_iter doesn't clear the Vec, so clear it manually
use drain to process Vecs, avoid clone
fix the test server
implement a test stub (I need to get it faster than 30 seconds to be more useful)
enable info output in test
debug missing and extra goods
use the same logging extension as water, activate feature
update dependencies
determine good prices, good exchange goods
a working set of revisions
a cozy world which economy tests in 2s
first order planning version
fun with package version
buy according to value/priority, not missing amount
introduce min price constant, fix order priority
in depth debugging
with a correct sign the trading plans start to make sense
move the trade planning to a separate function
rename new function
reorganize code into subroutines (much cleaner)
each trading step now has its own function
cut down the number of debugging output
introduce RoadSecurity and Transportation
transport capacity bookkeeping
only plan to pay with valuable goods, you can no longer stockpile unused options
(which interestingly shows a huge impact, to be investigated)
Coin is now listed as a payment (although not used)
proper transportation estimation (although 0)
remove more left overs uncovered by viewing the code in a merge request
use the old default values, handle non-pileable stocks directly before increasing it
(as economy is based on last year's products)
don't order the missing good multiple times
also it uses coin to buy things!
fix warnings and use the transportation from stock again
cargo fmt
prepare evaluation of trade
don't count transportation multiple times
fix merge artifact
operational trade planning
trade itself is still misleading
make clippy happy
clean up
correct labor ratio of merchants (no need to multiply with amount produced)
incomplete merchant labor_value computation
correct last commit
make economy of scale more explicit
make clippy happy (and code cleaner)
more merchant tweaks (more pop=better)
beginning of real trading code
revert the update of dependencies
remove stale comments/unused code
trading implementation complete (but untested)
something is still strange ...
fix sign in trading
another sign fix
some bugfixes and plenty of debugging code
another bug fixed, more to go
fix another invariant (rounding will lead to very small negative value)
introduce Terrain and Territory
fix merge mistakes
2021-03-14 03:18:32 +00:00
|
|
|
|
2019-09-03 23:00:50 +00:00
|
|
|
[[bench]]
|
|
|
|
name = "chonk_benchmark"
|
|
|
|
harness = false
|
2020-01-14 04:19:38 +00:00
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "color_benchmark"
|
|
|
|
harness = false
|
2020-12-12 01:12:00 +00:00
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "csv_export"
|
2021-01-13 03:26:51 +00:00
|
|
|
required-features = ["bin_csv"]
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "csv_import"
|
|
|
|
required-features = ["bin_csv"]
|
2021-06-08 18:42:51 +00:00
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "recipe_graphviz"
|
|
|
|
required-features = ["bin_graphviz"]
|
2021-08-20 19:07:22 +00:00
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "cmd_doc_gen"
|
2021-08-27 16:47:34 +00:00
|
|
|
required-features = ["bin_cmd_doc_gen"]
|