IPB

Welcome Guest ( Log In | Register )

> Properly compiling RCBot2
Lambda
post Sep 28 2009, 11:36 AM
Post #1


Member
**

Group: Members
Posts: 11
Joined: 28-September 09
Member No.: 1,700



I've been trying to recompile RCBot2 from the SVN since my servers crashes after 10 minutes with bots, I've checked the minidump and it crash at a random location of the RCBot dll so recompiling it should give me a new dll and a pdb so it will be easy to fix.

The problem is, i've recompiled the project under VS2008 (only in release, i cant get around the linker errors in the debug version), but when i load the DLL in the srcds (i'm using dedicated server) the server just hangs and crashes in about 20 seconds after the total hang and i have no idea why is this happening.

Im using the same OBSDK as i use for my metamod plugins which works fine (The one reverse engineered from allied modders), so it shouldnt be a SDK problem.

Is this a problem related with VC2008? have anyone managed to properly compile RCBot2 under VS2008 or should i use 2005 instead?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
bir3yk
post Oct 2 2009, 12:12 PM
Post #2


RCBot Fan
****

Group: Members
Posts: 107
Joined: 4-June 09
Member No.: 1,566



server crash!
like a sniper sets

m_iClass -310316751 TF_Class


CODE
    if ( p && p->IsPlayer() && (CClassInterface::getTF2Class(m_pLastEnemy) == TF_CLASS_SPY) && (thinkSpyIsEnemy(m_pLastEnemy)) )


00000000()
HPB_bot2.dll!CBotFortress::wantToFollowEnemy() Строка 1500 + 0xd байт C++
HPB_bot2.dll!CBotTF2::getTasks(unsigned int iIgnore=0) Строка 1713 + 0x9 байт C++
HPB_bot2.dll!CBot::think() Строка 536 C++
HPB_bot2.dll!CBots::botThink() Строка 2042 + 0x5 байт C++
HPB_bot2.dll!CRCBotPlugin::GameFrame(bool simulating=true) Строка 393 C++
engine.dll!0ed0d91e()
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Oct 2 2009, 02:07 PM
Post #3


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



ok scratch that, PlayerInfo is very dodgy...

try...

CODE

bool CBotFortress :: wantToFollowEnemy ()
{
    if ( !m_pLastEnemy )
        return false;
    if ( hasFlag() )
        return false;
    if ( getClass() == TF_CLASS_SCOUT )
        return false;
    if ( (m_iClass == TF_CLASS_SPY) && isDisguised() ) // sneak around the enemy
        return true;

    if ( ((ENTINDEX(m_pLastEnemy) > 0)&&(ENTINDEX(m_pLastEnemy)<=gpGlobals->maxClients)) && (CClassInterface::getTF2Class(m_pLastEnemy) == TF_CLASS_SPY) && (thinkSpyIsEnemy(m_pLastEnemy)) )
        return true; // always find spies!
    
    return CBot::wantToFollowEnemy();
}
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 21st July 2025 - 10:53 PM