3f27d2b3df
Change configuration format to YAML, allow configuring the address and ports
...
This removes all of the hardcoded localhost stuff, and allows changing the ports
of various services.
2025-03-22 16:47:21 -04:00
f523aa189f
Move login & world database code/logic to their own modules and structs
...
This should remove some of the pollution I added while working on these
features.
2025-03-22 16:15:29 -04:00
0900d0b94e
Implement basic character persistence, World <-> Lobby server communication
...
This is unfortunately lumped into one big commit, and is very hacky and WIP but
does indeed work! Since the Lobby and World server are two separate servers, it
uses it's own custom IPC packets (reusing the same packet structures as regular
game ones.)
The characters you create in the Lobby server are now saved in the World server,
but this is not yet reflected in the Lobby screen.
2025-03-21 19:56:16 -04:00
039f4d7f95
Move generate_sid to login server
2025-03-18 20:33:12 -04:00
fecfa821ad
Use PatchList from Physis
...
This is what the Physis implementation was based off of anyway, so it should be
more or less a drop-in replacement.
2025-03-17 17:36:43 -04:00
aee23a200b
Create timestamp_msecs function, run Clippy auto-fix
2025-03-17 17:31:22 -04:00
a8c740a322
Setup sessions table to keep track of active SIDs
...
This is very simple, as I just replace the last active session ID if you login
again. There's no way to invalidate them yet.
2025-03-16 21:15:58 -04:00
bd23c04848
Add a basic login system
...
This allows you to register in the web frontend now, and the login server now
checks this before giving a session ID. Note that this is wildly insecure (it
stores the passwords in plaintext!) and is duly noted in the USAGE.
2025-03-16 20:55:51 -04:00
ca5fa8e8b9
Fix various Clippy warnings
2025-03-08 23:07:55 -05:00
dd83b335dd
Re-run format, re-organize some code and run Clippy auto-fix
2025-03-08 21:54:03 -05:00
40ef6b8193
Run cargo fmt
2025-03-08 13:27:41 -05:00
bd9782a868
Move generate SID to its own dedicated function
2024-05-11 13:50:05 -04:00
7c30132e70
Fix more warnings on login
2024-05-11 12:32:46 -04:00
de2dd65167
Randomly generate the SID
2024-05-11 12:31:55 -04:00
c6df4aff86
Fix the wrong server message being printed for login/patch
2024-05-11 12:21:35 -04:00
e3ac03ffc4
Send HTML for /login/top again
2023-10-06 17:41:38 -04:00
1676846870
Attempt to fix garbage data problem
2023-10-05 13:58:26 -04:00
56418b98e2
Attempt to fix HTML response for /login/top
2023-10-05 13:44:49 -04:00
1e3ff59442
Accept the url query for /login/top
2023-10-05 13:32:08 -04:00
a78f13c289
/login/top is GET, not POST
2023-10-05 13:24:00 -04:00
8f19352528
Add login server
2023-10-05 13:09:21 -04:00