otpgo: Add database and dbss roles

This commit is contained in:
John Cote 2024-09-07 17:57:27 -04:00
parent cc692bfbde
commit 4e43ff6f9e
4 changed files with 36 additions and 1 deletions

View File

@ -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

4
otpgo/databases/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*.db
*.bak
*.dat
*.dir

1
otpgo/databases/otpdb/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.yaml

View File

@ -2,5 +2,5 @@ package.path = package.path .. ";lua/?.lua"
function receiveDatagram(client, dgi)
msgType = dgi:readUint16()
print(msgType)
print(msgType)
end