View Single Post
Re: First beta release of YaPB 2
Old
  (#9)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 453
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: First beta release of YaPB 2 - 19-05-2006

Thanks, i've already found this bug, while porting bot to be able use different botnames & chat using language cvar. i've simply put InitConfig () into ServerActivate (), and add yapb.cfg exec into GameDLLInit ().

So names.cfg & chat.cfg is now affected by language cvar, and located in language directory...

Quote:
btw, I would recommend using dynamic memory allocation for the translator which can save a lot of memory.
ok

P.S.
Adding execution of config onto top of InitConfig () has no effect (but i don't know why). Language is changing but not after execution.

P.P.S
Also fixed crash, when bots trying to use chat, when it wasn't loaded correctly...

Last edited by jeefo; 19-05-2006 at 16:43..
  
Reply With Quote