You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, i have it running for Quake 3 , we play on a mod that has special characters for names ( mod excessiveplus ) , when users with long names !register , it outputs this error:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf7 in position 20: ordinal not in range(128)
i had a friend edit the clients.py to recognize our mod names, changes starting from line 544:
newName=name.strip()
newName=self.fixExcessivePlusName(name)
ifself._name==newName:
ifself.console:
self.console.verbose2('Aborted making alias for cid %s: name is the same'%self.cid)
returnifself.cid=='-1'orself.cid=='Server': # bfbc2 additionifself.console:
self.console.verbose2('Aborted making alias for cid %s: must be B3'%self.cid)
returnself.makeAlias(self._name)
self._name=newNameself._exactName=newName+'^7'ifself.consoleandself.authed:
self.console.queueEvent(self.console.getEvent('EVT_CLIENT_NAME_CHANGE', self.name, self))
def_get_name(self):
returnself._namedeffixExcessivePlusName(self, name):
xpname='';
forcinname :
iford(c) <32orord(c) >=127 :
xpname+="#"+c.encode("hex");
else :
xpname+=c;
returnxpnamedef_get_exactName(self):
returnself._exactName
any suggestions ?
thanks.
The text was updated successfully, but these errors were encountered:
users must had non ascii character on his name and as for my knowledge b3 only work with ascii characters. can you send whole error from the log file ?
Hello, i have it running for Quake 3 , we play on a mod that has special characters for names ( mod excessiveplus ) , when users with long names !register , it outputs this error:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf7 in position 20: ordinal not in range(128)
i had a friend edit the clients.py to recognize our mod names, changes starting from line 544:
any suggestions ?
thanks.
The text was updated successfully, but these errors were encountered: