Sam
ee5c9d78ca
Swords
2021-02-24 18:54:06 -05:00
Marcel Märtens
e3ef4422b6
cleanup ClientConnArgs
2021-02-22 21:07:20 +01:00
Marcel Märtens
3f5c64bec0
Client::new can now resolve DNS requests, better networking error messages
2021-02-22 17:35:19 +01:00
Marcel Märtens
1a7c179bbb
share tokio Runtime between Client and Server, name rayon Threadpool
2021-02-22 17:35:06 +01:00
Marcel Märtens
514d5db038
Update Network Protocol
...
- now last digit version is compatible 0.6.0 will connect to 0.6.1
- the TCP DATA Frames no longer contain START field, as it's not needed
- the TCP OPENSTREAM Frames will now contain the BANDWIDTH field
- MID is not Protocol internal
Update network
- update API with Bandwidth
Update veloren
- introduce better runtime and `async` things that are IO bound.
- Remove `uvth` and instead use `tokio::runtime::Runtime::spawn_blocking`
- remove futures_execute from client and server use tokio::runtime::Runtime instead
- give threads a Name
2021-02-22 17:34:55 +01:00
Marcel Märtens
5aa1940ef8
get rid of async_std::channel
...
switch to `tokio` and `async_channel` crate.
I wanted to do tokio first, but it doesnt feature Sender::close(), thus i included async_channel
Got rid of `futures` and only need `futures_core` and `futures_util`.
Tokio does not support `Stream` and `StreamExt` so for now i need to use `tokio-stream`, i think this will go in `std` in the future
Created `b2b_close_stream_opened_sender_r` as the shutdown procedure does not need a copy of a Sender, it just need to stop it.
Various adjustments, e.g. for `select!` which now requieres a `&mut` for oneshots.
Future things to do:
- Use some better signalling than oneshot<()> in some cases.
- Use a Watch for the Prio propergation (impl. it ofc)
- Use Bounded Channels in order to improve performance
- adjust tests coding
bring tests to work
2021-02-17 12:38:53 +01:00
Marcel Märtens
1b77b6dc41
Initial switch to tokio for network, minimum working example.
2021-02-17 12:37:59 +01:00
Quellus
8b4230db61
Limit character name length
2021-02-16 21:29:45 +00:00
jiminycrick
8b97199245
Update rand dependency
2021-01-26 20:35:08 -08:00
Monty Marz
1eb7f78189
Revert "Added TR translations for deaths by debuffs."
...
This reverts commit 0817e45e13
.
2021-01-20 11:20:06 +00:00
Sam
eaa41c7dea
Skills are now factored into combat rating. New formula for exp scaling per SP.
...
Adjust lvl up msg fade
Add female humanoid names WIP
Changed text formatting when skill is max level. Added message to show you have 0 skill points available.
Addressed a lot of comments.
various changes to UI
- fix skillbar offset
- remove CR indicators for group members
- add CR indicators to group member frames
- use unified CR indicator icon
Exp reward tweaks.
Fixed flamethrower range skill description.
2021-01-19 08:08:26 -05:00
Sam
986c05621a
Wired up skill UI to check for prerequisites being met and sufficient skill points.
...
available SP check in general HUD, more skill icons
Trimmed 2000 lines from a file.
UI tweaks
2021-01-19 08:07:45 -05:00
Sam
51c0bd765f
Database support for refunding skills.
...
Nonfunctional xp floaters, squash when working.
more icons, lock visuals
2021-01-19 08:07:29 -05:00
Sam
c0c45a1996
Purged stats, including level and experience
2021-01-19 08:07:23 -05:00
Ben Wallis
aef2637288
Refactored loadout to have public functions for each slot instead of requiring callers to use the _INDEX consts
2021-01-08 19:12:09 +00:00
Marcel Märtens
c37384979c
switch toolchain to nightly-2021-01-01
2021-01-03 21:31:21 +01:00
Ben Wallis
5636083e27
* Fixed character load errors not being handled in Voxygen.
...
* Improved server error message for character load errors.
* Added server logging for item asset load errors during character load.
* Fixed character select error message dialog not supporting long messages.
2020-12-30 19:29:22 +00:00
Acrimon
ce27cfb30f
update some error handling code
2020-12-29 01:21:09 +01:00
Benoît du Garreau
8aac030ecd
Fix bad specifier breaking on Windows
2020-12-17 17:22:02 +00:00
Benoît du Garreau
7b4aa6d4cc
cargo fmt
2020-12-17 12:06:22 +01:00
Benoît du Garreau
d090eefb00
Move the asset module to a single file
2020-12-17 12:06:13 +01:00
Benoît du Garreau
0cf164f33a
Use assets_manager to load assets
2020-12-17 12:06:07 +01:00
Marcel Märtens
ccb01e1898
adjust fmt and clippy after toolchain upgrade
2020-12-10 14:53:01 +01:00
Joshua Barretto
77a39d74d4
Removed public fields from Client, turned a character error into a frontend event
2020-12-05 11:20:25 +00:00
Imbris
d1431d734a
Merge branch 'imbris/update-winit' into 'master'
...
Don't drop the wayland clipboard
Closes #855
See merge request veloren/veloren!1576
2020-12-02 01:33:29 +00:00
Imbris
d7f506cf71
Don't drop wayland clipboard
2020-12-01 19:35:32 -05:00
Marcel Märtens
add7922653
Move Systems out of common into common_sys
...
This requires to move `State` into a own crate called `common_state` which depends on `common` and `common_sys`
2020-12-01 13:44:07 +01:00
Monty Marz
e7d27a2c21
fmt
...
cleanup
2020-11-25 16:53:48 +00:00
Joshua Barretto
bcc220804a
Added exposure to settings
2020-11-23 10:57:55 +00:00
Imbris
82b95974f1
Log errors occuring when client keeps retrying connection to the server
2020-11-22 03:54:19 -05:00
Imbris
4872d285c3
Merge branch 'imbris/fix-font-selection' into 'master'
...
Properly use localization specified fonts, fix swedish translation by adding...
Closes #834
See merge request veloren/veloren!1521
2020-11-15 03:18:29 +00:00
Imbris
03c96a7c7b
Properly use localization specified fonts, fix swedish translation by adding other fonts to the font mapping list
2020-11-14 21:31:31 -05:00
Imbris
4f2512f126
Save the selected character, deselect character when deleting, auto select newly created character
2020-11-14 19:17:42 -05:00
Imbris
ff5b152525
Merge branch 'imbris/fix-6' into 'master'
...
Fix issue where ui scale in the login menu was not updated when changed in-game
Closes #578
See merge request veloren/veloren!1513
2020-11-14 02:49:41 +00:00
Imbris
cff5439796
Fix issue where ui scale in the login menu was not updated when changed in-game
2020-11-13 20:17:59 -05:00
Imbris
1952785af2
Remove randomization of species and body_type with the randomize button in char creation
2020-11-13 19:43:32 -05:00
Samuel Keiffer
1ed90bd0bf
Merge branch 'sam/ron-abilities' into 'master'
...
Move abilities to .ron files
Closes #821
See merge request veloren/veloren!1508
2020-11-13 17:55:57 +00:00
Sam
b5f59f9cf3
Fixed tests. Addressed comments.
2020-11-13 10:41:34 -06:00
Imbris
5fa2ac6e38
Handle window resizing properly to fix some bugs on startup
2020-11-12 23:56:36 -05:00
Imbris
f1ca3ccc69
Fix language and ui resolution in menus not updating when they are changed ingame
2020-11-12 23:03:44 -05:00
Imbris
37e4ea4669
Remove ability map from top level functions
2020-11-12 21:24:35 -06:00
Sam
9b4fa4e961
Started moving loading of ability manifest to an ecs variable.
2020-11-12 21:24:34 -06:00
Imbris
865482d768
ui: Improve login info banner gradient, smallify things, put login menu quit button at the bottom
2020-11-11 03:02:51 -05:00
Imbris
61c0780872
Remove uneeded commented code, add notes to remaining commented code, use source rect calculations from conrod backend code
2020-11-11 03:02:51 -05:00
Imbris
64d885a192
Clippy fixes
2020-11-11 03:02:51 -05:00
Imbris
584824d405
Tweak scrollbar in char select screen to look nicer, fix warnings, remove old ui code, add character loading/deleting/creating/error info popups
2020-11-11 03:02:23 -05:00
Imbris
d2166fed3d
Make iced ui use scale from the settings
2020-11-11 03:02:22 -05:00
Imbris
90bfafc469
Fix tooltip positioning for tooltipped elements inside Scrollable widgets
2020-11-11 03:02:22 -05:00
Imbris
cd1a134c26
Fix bug in body.validate(), add sliders to iced char creation screen, make char selection screen more closely resemble the master version in style
2020-11-11 03:02:22 -05:00
Imbris
7aa8412556
Add tooltips in iced char creation to species, tools, randomize button, and create button
2020-11-11 03:02:22 -05:00
Imbris
fe7d65843b
Highlight button of selected character, enter the world if character is selected when enter key is pressed
2020-11-11 03:02:22 -05:00
Imbris
3b664d2efb
Fix tooltip border images, fade tooltips properly, improve tooltip positioning
2020-11-11 03:02:22 -05:00
Imbris
d8854e9300
Add a tooltip to the char select screen to test
2020-11-11 03:02:22 -05:00
Imbris
0361272746
Update to reflect changes in master ui: switched daggers with sceptre, added background at the bottom of the loading screen, added randomize button in the char creation screen
2020-11-11 03:02:22 -05:00
Imbris
0ab1a1ebb0
Loading screen: show animated gears instead of status message, show tips
2020-11-11 03:02:22 -05:00
Imbris
489a8a8f9e
Remove background banner from login screen input boxes and move logo to right corner
2020-11-11 03:02:22 -05:00
Yusuf Bera Ertan
bae7f56393
add padding to language select and server select menu buttons so that the scrollbar doesn't overlap them
2020-11-11 03:02:22 -05:00
Yusuf Bera Ertan
52479fec2f
add title to server select menu, don't use unneeded Container in language select menu
2020-11-11 03:02:22 -05:00
Yusuf Bera Ertan
12abd64a01
change the text arrows in language select and server select with proper ui elements
2020-11-11 03:02:22 -05:00
Yusuf Bera Ertan
5af6757de0
add language selection menu to main menu screen
2020-11-11 03:02:22 -05:00
Imbris
42c6550a0b
Add more parts of the character selection screen, add mouse detector widget, misc tweaks
2020-11-11 03:02:22 -05:00
Imbris
de770694d8
Basic structure of character selection
2020-11-11 03:02:22 -05:00
Imbris
bc42f3f229
Add tabbing between fields in login screen
2020-11-11 03:02:22 -05:00
Imbris
586bdddc9e
Add gradient primitive to ui, adjust textbox aspect ratio, misc tweaks
2020-11-11 03:02:22 -05:00
Imbris
3baac6aeba
Update to latest iced git, rebase fixes
2020-11-11 03:02:22 -05:00
Imbris
545f3bd44b
Start rewrite of character selection with iced
2020-11-11 03:02:21 -05:00
Imbris
10c046be2f
Delete conrod main menu code!!!!!!, small tweaks
2020-11-11 03:02:21 -05:00
Imbris
ba573d2065
Add error message box (is the main menu finished?)
2020-11-11 03:02:21 -05:00
Imbris
e29364eedf
Add border styling to container
2020-11-11 03:02:21 -05:00
Imbris
a94bc4b725
Make cancel button in connecting screen visble again, don't save username & server for singleplayer login, make iced version go back to login screen properly.
2020-11-11 03:02:21 -05:00
Yusuf Bera Ertan
a9541f1506
Implemented server selection screen
2020-11-11 03:02:21 -05:00
Imbris
e2bf974ecb
Add Scrollable widget support, implement disclaimer screen, rearrangements of main menu ui code
2020-11-11 03:02:21 -05:00
Imbris
01eb061a83
Fill in username & server fields in ui reimplementation, stop saving password in the settings file
2020-11-11 03:02:21 -05:00
Imbris
73982637b2
Add styling for Container, implement auth trust prompt, misc additions
2020-11-11 03:02:21 -05:00
Imbris
20a46eb526
Make all the fonts available in iced ui rework
2020-11-11 03:02:21 -05:00
Imbris
5c13983631
Add parts of main menu such as version text and info text banner, make connection screen
2020-11-11 03:02:21 -05:00
Imbris
d6b38c8cd2
More main menu work, split main menu ui into multiple modules, misc fixes in the renderer
2020-11-11 03:02:21 -05:00
Imbris
d2f5a44d02
Input fields layout tweaks
2020-11-11 03:02:21 -05:00
Imbris
561068106e
Add input fields to main menu attempt, fix a few bugs, add bullet point to the font (might have done this wrong). (just a few glitches left when text contains spaces)
2020-11-11 03:02:21 -05:00
Imbris
e4bc035a62
Add support for TextInput widget, rename widgets module to widget, update to glyph_brush 0.7.0
2020-11-11 03:02:21 -05:00
Imbris
75adcb20e8
More buttons, FillText custom widget that adjusts text size based on available space, created button component thing (a reusable composition of widgets), fixed log to tracing rebase error
2020-11-11 03:02:21 -05:00
Imbris
04fe308b9c
Rearrange iced renderer modules, wire up events for the main menu iced ui
2020-11-11 03:02:21 -05:00
Imbris
095345d8c6
Add support for Button widget, new custom widget AspectRatioContainer
2020-11-11 03:02:21 -05:00
Imbris
bc0792a57a
Rename localization/font types (e.g. VoxygenLocalization -> Localization)
2020-11-11 03:02:21 -05:00
Imbris
0053299b14
Text rendering for iced with glyph_brush works now
2020-11-11 03:02:20 -05:00
Imbris
a7458c099c
Implement text renderering with glyph_brush (lifetime error)
2020-11-11 03:02:20 -05:00
Imbris
29526977d8
Add support for Space widget, refine main menu ui, misc fixes and improvements.
2020-11-11 03:02:20 -05:00
Imbris
b25162635a
Revamp BackgroundContainer with scale specific padding, and use in main menu attempt
2020-11-11 03:02:20 -05:00
Imbris
5428feb0df
Add Stack and CompoundGraphic widgets
2020-11-11 03:02:20 -05:00
Imbris
b5d31f6cba
Begin implementing container widget with an image background
2020-11-11 03:02:20 -05:00
Imbris
6a4b7b70c2
Start experimenting with replicating main menu
2020-11-11 03:02:20 -05:00
Imbris
bbbede68fc
Initial setup to use iced
2020-11-11 03:02:20 -05:00
Marcel Märtens
e4e5c6e55b
massivly switch clock algorithm.
...
- before we had a Clock that tried to average multiple ticks and predict the next sleep.
This system is massivly bugged.
a) We know exactly how long the busy time took, so we dont need to predict anything in the first place
b) Preduction was totally unrealistic after a single lag spike
c) When a very slow tick happens, we dont benefit from 10 fast ticks.
- Instead we just try to keep the tick time exact what we expect.
If we can't manage a constant tick time because we are to slow, the systems have to "catch" this via the `dt` anyway.
2020-11-10 18:31:42 +01:00
Marcel Märtens
00456c8373
extract a Presence Component, which is server
only and has state of Player
and Client
. Presence is only valid for Clients that are in game
2020-11-03 08:56:02 +01:00
Imbris
a556d2b5e7
Merge branch 'bbenton91/fix-password-length' into 'master'
...
Changed password scale to allow 34 characters. Fixes issue #743
Closes #743
See merge request veloren/veloren!1464
2020-10-30 02:37:54 +00:00
Brad
8b39dafe2e
Changed password scale to allow 34 characters
2020-10-29 21:17:31 -04:00
Imbris
325695e937
Only try to connect to the singleplayer server after it has been initialized
2020-10-29 18:30:49 -04:00
Sam
337cf6e137
Cleaned up UI code. Removed stuff added for testing. Added 10% for melee attacks to inflict a bleeding debuff. Renamed BuffId to BuffKind. Fixed memory leak. Set event emission to false when timer is decremented.
2020-10-26 19:30:10 -05:00
Marcel Märtens
55b59fbe07
various small fixes according to the MR
2020-10-12 11:25:20 +02:00
Marcel Märtens
d7a74c0cf1
fix voxygen state system. before we had a timing error that we did the next voxygen step before client set in_game which lead us to a disconnect.
...
now assume in_game is correct in client unless told by server in its answer
2020-10-11 22:49:19 +02:00