Imbris
49e2fb80e7
Update stats in a separate thread
2020-05-15 16:03:51 -04:00
Mckol
aa69046055
Changed the default path of persistence database
...
Now the default is `./saves/`, it's also configurable.
2020-05-14 22:42:44 +02:00
Forest Anderson
acab072a63
Merge branch 'shandley/persistence-stats' into 'master'
...
Stats Persistence
See merge request veloren/veloren!970
2020-05-13 13:43:22 +00:00
Imbris
8f857e6e11
Fill in entity_count in metrics
2020-05-12 19:44:27 -04:00
Shane Handley
e852e0cfab
- Update the stats of characters individually, reverting the change with
...
big combined updates.
- Add a timer to the stats persistence system and change the frequency
that it runs to 10s
- Seperate the loading of character data for the character list during
selection, and the full data we will grab during state creation. Ideally
additional persisted bits can get returned at the same point and added
to the ecs within the same block.
2020-05-13 09:14:09 +10:00
Shane Handley
0a6f9b860d
Gather all characters stats in the system, build one big query, rather than per-character queries.
2020-05-13 09:14:08 +10:00
Shane Handley
7c6c9f4302
Stats persistence
...
- Update client code to use persisted stats
- Add a system for stats persistence
- Add a basic scheduler to control duration between execution of
persistence systems
2020-05-13 09:14:08 +10:00
CapsizeGlimmer
7ecea34f85
Server server::cmd depends on common::cmd
2020-05-09 21:50:51 -04:00
S Handley
5a13b54cbf
- Load characters after login.
...
- Make the character screen load with an empty character list from the server, send event to the server for character creation with data, but not yet saving them to the DB.
- Working but messy character saving to DB
- Add the character_data to the client, rather than keep it in the GLobalState.
2020-05-09 15:41:25 +00:00
Joshua Barretto
2a6a19f7ef
fmt
2020-04-23 18:19:42 +01:00
Joshua Barretto
44ace13d85
Stopped player spawning underground
2020-04-23 18:19:42 +01:00
Joshua Barretto
982886b3f8
Made players spawn in the nearest town to the centre of the world, delete object.zip
2020-04-23 18:19:41 +01:00
timokoesters
fe2aa7da7b
Merge remote-tracking branch 'origin/master' into combat
2020-03-26 23:43:33 +01:00
Songtronix
604a6cf169
feat: log server version
2020-03-26 12:41:30 +01:00
Imbris
3889ec7292
climbing tweaks, fix triple strike overflow, fix Last<CharacterState>
...
not registered
2020-03-25 02:05:28 -04:00
Imbris
1a484410ca
Delete Vel and Ori on the client when they are removed on the server
2020-03-18 17:01:51 -04:00
Imbris
14f0b018fd
Add metric for new connection handling time, move StateExt to its own module
2020-03-09 22:39:12 -04:00
Imbris
7132ef4136
Rearrange some operations in the server tick to reduce clientside latency of ServerEvent mediated effects
2020-03-09 22:31:24 -04:00
Imbris
6cc07270ac
improve(login): more precise error handling during login
2020-03-08 22:56:59 +01:00
Songtronix
50b845d1c3
:/ and reactivated the password field
2020-03-08 22:34:06 +01:00
Capucho
a3479f6a49
Fixed the bugs in the settings tab and the character button in the escape menu and unpause when there is more than 1 player
2020-03-05 18:55:14 +00:00
S Handley
b0ca85069b
Piggyback on the InventoryUpdate events and attach some additional event info so that we can detect why the inventory update was triggered, and emit an associated sfx event that matches it.
2020-03-04 10:09:48 +00:00
Marvin Altemeier
035d74f502
Move ServerEvents into own module
2020-02-18 20:51:10 +01:00
Imbris
177f331259
Fix possession
2020-02-06 17:06:49 -05:00
Marcel Märtens
dae31ae5b6
apply new rustfmt - touching alot of files
2020-02-01 21:39:39 +01:00
Marcel Märtens
dd21235ff8
Apply prefixes to veloren source, espacially comments, so that reformating wont make it unreadable,
...
especially enumerations and other source code in errosions file
2020-02-01 21:37:36 +01:00
Joshua Barretto
a76740182d
Prevent tamed entities constantly trying to 'return home'
2020-01-29 16:37:46 +00:00
Joshua Barretto
faa86226c7
Collars
2020-01-29 12:01:28 +00:00
Joshua Barretto
de96551f65
Resolved pet alignment issues, added ranged aggro
2020-01-27 15:51:07 +00:00
Joshua Barretto
8c7e96e313
Improved waypoint spawn locations, scaled down pathfinding cost
2020-01-26 12:52:32 +00:00
Joshua Barretto
11193a692a
Better neutral AI, initial waypoint objects
2020-01-26 12:52:28 +00:00
Joshua Barretto
290cb52d0d
I don't know how much I put in this commit, but it's some stuff
2020-01-26 12:52:28 +00:00
Joshua Barretto
353a0f67be
Better pathfinding iteration cap
2020-01-26 12:52:28 +00:00
Joshua Barretto
f92371101c
Added pauseable pathfinding, improved Chaser heuristics, etc.
2020-01-26 12:52:07 +00:00
Joshua Barretto
2d9aa21eef
Added test world, friendly NPC pathfinding
2020-01-26 12:52:07 +00:00
Joshua Yanovski
49e7e55cd6
Fix warnings in examples and benchmarks.
2020-01-23 18:18:16 +01:00
Joshua Yanovski
d54f22c9fa
Add a default world map.
...
Also adds map versioning, proper scaling, and updates sediment
rendering. It also tones down warp.
2020-01-23 18:18:15 +01:00
Joshua Yanovski
ebe0d14eab
Send client 3D rendered map.
...
Also shares configurable rendering between map generator and server.
2020-01-23 18:18:14 +01:00
Joshua Yanovski
e91578ffdb
Cargo fmt most things (except erosion.rs).
2020-01-23 18:18:12 +01:00
Joshua Yanovski
9520ef4f6d
Implement sending world map across the network.
2020-01-23 18:18:11 +01:00
Joshua Yanovski
ee5d383c46
Map saving, soil production, speedup attempts.
2020-01-23 18:18:10 +01:00
Joshua Yanovski
e71f145b71
Sediment transport, plus many other things.
2020-01-23 18:18:09 +01:00
Gilbert Röhrbein
4f90e6325e
feat: add endurance fitness willpower to stats
2020-01-21 18:49:17 +01:00
Imbris
63d74eb8ba
Don't panic if a region can't be found for a deleted entity
2020-01-19 18:22:11 -05:00
timokoesters
6e651eb659
fix: make fall damage behave correctly again after changing gravity
2020-01-19 22:39:20 +01:00
timokoesters
8afe5fd1dd
improvement: reset character state and energy on death
2020-01-19 22:39:19 +01:00
timokoesters
8064b51ee2
improvement: better movement
2020-01-19 22:39:18 +01:00
Gilbert Röhrbein
28060e7b6e
fixing #405 - Energy as its own component
2020-01-12 22:25:04 +01:00
Piotr Korgól
e1adf40856
Improvement: Replace all '..=b' with '..b + 1'
2020-01-12 15:46:53 +01:00
Imbris
f52aef224e
Fix typos, don't insert Controller if it doesn't already exist in the
...
mount system so that Controller components are not added to entities
client side
2020-01-02 05:34:27 -05:00
Imbris
c9caf14877
Fix formatting, Update CHANGELOG, turn overflow checks on for dev
...
profile
2019-12-31 16:38:13 -05:00
Imbris
ede05c47b0
fix(char screen induced ghosts):
...
Adds removing extra components and deleting entities clientside when
going back to the character screen. Also, simplifies ClientState by
removing the Dead variant and removing ClientMsg::StateRequest in favor
of more specific ClientMsg variants.
2019-12-31 16:38:13 -05:00
Imbris
ec3e075020
fix(player list): Show players not in range on the player list
...
fix(overflow): Stops including block updates that fail (since chunks
don't exist on the client) in `TerrainUpdates` (which would trigger
meshing of those nonexistent chunks). Furthermore, removes
remeshing of chunks with block updates if those chunks don't have all their
neighbours (since those wouldn't be meshed in the first place).
2019-12-29 20:51:05 -05:00
Imbris
934c5d6846
Various tweaks: moved radius determination to function on , comments, simplified server Destroy event code, debug assert modified components aren't removed in change tracking, etc
2019-12-20 22:51:35 -05:00
Imbris
b2752d2419
Cutout unnecessary Resource syncing machinery and Tracker trait
2019-12-20 22:51:35 -05:00
Imbris
8f7323f41b
Stop syncing health change timer updates
2019-12-20 22:48:14 -05:00
Imbris
d341073a44
Upgrade to specs 0.15.1
2019-12-20 22:48:14 -05:00
Imbris
e49cafafbf
Actually send deletion messages
2019-12-20 22:48:14 -05:00
Imbris
71cce03f29
Move sync code into common submodule
2019-12-20 22:37:12 -05:00
Imbris
609e0f23bf
Stop global syncing of entity creation
2019-12-20 22:37:12 -05:00
Songtronix
0d919a9dc6
improve(log): adjust verbosity of some logging
...
fix: settings do not log due to logging being initialized to late
2019-12-20 15:45:30 +01:00
soruh
007920a238
iterate up to max_z + 1
...
(because max_z could still be a soild block)
2019-11-01 00:24:18 +00:00
Imbris
6b0e346ec4
fix: bugs in new server ecs systems fixed
2019-10-25 22:00:47 -04:00
Timo Koesters
0ae15bb251
Merge branch 'timo-items-as-ron' into 'master'
...
feat: store items as RON files
See merge request veloren/veloren!618
2019-10-25 08:57:39 +00:00
Imbris
58ca150f63
fix: /object chat command no longer spawns invisible objects
2019-10-25 02:08:23 -04:00
timokoesters
f1b728b89b
improvement: load_cloned returns a result
2019-10-24 23:55:24 +02:00
timokoesters
20248a4818
feat: store items as RON files
...
When a new item is created, a ron file will be used as a template
2019-10-24 23:47:26 +02:00
Imbris
a200dafd45
Fix possess bug, remove commented code, drain controller events
2019-10-24 00:00:00 -04:00
Imbris
966b2bfbff
Integrate new systems with metrics
2019-10-23 23:50:06 -04:00
Imbris
8f81b69a25
Move terrain management and syncing into server side ecs systems
2019-10-23 23:50:06 -04:00
Imbris
2703c8afe1
Move serverside client to a component and communications into server ecs systems
2019-10-23 23:50:06 -04:00
Imbris
53ddbec527
Actually fix region removal panic, update fuzzy chunk location, sync entity removal when unloading chunks, region size constant tweak
2019-10-23 22:43:02 -04:00
Imbris
ab7740f378
Fix not not sending updates outside a certain range and not sending character state when it changes due to update throttling
2019-10-23 22:43:02 -04:00
Imbris
b09bddda79
Make clients subscribed to nearby regions and only send physics updates from those regions.
2019-10-23 22:43:02 -04:00
Monty Marz
3e0ac48bd8
Multiple Assets and UI fixes and additions
2019-10-23 19:40:45 +00:00
Acrimon
57bfb302dd
Formatted code.
2019-10-23 20:23:31 +02:00
Acrimon
6f532a7a37
Drastically improved error messages in client and server.
2019-10-23 18:38:09 +02:00
Songtronix
5b716515bb
change(githash): provide date and hash
2019-10-18 15:32:55 +02:00
Monty Marz
fdfab6a807
refactor: create_projectile doesn't take a light
...
It returns a builder so the caller can just do it
2019-10-17 20:59:36 +00:00
Joshua Yanovski
8ae2692b6e
Allow canceling chunk generation.
...
Currently we only do this when no players are in range of the chunk. We
also send the first client who posted the chunk a message indicating
that it's canceled, the hope being that this will be a performance win
in single player mode since you don't have to wait three seconds to
realize that the server won't generate the chunk for you.
We now check an atomic flag for every column sample in a chunk. We
could probably do this less frequently, but since it's a relaxed load it
has essentially no performance impact on Intel architectures.
2019-10-16 11:39:41 +00:00
Imbris
028d010624
Make bows give experience via giving projectiles an owner field
2019-10-11 19:33:01 -04:00
Imbris
2f9d8ee2e6
Add new debug item
2019-10-11 19:32:46 -04:00
Marcel Märtens
30c9fcc911
Fix bug that metrics took a random port always introduced in !584
...
also removed the duplicate port from the server creation process, using the server settings struct now
2019-10-11 14:19:55 +02:00
Monty Marz
d82ec6715a
Item icons, chests and more
2019-10-09 19:28:05 +00:00
timokoesters
be5d79b123
fix: all enemies start with lvl 1 hp
2019-10-09 17:09:25 +02:00
timokoesters
051a964798
fix: server side fall damage
...
This avoids flickering health
2019-10-08 18:55:30 +02:00
timokoesters
f76f74b411
fix: spawnpoint nearer to the floor
...
We can change this back when we have a proper spawn location system or
random seeds.
2019-10-08 18:55:29 +02:00
timokoesters
4e87f125a2
fix: fix level and health distribution
2019-10-08 18:12:08 +02:00
Songtronix
03f0024607
fix: reduce amount of network related ghosts
2019-10-07 15:15:29 +02:00
timokoesters
3078591060
feat(bow): arrow spawn height
2019-10-06 21:21:33 +02:00
timokoesters
0d1bf16e46
fix: selecting another character no longer shows a new login message
2019-10-06 18:26:51 +02:00
timokoesters
4501fef503
fix: don't show logout message when player never was ingame
2019-10-06 17:34:51 +02:00
Piotr Korgól
09429b45d1
Make /adminify admin-only and /waypoint free
2019-10-05 17:37:10 +02:00
Piotr Korgól
9e10c8b700
Make enemies spawn with different levels
2019-10-05 17:37:09 +02:00
timokoesters
460a494e77
fix(bow): Don't remove vel and use sticky component instead
2019-10-04 21:30:13 +02:00
timokoesters
d876215012
feat(combat): melee combat damage depends on power of the weapon
...
Normal NPCs have a weapon of power 5 so they do 5 damage if the attack
is not blocked. Bosses and players have power 10.
2019-10-04 21:02:44 +02:00
timokoesters
fc97c27b65
feat(bow): sticky arrows
2019-10-04 21:02:43 +02:00
timokoesters
df4c4bbd5d
fix(bow): initial orientation wrong for 1 frame
2019-10-04 21:02:42 +02:00
timokoesters
ab634f1d21
Reuse combat code
2019-10-04 21:02:41 +02:00
timokoesters
2ba143a514
Make arrows deal damage
2019-10-04 21:02:41 +02:00