DarkflameServer/dGame
David Markowitz a60865cd19
feat: allow SQLite database backend (#1663)
* simplify leaderboard code, fully abstract database

* update exception catching

* update exception catching and sql references, remove ugc from gamemessages

fix deleting model

remove unrelated changes

Update GameMessages.cpp

* remove ugc from gamemessages

* Update GameMessages.cpp

* Update Leaderboard.cpp

* bug fixes

* fix racing leaderboard

* remove extra stuff

* update

* add sqlite

* use a default for optimizations

* update sqlite

* Fix limits on update and delete

* fix bugs

* use definition to switch between databases

* add switch for different backends

* fix include guard and includes

* always build both

* add mysql if block

* Update Database.cpp

* add new options and add check to prevent overriding mysql

* correct config names

* Update README.md

* Update README.md

* merge to 1 sql file for sqlite database

* move to sqlite folder

* add back mysql migrations

* Update README.md

* add migration to correct the folder name or mysql

* yes aron

* updates

* Update CMakeLists.txt

* dont use paths at all, add where check to only update if folder name still exist

check also doesnt check for slashes and assumes one will be there since it will be.

* default dont auto create account

for releases we can change this flag

* default 0

* add times played query

* fix leaderboard not incrementing on a not better score

* add env vars with defaults for docker

* use an "enum"

* default to mariadb

* Update .env.example
2024-12-17 16:07:07 -08:00
..
dBehaviors consolidate the messagetype enums into a single namespace (#1647) 2024-11-17 18:39:44 -06:00
dComponents feat: allow SQLite database backend (#1663) 2024-12-17 16:07:07 -08:00
dEntity fix: Dissolve more CMake dependencies (#1387) 2024-03-05 20:13:24 -06:00
dGameMessages fix: Implement missing survival tooltip script (#1679) 2024-12-16 13:35:36 -06:00
dInventory Add more modular saving of config data for items (#1591) 2024-05-22 17:06:52 -07:00
dMission Use the correct bit field for checking whether or not to decrement progress (#1631) 2024-08-11 10:26:25 -07:00
dPropertyBehaviors use a cast 2024-12-14 17:55:41 -08:00
dUtilities feat: Remove reinterpret_casts from AG race timer script and add method and chat command to get current server uptime (#1673) 2024-12-17 14:06:16 -06:00
Character.cpp feat: Add some save data tests (#1623) 2024-11-17 16:27:33 -08:00
Character.h feat: Add some save data tests (#1623) 2024-11-17 16:27:33 -08:00
CMakeLists.txt feat: allow SQLite database backend (#1663) 2024-12-17 16:07:07 -08:00
Entity.cpp fix: implement enemy clear threat script (#1678) 2024-12-15 23:44:57 -06:00
Entity.h fix: implement enemy clear threat script (#1678) 2024-12-15 23:44:57 -06:00
EntityManager.cpp feat: Provide SerializeEntity constant reference overload (#1491) 2024-03-06 19:23:24 -06:00
EntityManager.h feat: Provide SerializeEntity constant reference overload (#1491) 2024-03-06 19:23:24 -06:00
LeaderboardManager.cpp fix leaderboard not incrementing on a not better score (#1674) 2024-12-10 05:37:49 -06:00
LeaderboardManager.h feat: re-write leaderboards again and fully remove mysql dependency outside of database (#1662) 2024-12-06 05:03:47 -06:00
PlayerManager.cpp chore: Player class removal (#1445) 2024-02-04 06:29:05 -08:00
PlayerManager.h chore: Player class removal (#1445) 2024-02-04 06:29:05 -08:00
TeamManager.cpp Teams: Default team loot to ffa (#1224) 2023-10-18 09:18:22 -05:00
TeamManager.h Teams: Default team loot to ffa (#1224) 2023-10-18 09:18:22 -05:00
TradingManager.cpp close trade window (#1457) 2024-02-11 21:00:39 -06:00
TradingManager.h close trade window (#1457) 2024-02-11 21:00:39 -06:00
User.cpp fix: use after free and uninitialized memory (#1603) 2024-05-30 23:53:03 -05:00
User.h fix: Remove database requirements for Property Entrance Component and greatly simplify logic (#1650) 2024-11-23 15:56:31 -06:00
UserManager.cpp consolidate the messagetype enums into a single namespace (#1647) 2024-11-17 18:39:44 -06:00
UserManager.h refactor: Database abstraction and organization of files (#1274) 2023-11-17 18:47:18 -06:00