Index: code/game/ai_main.c =================================================================== --- code/game/ai_main.c (revision 697) +++ code/game/ai_main.c (working copy) @@ -1628,6 +1628,9 @@ //cd directory trap_Cvar_VariableStringBuffer("fs_cdpath", buf, sizeof(buf)); if (strlen(buf)) trap_BotLibVarSet("cddir", buf); + //home directory + trap_Cvar_VariableStringBuffer("fs_homepath", buf, sizeof(buf)); + if (strlen(buf)) trap_BotLibVarSet("homedir", buf); // #ifdef MISSIONPACK trap_BotLibDefine("MISSIONPACK"); Index: code/botlib/be_interface.c =================================================================== --- code/botlib/be_interface.c (revision 697) +++ code/botlib/be_interface.c (working copy) @@ -136,12 +136,14 @@ int Export_BotLibSetup(void) { int errnum; + char logfilename[MAX_QPATH]; bot_developer = LibVarGetValue("bot_developer"); memset( &botlibglobals, 0, sizeof(botlibglobals) ); // bk001207 - init //initialize byte swapping (litte endian etc.) // Swap_Init(); - Log_Open("botlib.log"); + Com_sprintf(logfilename, sizeof(logfilename), "%s%cbotlib.log", LibVarGetString("homedir"), PATH_SEP); + Log_Open(logfilename); // botimport.Print(PRT_MESSAGE, "------- BotLib Initialization -------\n"); //