Page 1 of 1

(protobuf-) messages crashes

Posted: Wed Jul 17, 2013 10:24 pm
by Omega_K2
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

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

Posted: Sun Jul 28, 2013 3:14 am
by L'In20Cible
Yeah, some messages for CS:GO are incomplete cause they can't really rely on the same system used for OB. To be honnest, it was a hurry-commit since I was leaving for at least 3 months (3-4 weeks left! :D ).

Posted: Sat Aug 24, 2013 3:51 pm
by Omega_K2
As for the VGUI Menu, adding "bool" fixes the first error, but another one comes up. SubKeys seem to be their own protobuf message in GO.