![]() |
![]() |
J@nek |
![]()
Post
#1
|
Member ![]() ![]() Group: Members Posts: 19 Joined: 18-May 09 Member No.: 1,541 ![]() |
Hi,
I have a strange problem with the linux version. When I start my mod without starting any plug and load the plugin manually by typing plugin_load addons/HPB_Bot2_server_plugin in console comand it is loading plugin fine. When I start my mod and load plugin automatically using +plugin_load command in .sh start command or using a .vdf file in addons folder, I have a "segmentation fault" error. I don't understand where I can get the veruy last version of HPB_bot2. I will try this svn thingy once again but the last time I didn't succeed to connect to the repo. Is there a .zip containing the whole latest RCbot2 source file somewhere that I could download ? J. |
![]() ![]() |
bir3yk |
![]()
Post
#2
|
RCBot Fan ![]() ![]() ![]() ![]() Group: Members Posts: 107 Joined: 4-June 09 Member No.: 1,566 ![]() |
read bot_main.cpp.
CODE bool CRCBotPlugin::Load( CreateInterfaceFn interfaceFactory, CreateInterfaceFn gameServerFactory ) { extern MTRand_int32 irand; ConnectTier1Libraries( &interfaceFactory, 1 ); ConnectTier2Libraries( &interfaceFactory, 1 ); LOAD_GAME_SERVER_INTERFACE(playerinfomanager,IPlayerInfoManager,INTERFACEVERSION_PLAYERINFOMANAGER); gpGlobals = playerinfomanager->GetGlobalVars(); LOAD_INTERFACE(engine,IVEngineServer,INTERFACEVERSION_VENGINESERVER); LOAD_INTERFACE(filesystem,IFileSystem,FILESYSTEM_INTERFACE_VERSION); LOAD_INTERFACE(helpers,IServerPluginHelpers,INTERFACEVERSION_ISERVERPLUGINHELPERS); LOAD_INTERFACE(enginetrace,IEngineTrace,INTERFACEVERSION_ENGINETRACE_SERVER); LOAD_GAME_SERVER_INTERFACE(servergameents,IServerGameEnts,INTERFACEVERSION_SERVERGAMEENTS); LOAD_GAME_SERVER_INTERFACE(g_pEffects,IEffects,IEFFECTS_INTERFACE_VERSION); LOAD_GAME_SERVER_INTERFACE(g_pBotManager,IBotManager,INTERFACEVERSION_PLAYERBOTMANAGER); #ifndef __linux__ LOAD_INTERFACE(debugoverlay,IVDebugOverlay,VDEBUG_OVERLAY_INTERFACE_VERSION); #endif LOAD_INTERFACE(gameeventmanager,IGameEventManager2,INTERFACEVERSION_GAMEEVENTSMANAGER2) LOAD_INTERFACE(gameeventmanager1,IGameEventManager,INTERFACEVERSION_GAMEEVENTSMANAGER) LOAD_GAME_SERVER_INTERFACE(servergamedll,IServerGameDLL,"ServerGameDLL006"); LOAD_GAME_SERVER_INTERFACE(gameclients,IServerGameClients,INTERFACEVERSION_SERVERGAMECLIENTS); MathLib_Init( 2.2f, 2.2f, 0.0f, 2.0f ); ConVar_Register( 0 ); //InitCVars( interfaceFactory ); // register any cvars we have defined srand( (unsigned)time(NULL) ); // initialize the random seed irand.seed( (unsigned)time(NULL) ); eventListener2 = new CRCBotEventListener(); // Initialize bot variables CBotProfiles::setupProfiles(); CBotGlobals::gameStart(); //CBotEvents::setupEvents(); CWaypointTypes::setup(); CWaypoints::setupVisibility(); CRCBotPlugin::ShowLicense(); RandomSeed((unsigned int)time(NULL)); return true; } |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 17th June 2025 - 05:03 PM |