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 Sep 29 2009, 05:13 AM
Post #2


RCBot Fan
****

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



I have everything working svn 115 properly with VS2008 in DEBUG mode, release did not try. read http://developer.valvesoftware.com/wiki/Co...ng_under_VS2008

svn 115 debug VS2008 http://www.megaupload.com/?d=VNI6GC2Q
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Sep 29 2009, 01:25 PM
Post #3


Admin
*****

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



change the follow enemy function to this,

CODE

bool CBot::wantToFollowEnemy ()
{
    return getHealthPercent() > 0.5;
}


I'd need to know the exact line of the "getTF2Class " crash and the call stack, if possible.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Lambda
post Sep 30 2009, 01:07 PM
Post #4


Member
**

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



QUOTE(Cheeseh @ Sep 29 2009, 01:25 PM) *

change the follow enemy function to this,

CODE

bool CBot::wantToFollowEnemy ()
{
    return getHealthPercent() > 0.5;
}


I'd need to know the exact line of the "getTF2Class " crash and the call stack, if possible.


Thanks for the fix, i dont have the dump crash of getTF2class right now but if it happens again i'll tell you the details.

Also, i've read in the RCbot2 forum that there's a crash related with the attacker when a bot takes damage from the world, is fixed in the svn? if not, what is the fix?.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Sep 30 2009, 07:43 PM
Post #5


Admin
*****

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



QUOTE(Lambda @ Sep 30 2009, 02:07 PM) *

Thanks for the fix, i dont have the dump crash of getTF2class right now but if it happens again i'll tell you the details.

Also, i've read in the RCbot2 forum that there's a crash related with the attacker when a bot takes damage from the world, is fixed in the svn? if not, what is the fix?.

it should be fixed, the fix is in the Bot Event for player death
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


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

 



- Lo-Fi Version Time is now: 21st July 2025 - 11:02 PM