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