From 4e43ff6f9ed9b1c373c6e423addae3f39bb32855 Mon Sep 17 00:00:00 2001 From: John Cote Date: Sat, 7 Sep 2024 17:57:27 -0400 Subject: [PATCH] otpgo: Add database and dbss roles --- otpgo/config/otp.yml | 30 ++++++++++++++++++++++++++++++ otpgo/databases/.gitignore | 4 ++++ otpgo/databases/otpdb/.gitignore | 1 + otpgo/lua/ToontownClient.lua | 2 +- 4 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 otpgo/databases/.gitignore create mode 100644 otpgo/databases/otpdb/.gitignore diff --git a/otpgo/config/otp.yml b/otpgo/config/otp.yml index 81a8762..fcec391 100644 --- a/otpgo/config/otp.yml +++ b/otpgo/config/otp.yml @@ -58,6 +58,36 @@ roles: - class: CentralLogger id: 4688 + - type: database + control: 4003 + generate: + min: 100000000 + max: 199999999 + backend: + type: yaml + directory: databases/otpdb + objects: + - class: Account + id: 1 + + - class: DistributedToon + id: 2 + + - class: DistributedEstate + id: 3 + + - class: DistributedHouse + id: 4 + + - class: DistributedPet + id: 5 + + - type: dbss + database: 4003 + ranges: + min: 100000000 + max: 199999999 + - type: eventlogger bind: 127.0.0.1:4343 output: logs/events-%Y%m%d_%H%M%S.log diff --git a/otpgo/databases/.gitignore b/otpgo/databases/.gitignore new file mode 100644 index 0000000..4dd3589 --- /dev/null +++ b/otpgo/databases/.gitignore @@ -0,0 +1,4 @@ +*.db +*.bak +*.dat +*.dir diff --git a/otpgo/databases/otpdb/.gitignore b/otpgo/databases/otpdb/.gitignore new file mode 100644 index 0000000..1e82fc7 --- /dev/null +++ b/otpgo/databases/otpdb/.gitignore @@ -0,0 +1 @@ +*.yaml diff --git a/otpgo/lua/ToontownClient.lua b/otpgo/lua/ToontownClient.lua index 85a64fb..292a378 100644 --- a/otpgo/lua/ToontownClient.lua +++ b/otpgo/lua/ToontownClient.lua @@ -2,5 +2,5 @@ package.path = package.path .. ";lua/?.lua" function receiveDatagram(client, dgi) msgType = dgi:readUint16() - print(msgType) + print(msgType) end