(protobuf-) messages crashes
Posted: Wed Jul 17, 2013 10:24 pm
Fade:
color doesn't seem to be passed properly:
Method: google::protobuf::Reflection::FieldSize
Message type: CCSUsrMsg_Fade
Field: CCSUsrMsg_Fade.clr
Problem: Field is singular; the method requried a repeated field
KeyHintText:
message doesn't seem to be passed properly:
Method: google::protobuf::Reflection::SetString
Message type: CCSUsrMsg_KeyHintText
Field: CCSUsrMsg_KeyHintText.hints
Problem: Field is repeated; the method requries a singular field
TextMsg:
message doesn't seem to be passed properly:
Method: google::protobuf::Reflection::SetString
Message type: CCSUsrMsg_TextMsg
Field: CCSUsrMsg_TextMsg.params
Problem: Field is repeated; the method requries a singular field
Edit...
VGUIMenu:
show is passed of improper type (why is it a bool anyway? must be a programming error somewhere in the base user message, according to the file it is a byte (though I suppose it should be long?))
Method: google::protobuf::Reflection::SetInt32
Message type: CCSUsrMsg_VGUIMenu
Field: CCSUsrMsg_VGUIMenu.show
Problem: Field is not the right type for this message:
Expceted: CPPTYPE_INT32
Field type: CPPTYPE_BOOL
color doesn't seem to be passed properly:
Method: google::protobuf::Reflection::FieldSize
Message type: CCSUsrMsg_Fade
Field: CCSUsrMsg_Fade.clr
Problem: Field is singular; the method requried a repeated field
Code: Select all
from commands.client import ClientCommand
from players.helpers import index_from_playerinfo
@ClientCommand('test')
def test(playerinfo, command):
m = messages.KeyHintText(duration=3,hold_time=3,flags=1)
m.send(index_from_playerinfo(playerinfo))
KeyHintText:
message doesn't seem to be passed properly:
Method: google::protobuf::Reflection::SetString
Message type: CCSUsrMsg_KeyHintText
Field: CCSUsrMsg_KeyHintText.hints
Problem: Field is repeated; the method requries a singular field
Code: Select all
from commands.client import ClientCommand
from players.helpers import index_from_playerinfo
@ClientCommand('test')
def test(playerinfo, command):
m = messages.KeyHintText(message='Test')
m.send(index_from_playerinfo(playerinfo))
TextMsg:
message doesn't seem to be passed properly:
Method: google::protobuf::Reflection::SetString
Message type: CCSUsrMsg_TextMsg
Field: CCSUsrMsg_TextMsg.params
Problem: Field is repeated; the method requries a singular field
Code: Select all
from commands.client import ClientCommand
from players.helpers import index_from_playerinfo
@ClientCommand('test')
def test(playerinfo, command):
m = messages.KeyHintText(destination=1, message='Test')
m.send(index_from_playerinfo(playerinfo))
Edit...
VGUIMenu:
show is passed of improper type (why is it a bool anyway? must be a programming error somewhere in the base user message, according to the file it is a byte (though I suppose it should be long?))
Method: google::protobuf::Reflection::SetInt32
Message type: CCSUsrMsg_VGUIMenu
Field: CCSUsrMsg_VGUIMenu.show
Problem: Field is not the right type for this message:
Expceted: CPPTYPE_INT32
Field type: CPPTYPE_BOOL
Code: Select all
from commands.client import ClientCommand
from players.helpers import index_from_playerinfo
@ClientCommand('test')
def test(playerinfo, command):
m = messages.VGUIMenu(name='motd', show=1, subkeys={'title': "Test", 'type': 2, 'msg': 'http://www.google.de'})
m.send(index_from_playerinfo(playerinfo))