Chat history but in SQLite#166
Conversation
Fixes: ``` - malformed pattern (missing ']') 1. match - [C]:-1 2. Populate - addons/easychat-master/lua/easychat/client/vgui/emote_picker.lua:119 3. <unknown> - addons/easychat-master/lua/easychat/client/vgui/emote_picker.lua:26 ```
* Remove x64 warning We finally have CEF on main, so this check doesn't make much sense anymore * Replace checks
* Fix betterttv * Cache betterttv framerate * Minor mistake * Just remove attempt limit, endpoint is sometimes taking over a minute to process a gif when overloaded from the emote picker * Double delay between requests * Include global as well * Wrong endpoint
Allows you to determine whether a message is local in `player_say` gamevent This is useful if you want to support both enabled and disabled easychat players
* Don't use RichNick in DM tab Because of this, player nicknames with custom formatting will be unreadable * Fix lua error
If you try to open a macro with an invalid json structure, an error will occur that will break the entire EasyChat
- into sqlite - includes colors (an attempt with opencode big pickle with some manual testing and sanity checking)
| if richtext.HistoryName then | ||
| richtext._Segments = {} | ||
| end | ||
| local segs = richtext._Segments |
|
@Python1320 do you save steamid information? What about player information in general, like what happens if I click on someone's name in the history, do the correct menus show up? |
|
Additionally one of the features of the current history was that it was easily accessible/readable in the data folder, i think if we're using sqlite, there should at least be a way to see your histories somewhere in settings and/or to export them as .txt |
|
TLDR of below: Same functionality as before: Only colors and text are stored. for PMs steamid is still stored in the other table. No links are stored, though they could be with the extensible json format. I thought the whole history thing was work in progress as I was always getting garbled data. Maybe it is just the legacy richtext 🤔 I couldn't validate the old because it didn't work for me (I suspect it is because easychat is opening the file for reading and writing at the same time). As far as I understood the richtext history code, it doesn't store clickable links, etc either and we just relied on the text having steamids instead of links containing the metadata. SQlite: Next idea for another PR related to this so I don't forget what triggered staring at the code to begin with: chacha20+maybe poly encrypted per-server PMs/conversations so other servers cannot read them (clients receive decryption key from servers, "unique" per client, not sure if we can do better without binary modules). |
|
@Python1320 the current version of the history doesn't store that data but since you're changing it to make it look more like normal chat then user expectations will change as well hence my questions |
|
PR got closed automatically because I did some email cleanup you might need to redo it |
Unfortunately coded with Opencode Big Pickle as an experiment so I will still need to comb through everything and squash the loading problem, but it works:
Tables:
Concerns:
Future: