(protobuf-) messages crashes

Please post any questions about developing your plugin here. Please use the search function before posting!
Omega_K2
Senior Member
Posts: 227
Joined: Sat Jul 07, 2012 3:05 am
Location: Europe
Contact:

(protobuf-) messages crashes

Postby Omega_K2 » 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

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))
Libraries: k2tools
Plugins (any): GSRPG (soon) | Pretty Status List | MySQLAds (soon)
Plugins (game-specific): None atm

If you happen to find a bug or need help, either post in the release threads or contact me in IRC gamesurge.net:6667 / #sourcepython
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Sun Jul 28, 2013 3:14 am

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 ).
Omega_K2
Senior Member
Posts: 227
Joined: Sat Jul 07, 2012 3:05 am
Location: Europe
Contact:

Postby Omega_K2 » Sat Aug 24, 2013 3:51 pm

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.
Libraries: k2tools

Plugins (any): GSRPG (soon) | Pretty Status List | MySQLAds (soon)

Plugins (game-specific): None atm



If you happen to find a bug or need help, either post in the release threads or contact me in IRC gamesurge.net:6667 / #sourcepython

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 62 guests