Up
5d6bfe0c22
add accounts activity index
2024-05-12 05:12:46 +02:00
Krystian Chmura
03865f9b94
run golangci-lint in CI
2024-05-11 14:41:25 +02:00
maru
36f353b8a6
Clean up db.go
2024-05-11 02:30:20 -04:00
maru
5656fb96d1
Use log.Fatal isntead of panic
2024-05-11 02:24:20 -04:00
Flashfyre
2704e64e38
Add newclear endpoint
2024-05-10 18:07:14 -04:00
maru
693663103b
Run formatter on files
2024-05-10 15:49:26 -04:00
maru
b5e8094039
Don't return INVALID on seed-related function error
2024-05-10 15:44:35 -04:00
Up
3ed5f41d58
make server automatically create DB schema if not exists ( #5 )
...
* add default values for CLI args
* add development docker compose file
* prevent crash if userdata dir does not exist
* accounts, acccountStats
* account stats and create db indices
* compensations and daily runs
* ensure uniqueness of daily seed
* start on port 8001 by default for client parity
* make generated schema match production
* sort imports
2024-05-10 15:30:47 -04:00
maru
e4de7c2391
Update database limiting code more
2024-05-09 14:22:20 -04:00
maru
de0bd74dc2
Update database limits
2024-05-09 14:13:19 -04:00
maru
59ea469fb6
Don't import legacy saves if system exists in database
2024-05-09 05:59:48 -04:00
maru
4971ad9d42
Add new database limits
2024-05-08 20:19:33 -04:00
maru
7dbcb18ebf
Use INSERT instead of REPLACE for savedata storage functions
2024-05-08 17:23:07 -04:00
maru
6cb179b553
Clean up savedata.go
2024-05-07 20:38:12 -04:00
Up
0d6539a87b
continue on existing save ( #3 )
...
* long blob
* fix continue
* one slot only?
* fallback if there is no slot data yet
* Revert "one slot only?"
This reverts commit 20997e9cd8
.
2024-05-07 19:14:07 -04:00
Up
1f95f7c042
hotfix: move save data to DB ( #2 )
...
* start reading save data from DB
* finish migration code
* remove leftover dir creation
* fix import cycle
* remove more dir creation
* update gitignore
* fix pk
* better table creation
* use REPLACE INTO
* fix typo
2024-05-07 17:10:33 -04:00
maru
a087234aa8
Replace usernameFromRequest
2024-05-05 16:12:10 -04:00
maru
808a9e6c7d
Remove redundant error check
2024-05-05 16:08:43 -04:00
Flashfyre
3553891e6e
Temporarily remove session expiration check
2024-05-05 14:57:58 -04:00
Flashfyre
e19104c86a
Prevent initial out of date message on register
2024-04-30 14:59:58 -04:00
maru
512a24e5c3
Remove anti cheat
2024-04-30 14:34:40 -04:00
maru
786e947e09
Change 'banned' to 'limited
2024-04-30 00:32:55 -04:00
maru
8481626193
Relicense under AGPL
2024-04-29 17:26:46 -04:00
maru
235fb9c91c
Add copyright notice to files
2024-04-29 15:32:58 -04:00
maru
e8240c9c38
Rename to rogueserver
2024-04-29 15:22:27 -04:00
maru
e184e9da91
Ban if vouchers over a certain threshold
2024-04-28 20:59:53 -04:00
maru
cbcc68f8e4
Add password changes
2024-04-28 17:27:58 -04:00
maru
54d4d9a389
Set max open MariaDB connections
2024-04-25 16:27:24 -04:00
maru
2adb70dd7e
Styling consistency
2024-04-25 15:11:26 -04:00
Flashfyre
2f8c2d3f07
Match trainer and secret ID on update for data integrity
2024-04-25 09:56:56 -04:00
maru
768900d885
Change seedCompletions to dailyRunCompletions
2024-04-25 03:40:22 -04:00
Flashfyre
6acbb6448a
Protect against cross-session overwrites
2024-04-21 16:23:25 -04:00
maru
beb829d20f
Remove redundant padding insert in TryAddSeedCompletion
2024-04-18 02:36:14 -04:00
maru
522ce9f4fa
Update GitHub link
2024-04-14 19:25:36 -04:00
Matthew Olker
6a0a130b1d
Nil check battle and classic session count
2024-04-11 18:40:37 -04:00
Flashfyre
a4014feea8
Track player vouchers
2024-04-11 10:13:35 -04:00
Flashfyre
992864b785
Add voucher compensation logic
2024-04-09 22:22:00 -04:00
maru
0edfeab3ca
Various styling changes
2024-04-08 18:15:09 -04:00
Flashfyre
dcb1c76370
Add endpoints for stats
2024-04-06 18:15:47 -04:00
Flashfyre
99d3490172
Update account stats on system save
2024-04-06 17:43:11 -04:00
maru
d12a008259
Various changes
2024-04-01 22:54:55 -04:00
Flashfyre
fa972bab37
Don't include banned users on rankings
2024-04-01 21:08:00 -04:00
Flashfyre
7d23859dea
Add player count handler
2024-03-23 21:34:18 -04:00
Flashfyre
2495c1ee9a
Fix incorrect page count for weekly rankings
2024-03-23 16:33:26 -04:00
Flashfyre
53ccdc5921
Add weekly rankings and ranking pagination support
2024-03-23 16:26:00 -04:00
Flashfyre
48c533cb78
Fix higher score being overwritten by worse daily runs
2024-03-22 21:42:27 -04:00
Flashfyre
be04408336
Update random daily seed logic
2024-03-18 19:55:02 -04:00
Flashfyre
2cb7be52eb
Change daily seed generation and update schema for recording failed daily runs
2024-03-17 20:48:49 -04:00
Flashfyre
4710617f23
Add limit and pagination to rankings query
2024-03-17 13:36:32 -04:00
Flashfyre
ff98047caa
Add daily run rankings
2024-03-17 13:18:51 -04:00