128 Commits

Author SHA256 Message Date
6d35d15ac3 - add: ability to refresh the current session
- add: delete type to delete character request
- add: ability to update key in redis
- add: handle alive packet to refresh the session
- fix: delete now actually returns the time remaining correctly
- fix: character list now has the correct time until character deletion
2025-01-08 02:03:27 -05:00
584892ab97 - fix: compile issue on windows due to incorrect signal handling function call 2025-01-07 23:48:23 -05:00
db868cc1ac - add: Character service now loads the data from the database and sends it in the character list packet
- add: character id list to the connection state for tracking the real character database id's for when the client requests actions on the character
- fix: sql error when trying to create a character
2025-01-07 22:16:47 -05:00
cb6ee657f0 - add: Character service can now actually create a character correctly in the database
- add: character db client to allow the character service to talk to the database service
- update: character.proto to make character data shared
2025-01-07 13:41:07 -05:00
c6c502fd8a - remove: duplicated data entries in the character db schema 2025-01-07 13:38:48 -05:00
9f63a5fd3a - update: moved signal handler into utils crate to make it easier to update
- fix: windows compile issue due to exposed unix signal
2025-01-05 22:49:55 -05:00
f8243fe68c - fix: character service to compile issues with new packet structure 2025-01-05 22:17:12 -05:00
2153583813 - update: item_list type changed to a fixed array in character list reply 2025-01-05 20:57:13 -05:00
2ef85f85db - update: NullTerminatedString now derives Clone and Default 2025-01-05 20:56:32 -05:00
fb8f9cccf4 - update: function calls to character service in the packet service now actually use the call the correct requests
- update: character select list builds the equipped item list dynamically
2025-01-05 17:18:05 -05:00
b01432501c - update: character service grpc protocol additions for create, delete and get character with stubs 2025-01-05 17:16:02 -05:00
7417d2d6dd - update: grpc character db api now includes getting the character list 2025-01-05 17:09:28 -05:00
4a826d2a46 - update: packet router to have the various services needed for the packets to be local to it.
- add: character service grpc client calls
2025-01-04 17:45:54 -05:00
00468e9600 - update: generate_service_id function call now takes in the service name so the id file isn't always called utils_service_id.txt 2024-12-27 19:04:54 -05:00
17f653c629 - update: packet server character handler
- add: character grpc client interface to packet service
2024-12-27 19:00:06 -05:00
f99fda9e1a - add: character service grpc server impl for getting the character list 2024-12-27 18:58:45 -05:00
bdc2384f12 - update: character.proto to return character list 2024-12-27 18:57:47 -05:00
0bf8fd9bee - add: handlers for character create/delete/select 2024-12-21 18:30:05 -05:00
c40293e354 - update: character id type in connection state to match the client 2024-12-21 18:28:15 -05:00
7c8e5a52c6 - fix: panic on network client disconnect before actually logging in 2024-12-21 18:27:34 -05:00
f55ca79410 - add: join server handler
- add: validate session function to validate the session status
2024-12-21 15:39:51 -05:00
069a471bbb - fix: incorrect packet ids for Join Server Token req and reply 2024-12-21 15:37:30 -05:00
7698cb95ff - update: docker compose will now restart the service on failure 2024-12-21 13:23:44 -05:00
754522b080 - update: Dockerfile layer reordering to speed up build times and lower image space needed
- add: .dockerignore file to reduce file transfers and remove unneeded files in image
2024-12-21 13:10:37 -05:00
0777bd4605 - fix: user_id and session id were not being saved in the state correctly
- add: server and channel id to connection state
2024-12-20 17:48:02 -05:00
9d9e2bef05 - add: session_id to the validate token response
- add: session_id to the jwt generated token
2024-12-20 17:46:54 -05:00
e0114fd832 - add: get_connection_mut function to allow modifying the connection state 2024-12-20 17:44:22 -05:00
e3fb186a44 - fix: when shutting down a docker container, the services would not deregister from consul correctly 2024-12-20 17:42:50 -05:00
18afa71d74 - add: logout grpc function
- add: logout packet handler
- add: connection state and service for storing connection data
- add: session service calls to auth-service
- fix: compile error on database service due to moved redis cache
2024-12-20 14:46:00 -05:00
3c1f8c40d6 - add: session-service
- move: redis_cache from database service to utils so it can be reused
- update: redis_cache set function to allow creating a key without a lifetime
- update: services to use the new get_or_generate_service_id function
2024-12-20 14:43:25 -05:00
07e991fbdc - add: function to get the service id if already ran, if not we now generate then store the id for future app runs (useful for docker containers) 2024-12-20 14:38:25 -05:00
9e530c2d55 - fix: issue compiling due to sqlx::query! throwing error on windows 2024-12-18 12:44:28 -05:00
a444fa4558 - fix: launcher not passing args properly 2024-12-18 12:15:44 -05:00
9735b59598 - fix: consul.json file encoding 2024-12-18 01:05:03 -05:00
fd358d3c27 - update: docker-compose.yml
- update: Register page to have better error feedback
2024-12-17 21:38:33 -05:00
aaa7143b11 - update: health check status output to health log 2024-12-17 20:03:12 -05:00
ee29fef634 - fix: launcher not parsing the launch command correctly
- add: explicit linux support for the launcher
2024-12-17 18:25:57 -05:00
9c61b1b3f2 - add: frontend webpage for login/register 2024-12-17 17:03:55 -05:00
c67cdd5b2a - fix: issue where login failed to return the user if their role was null
- add: register route for api-service
- update: spawn a thread for the rest api in the api service
2024-12-17 04:06:56 -05:00
52455d6ffc - update: major refactor of the database-service to make it easy to add newer api services
- add: character database api
2024-12-17 01:58:18 -05:00
267422adb4 - add: database schema
- add: ability to delete keys from RedisCache
- update: docker compose to init the database with the schema
2024-12-17 01:54:46 -05:00
277d25a820 - add: docker-compose.yml to run the services
- add: .env.example for the config for docker
2024-12-15 01:50:55 -05:00
1b2d6bdac2 - update: code cleanup
- update: reworked how the launch params are parsed
2024-12-15 01:41:42 -05:00
860b319a03 - add: command line arguments for updating and launching
- add: stub for updating game
2024-12-14 23:41:24 -05:00
ff3f6b2148 - add: service version to metadata when registering with consul 2024-12-14 23:39:39 -05:00
7194eb88fa - fix: docker libssl in slim image
- fix: api service default rest api address and port was incorrect
- update: database service to use dedicated function for running the health check api
2024-12-14 05:54:32 -05:00
c17d498b93 - fix: docker containers would fail to load libssl3
- add: missing character service docker file
2024-12-14 05:31:33 -05:00
e179b3b995 - add: Dockerfile for building docker containers 2024-12-14 04:13:34 -05:00
697231965b - update: default listen address is now set to 0.0.0.0 2024-12-14 04:13:02 -05:00
0fd2b0f9b1 - add: character and world proto stubs 2024-12-14 01:55:15 -05:00