.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Help request (http://forums.bots-united.com/forumdisplay.php?f=37)
-   -   Changing install directory (WIP9 Linux) (http://forums.bots-united.com/showthread.php?t=4150)

DoucheBag 25-06-2005 22:54

Changing install directory (WIP9 Linux)
 
I am currently renting a linux CS 1.6 server (linux exact specs not available). RealBot WIP #9

I am NOT able to install RealBot to the parent folder of "cstrike" as permission is denied. I did, however, install the "RealBot" folder to cstrike/addons (while adding the line: linux addons/RealBot/dlls/realbot_mm_i386.so to metamod/plugins.ini). RealBot was successfully loaded, and I could add/remove bots like normal. The only problem is that they can't save what they have learned about a particular map.

I realize the simpile solution would be to contact my server's admins and request that I gain permission to install it to the "correct" directory...but that doesn't solve anyone else's problem who is also renting a linux machine.

Is there any possible way to edit the code to redirect RealBot to save exp and maps to a different folder than the default at its default location? Perhaps add a simple line to a .cfg that points to where they should be saved.

Whistler 26-06-2005 02:22

Re: Changing install directory (WIP9 Linux)
 
get the source code, grep for "UTIL_BuildFileNameRB" and change this one:

strcpy(filename, "realbot/");

to:

strcpy(filename, "cstrike/addons/realbot/");

then recompile the bot. This may be the only way to do so.

DoucheBag 26-06-2005 07:51

Re: Changing install directory (WIP9 Linux)
 
Thank you for the quick reply.

I am pretty inexperienced in working with linux, so this follow-up question might sound ridiculous... Is there any linux editing/compiling program that is available for use on Windows machines?

Or does the source code edit easily with say Dreamweaver/Text Editor and also include a compiler?


All times are GMT +2. The time now is 02:37.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.