oldmud0
2ef7b206e2
Scan themes in all mount paths
2021-06-06 22:42:16 -05:00
oldmud0
387233e9e3
Don't store key in asset lookup cache
2021-06-06 22:41:40 -05:00
oldmud0
7a1c3f385e
Greatly improve case-insensitive lookup speed
...
By using hash tables, the algorithmic complexity of the case-insensitive
lookup has been reduced from O(n * k) to amortized O(k), where n is the
number of files in each level and k is the number of directory levels
that need to be traversed.
This massively improves performance on Linux when loading characters,
especially when there are many missing characters, since it is no longer
necessary to scan the entire character folder repeatedly.
2021-06-05 22:27:56 -05:00
oldmud0
037d96a5d9
Use intuitive behavior for loading assets with ambiguous extensions
2021-06-05 20:28:55 -05:00
oldmud0
d27501313c
Finish mounting feature
...
To pull this one off, a new class called VPath was created that denotes
"virtual" paths that can exist anywhere among the list of mount points.
It is functionally identical to QString, except that implicit conversion
between QString and VPath is not allowed. This makes it easy to spot
errors in path resolution at compile time, since get_real_path must be
called to resolve a VPath into an absolute path that can be passed into
a Qt function as a QString.
Other functions, such as the get_*_suffix functions, also return an
absolute path QString for convenience.
As for the rest of the functions that return a VPath, you will need to
call get_real_path yourself.
Finally, a path resolution cache was added to try to avoid blowing
up what is already a massive lookup cost for assets. The cache
is invalidated when the mount path list is changed.
Currently, this cache isn't bounded. Might need to write an LRU cache
if issues arise.
2021-06-05 14:58:40 -05:00
oldmud0
a023657348
Partial: Add mount list to options dialog
2021-05-29 10:43:53 -05:00
in1tiate
bddf6c67c2
Don't decode LE contents until after splitting by "&" ( #500 )
...
Should fix evidence, again.
2021-03-20 22:39:15 -05:00
Crystalwarrior
510c0f4b17
Add timer packets to demo playback ( #494 )
...
When the demo skips by some number of seconds, the timer will also skip forward by that duration.
Co-authored-by: in1tiate <32779090+in1tiate@users.noreply.github.com>
Co-authored-by: oldmud0 <oldmud0@users.noreply.github.com>
2021-03-20 21:12:44 -05:00
Crystalwarrior
e3ba27c47e
Deprecate demo playback /min_wait ( #498 )
2021-03-20 13:41:35 -05:00
oldmud0
4bfd9f0d14
Merge pull request #497 from AttorneyOnline/fix/demos-evidence
...
Make demo files record evidence packets
2021-03-20 12:48:24 -05:00
oldmud0
8ba03150f6
Merge pull request #496 from AttorneyOnline/fix/demos-fix
...
Fix demos being recorded with incorrect timing. ⚠HUGE, VERY IMPORTANT FIX⚠
2021-03-20 12:47:38 -05:00
oldmud0
64a93f8e22
Merge pull request #495 from AttorneyOnline/fix/demos-utf-8
...
Fix demo playback not using UTF-8 codec
2021-03-20 12:46:40 -05:00
Crystalwarrior
f4cecc98af
Make demo files record evidence packets
2021-03-20 20:36:06 +03:00
Crystalwarrior
f113396ad3
⚠HUGE, VERY IMPORTANT FIX⚠
...
Fix demo playback being incorrectly timed due to the misplaced order of the wait#% packet (it should go BEFORE the appended message, not AFTER! We're delaying the message we're *writing*, not the *next message*!!!)
(cherry picked from commit 8319ebffe4c22c59c33d9c90161036d9c1ddddd5)
2021-03-20 20:30:12 +03:00
Crystalwarrior
118ff5c804
Fix demo playback not using UTF-8 codec, making it impossible to use for Russian chars and other special chars like emoji etc.
...
(cherry picked from commit f3e96ca6b38a5e069d98f2db4b17dfb7bb3f239b)
2021-03-20 20:29:17 +03:00
in1tiate
e4483719d4
Deprecate hardcoded string-based authentication, add AUTH packet ( #489 )
...
Co-authored-by: oldmud0 <oldmud0@users.noreply.github.com>
2021-03-15 17:56:42 -05:00
in1tiate
3cac877378
Fix evidence icons not appearing after evidence has been presented once ( #491 )
...
all around me are familiar faces, worn out places, worn out faces
2021-03-14 19:35:30 -05:00
Pyraqq
db8df0d992
Post-release polish translation changes ( #488 )
...
* Post release polish translation changes
* small fix
2021-03-10 17:15:12 -06:00
oldmud0
2cbb5c95ef
Fix timer using 32-bit ints instead of 64-bit ints ( #487 )
2021-03-07 00:01:54 +03:00
Emiko
08fd15acda
Update Russian translation ( #484 )
2021-03-06 14:22:37 -06:00
Pyraqq
66c148dbe3
Polnisch update take 2 ( #486 )
2021-03-05 11:06:14 -06:00
oldmud0
c109f68075
Merge pull request #485 from AttorneyOnline/quickfix
...
Fix a segfault/crash due to invalid packet size checking for the timer (TI) packet
2021-03-04 10:23:38 -06:00
Crystalwarrior
016ce3ac40
Fix a segfault/crash due to invalid packet size checking for the timer (TI) packet
2021-03-04 14:03:37 +03:00
oldmud0
a171ad9f65
Merge pull request #482 from AttorneyOnline/fix/log-utf8
...
Fix files not being written as UTF-8
2021-03-03 16:43:55 -06:00
oldmud0
7d20de77d2
Fix files not being written as UTF-8
2021-03-03 16:23:06 -06:00
oldmud0
e13e6183d9
Update themes submodule ( #480 )
2021-03-03 21:53:48 +03:00
stonedDiscord
6e28bee92a
Hide ARUP fields when empty ( #479 )
...
Co-authored-by: oldmud0 <oldmud0@users.noreply.github.com>
2021-03-02 10:02:03 -06:00
stonedDiscord
ba0eb391a5
Run lupdate; update German translation ( #478 )
2021-03-01 13:22:24 -06:00
oldmud0
5555b699f8
Merge pull request #477 from AttorneyOnline/fix-css
...
Fix various bugs
2021-02-28 13:04:44 -06:00
Crystalwarrior
1bb93cb7c0
Fix wrong pos being picked/displayed (most likely wit) if current_side is blank (a.k.a. use character default side)
2021-02-28 21:23:26 +03:00
Crystalwarrior
113529450d
Stop parenting qMesageBoxes to the courtroom (fixes stylesheet conflicts)
2021-02-28 21:04:47 +03:00
Crystalwarrior
71ceb758b9
Fix stickers settings option not being saved
2021-02-28 21:03:02 +03:00
Crystalwarrior
989234cf46
set default .css behavior to match established convention
2021-02-26 23:40:24 +03:00
oldmud0
9691fb762a
Update themes submodule ( #476 )
...
Bottom text
2021-02-25 11:50:26 -06:00
oldmud0
a64241a0f0
Merge pull request #473 from AttorneyOnline/fix/everything
...
Fix change character lag, bg resizing and repos weirdness, inconsistent behavior, sticker setting etc.
2021-02-24 10:26:56 -06:00
Crystalwarrior
5ac95ada56
Make "stop music on objection" work in tandem with the server by calling "music_stop()" instead of only working on the client-side
2021-02-24 16:02:07 +03:00
oldmud0
7579457e89
Avoid use of QImageReader copy constructor
2021-02-22 14:31:23 -06:00
oldmud0
f1eb91a612
Load fonts located in base/fonts ( #475 )
...
This will register any font (OTF/TTF) located in the base/fonts folder
recursively. They can be used for any purpose, without needing to
install them on the system.
2021-02-22 23:22:46 +03:00
oldmud0
d32ad43665
Fix crash caused by pre-2.6 IC packet
2021-02-22 12:54:06 -06:00
Crystalwarrior
679dcca079
Remove hardcoded stylesheets from lobby
...
Stop doing the "tagget stylesheets" monstrosity
2021-02-21 16:18:45 +03:00
Crystalwarrior
354fbd239c
Stop hardcoding stylesheets so the behavior is more consistent finally (and courtorom_stylesheets.css is more useful)
2021-02-21 16:07:12 +03:00
Crystalwarrior
37011fc22d
Remove background-color stylesheet from the set_qfont (allowing stylesheets to properly initialize custom backgrounds for labels w/ transparent ones)
...
rename "set_dropdown_ to "set_stylesheet" cuz that's what it is
2021-02-21 15:50:34 +03:00
Crystalwarrior
ee918a4f81
Fix edge cases where screenshake uses wrong chatbox coordinates due to it being initialized later than needed.
2021-02-21 12:03:56 +03:00
Crystalwarrior
d6ebc3e80b
Fix chat arrow being frozen on frame 1
2021-02-21 11:38:04 +03:00
in1tiate
0ee6888dec
prevent static preanims from playing
2021-02-20 04:30:09 -06:00
in1tiate
f1aa57b125
fix speedlines never being unhidden
2021-02-20 04:10:35 -06:00
Crystalwarrior
aa790dbc4b
Overhaul pos dropdown and pos remove system to work well with custom pos, char pos etc.
...
Remove accidental duplicate code
Fix some genius using & instead of && (SMH)
Block pos_dropdown signals better
2021-02-19 11:20:38 +03:00
Crystalwarrior
ec6d657f31
rename wtce lookups to _bubble
(themes need to be updated for this)
2021-02-17 15:55:33 +03:00
Crystalwarrior
7246965e00
Adopt better method for setting custom pos using the pos dropdown
...
Make it actually work properly
2021-02-17 15:47:54 +03:00
Crystalwarrior
f881df2415
Make the server list display all pretty and nice
...
Resize the 0thcolumn to smallest possible size so it's not intrusive
Remove text eliding so numbers don't get ...'s
2021-02-17 15:29:18 +03:00