.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Forum (http://forums.bots-united.com/forumdisplay.php?f=36)
-   -   Want to use RB 1.0 on Steam ? (http://forums.bots-united.com/showthread.php?t=899)

Whistler 26-02-2004 04:24

Want to use RB 1.0 on Steam ?
 
The latest steam update has completely broken up RB 1.0, and Stefan won't update this....but don't worry, I have made a small fix for RB 1.0. It will allow you continue using it in current version of Steam.

It can be found at my homepage:
http://yapb.yeah.net

Enjoy !

DreamLord34 26-02-2004 04:42

Re: Want to use RB 1.0 on Steam ?
 
I am assuming you don't mean the latest WIP then?

Whistler 26-02-2004 04:48

Re: Want to use RB 1.0 on Steam ?
 
Sure. This is made for who doesn't like the "WIP" :)

stefanhendriks 26-02-2004 19:48

Re: Want to use RB 1.0 on Steam ?
 
how did you fix this?

edit:
i see, you have made an own dll. It probably uses the 'search for map_init entity' thingy to make rb aware the round has started. Neat! I will put this fix on my website (well a link to your website) if you don't mind?

Whistler 27-02-2004 04:22

Re: Want to use RB 1.0 on Steam ?
 
Quote:

Originally Posted by stefanhendriks
how did you fix this?

edit:
i see, you have made an own dll. It probably uses the 'search for map_init entity' thingy to make rb aware the round has started. Neat!

...very simple.
Code:

bool hltvreceived = false;
 
 int message_HLTV;
 
 void pfnMessageBegin(int msg_dest, int msg_type, const float *pOrigin, edict_t *ed)
 {
    if (msg_type == message_HLTV && msg_dest == 9)
          hltvreceived = TRUE;
    g_engfuncs.pfnMessageBegin(msg_dest, msg_type, pOrigin, ed);
 }
 
 int pfnRegUserMsg(const char *pszName, int iSize)
 {
    int iType = g_engfuncs.pfnRegUserMsg(pszName,iSize);
    if (FStrEq(pszName, "HLTV"))
          message_HLTV = iType;
    return iType;
 }
 
 void pfnWriteByte(int iValue)
 {
    if (hltvreceived)
    {
          if (iValue == 0)
                  g_bot_engfuncs->pfnFindEntityByString(NULL, "classname", "info_map_parameters");
    }
    hltvreceived = false;
    g_engfuncs.pfnWriteByte (iValue);
 }

About the g_bot_engfuncs thing:
Code:

void DLLEXPORT GiveFnptrsToDll( enginefuncs_t* pengfuncsFromEngine, globalvars_t *pGlobals )
 {
    memcpy(&g_engfuncs, pengfuncsFromEngine, sizeof(enginefuncs_t));
    gpGlobals = pGlobals;
    h_Library = LoadLibrary("realbot/dll/realbot.dll");
    assert(h_Library);
    other_GetEntityAPI = (GETENTITYAPI)GetProcAddress(h_Library, "GetEntityAPI");
    other_GetNewDLLFunctions = (GETNEWDLLFUNCTIONS)GetProcAddress(h_Library, "GetNewDLLFunctions");
    other_GiveFnptrsToDll = (GIVEFNPTRSTODLL)GetProcAddress(h_Library, "GiveFnptrsToDll");
    pengfuncsFromEngine->pfnMessageBegin = pfnMessageBegin;
    pengfuncsFromEngine->pfnRegUserMsg = pfnRegUserMsg;
    pengfuncsFromEngine->pfnWriteByte = pfnWriteByte;
 
    // give the engine functions to the other DLL...
    (*other_GiveFnptrsToDll)(pengfuncsFromEngine, pGlobals);
 
    g_bot_engfuncs = pengfuncsFromEngine;
 }

Quote:

I will put this fix on my website (well a link to your website) if you don't mind?
Of course I don't mind ! Go ahead...

p0ntius 07-03-2004 19:37

Re: Want to use RB 1.0 on Steam ?
 
Quote:

Originally Posted by Whistler
The latest steam update has completely broken up RB 1.0, and Stefan won't update this....but don't worry, I have made a small fix for RB 1.0. It will allow you continue using it in current version of Steam.

It can be found at my homepage:
http://yapb.yeah.net

Enjoy !

man good job dude!

Pierre-Marie Baty 07-03-2004 20:25

Re: Want to use RB 1.0 on Steam ?
 
yes, nice fix Whistler !

Have you already considered being part of the Bots United hosted websites ?

rObBoB44 11-03-2004 03:52

Re: Want to use RB 1.0 on Steam ?
 
Hello, Ive been having some trouble with any kind of bot I put on my server. I am using AMX (+WC3) & WinBooster and ibe been trying to get rb to work PROPERLY. I usually can get RB & AMX running for about an hour untill the server crashes with a fauting app as the Counter-Strike and faulting module Unkown. I like how this realfix fixes the bot's behaviors including gun usage but I need to know how to load realfix within the config.ini or plugins.ini in the metamod folder (metamod 1.17)

-TKS!

Terran 11-03-2004 10:53

Re: Want to use RB 1.0 on Steam ?
 
This "realfix.dll" is not a metamod plugin. Use it to replace the realbot.dll (in your liblist.gam or +localinfo ... command).

You don't need the realfix.dll if you use a WIP version.

Whistler 17-03-2004 11:14

Re: Want to use RB 1.0 on Steam ?
 
Quote:

Originally Posted by Terran
Use it to replace the realbot.dll.

No, you can 'replace' the realbot.dll with it since the realfix.dll will load realbot.dll


All times are GMT +2. The time now is 22:59.

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