diff --git a/otpgo/config/otp.yml b/otpgo/config/otp.yml index f372147..81a8762 100644 --- a/otpgo/config/otp.yml +++ b/otpgo/config/otp.yml @@ -34,3 +34,30 @@ uberdogs: - class: TTSpeedchatRelay id: 4712 + +roles: + - type: clientagent + bind: 0.0.0.0:6667 + version: "sv1.0.47.38" + lua_file: "lua/ToontownClient.lua" + database: 4003 + client: + relocate: true + add_interest: enabled + heartbeat_timeout: 60 + channels: + min: 1000000000 + max: 1009999999 + + - type: stateserver + control: 20100000 + objects: + - class: DistributedDirectory + id: 4618 + + - class: CentralLogger + id: 4688 + + - type: eventlogger + bind: 127.0.0.1:4343 + output: logs/events-%Y%m%d_%H%M%S.log diff --git a/otpgo/logs/.gitignore b/otpgo/logs/.gitignore new file mode 100644 index 0000000..397b4a7 --- /dev/null +++ b/otpgo/logs/.gitignore @@ -0,0 +1 @@ +*.log diff --git a/otpgo/lua/ToontownClient.lua b/otpgo/lua/ToontownClient.lua new file mode 100644 index 0000000..85a64fb --- /dev/null +++ b/otpgo/lua/ToontownClient.lua @@ -0,0 +1,6 @@ +package.path = package.path .. ";lua/?.lua" + +function receiveDatagram(client, dgi) + msgType = dgi:readUint16() + print(msgType) +end