- Mesaj
- 24
- Beğeni
- 34
- Puan
- 660
- Ticaret Puanı
- 0
Merhaba, sıfırdan altyapı serisini takip ediyorum serverinfo.py dosyasını videodaki gibi düzenleyince şöyle bir görüntü oluşuyor.
Python:
import app
app.ServerName = None
SERVER1 = {
"name": "Test",
"host": "192.168.0.24",
"auth": "11900",
"ch1": "13900",
"ch2": "13920",
}
STATE_NONE = "..."
STATE_DICT = {
0: "....",
1: "NORM",
2: "BUSY",
3: "FULL"
}
SERVER01_CHANNEL_DICT = {
1: {"key": 11, "name": "CH1", "ip": SERVER1["host"], "tcp_port": SERVER1["ch1"], "udp_port": SERVER1["ch1"], "state": STATE_NONE, },
2: {"key": 12, "name": "CH2", "ip": SERVER1["host"], "tcp_port": SERVER1["ch2"], "udp_port": SERVER1["ch2"], "state": STATE_NONE, },
}
REGION_NAME_DICT = {
0: SERVER1["name"],
}
REGION_AUTH_SERVER_DICT = {
0: {
1: {"ip": SERVER1["host"], "port": SERVER1["auth"], },
}
}
REGION_DICT = {
0: {
1: {"name": SERVER1["name"], "channel": SERVER01_CHANNEL_DICT, },
},
}
MARKADDR_DICT = {
10: {"ip": SERVER1["host"], "tcp_port": SERVER1["ch1"], "mark": "10.tga", "symbol_path": "10", },
}
Kod:
1129 02:21:00776 :: Traceback (most recent call last):
1129 02:21:00776 :: File "uiPhaseCurtain.py", line 61, in OnUpdate
1129 02:21:00776 :: File "networkModule.py", line 150, in __ChangePhaseWindow
1129 02:21:00776 :: File "introLogin.py", line 285, in Open
1129 02:21:00776 :: File "introLogin.py", line 1050, in __OpenServerBoard
1129 02:21:00777 :: File "ui.py", line 2375, in SelectItem
1129 02:21:00777 :: File "ui.py", line 87, in __call__
1129 02:21:00777 :: File "ui.py", line 69, in __call__
1129 02:21:00777 :: File "introLogin.py", line 1165, in __OnSelectServer
1129 02:21:00777 :: File "introLogin.py", line 1179, in __RequestServerStateList
1129 02:21:00777 :: TypeError
1129 02:21:00777 :: :
1129 02:21:00777 :: an integer is required
1129 02:21:00777 ::