Add database setup (LosaGame, LosaGame_log, LosaLogData, Backup, backup/restore) and the tested one-PC server config

This commit is contained in:
LosaDev committed 2026-11-07 20:36:19 +07:00
1 parent c198676e97
commit 17e8463b49
243 files changed
+1405092

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
-- LosaDev 2019: the 15-character key the game server reads at start (define_encode_key,
-- game_encode_get_fix_key). setup-db.bat asks for it (ENCODE_KEY).
USE [LosaGame]
GO
IF LEN(N'$(ENCODE_KEY)') <> 15 RAISERROR('ENCODE_KEY must be 15 characters', 16, 1)
ELSE IF NOT EXISTS (SELECT 1 FROM dbo.define_encode_key WHERE encodeKey = '$(ENCODE_KEY)')
INSERT INTO dbo.define_encode_key (encodeKey, regDate) VALUES ('$(ENCODE_KEY)', GETDATE())
GO