Any one have the current source? |
Any one have the current source? |
BadLife |
Dec 29 2008, 05:50 PM
Post
#1
|
RCBot Fan Group: Waypointers Posts: 144 Joined: 15-November 03 Member No.: 111 |
I can't seem to find a link to the current source. I know it's probably right out in the open but I sure don't see it.
|
w00tguy123 |
Jun 26 2013, 11:01 AM
Post
#2
|
Advanced Member Group: Members Posts: 69 Joined: 9-March 07 Member No.: 1,069 |
Hi Cheeseh,
I've been trying to get the latest sources (the ones you posted in this thread) working with SC 4.7. The problem I'm having atm is something you've already fixed, which is getting bots to recognize enemies. The source of the problem is in this snippet here from the IsEnemy function: CODE CBaseEntity *pEnt = CBaseEntity::Instance(pEnemypev); // (CBaseEntity*)GET_PRIVATE(pEntity); if ( !pEnt->m_fPlayerAlly ) { int iClass = pEnt->Classify(); ...... m_fPlayerAlly is always true, so IsEnemy never returns true. Even if I force my way into that if-statement the game crashes on calling Classify(). Do you remember what was changed to get this working? Or better yet, do you have the current source for RCBot 4.7? |
Cheeseh |
Jun 26 2013, 12:09 PM
Post
#3
|
Admin Group: Admin Posts: 3,057 Joined: 11-September 03 From: uk Member No.: 1 |
The basemonster/baseentity classes were changed by svencoop, they gave me the version they were using at about version 4.0 or 4.5 (i forgot). But any way I'm using their classify now, but it's still using the !playher_ally thing, so I'll remove that and try it out
|
Cheeseh |
Jun 26 2013, 04:41 PM
Post
#4
|
Admin Group: Admin Posts: 3,057 Joined: 11-September 03 From: uk Member No.: 1 |
The basemonster/baseentity classes were changed by svencoop, they gave me the version they were using at about version 4.0 or 4.5 (i forgot). But any way I'm using their classify now, but it's still using the !playher_ally thing, so I'll remove that and try it out I made the suggestion above by removing that line and tested it, it doesn't crash but not sure if any of the problems you mentioned have been fixed. Best thing to do if give you the dll and any others to test! http://rcbot.bots-united.com/downloads/rcbot_mm_sc47.7z (needs 7zip) |
w00tguy123 |
Jun 26 2013, 09:36 PM
Post
#5
|
Advanced Member Group: Members Posts: 69 Joined: 9-March 07 Member No.: 1,069 |
I made the suggestion above by removing that line and tested it, it doesn't crash but not sure if any of the problems you mentioned have been fixed. Best thing to do if give you the dll and any others to test! http://rcbot.bots-united.com/downloads/rcbot_mm_sc47.7z (needs 7zip) Ack, I should have been a bit more clear about what I was doing. You've already released a working .dll for SC 4.7, so there's nothing that needs to be fixed since your latest .dll works fine. I'm working with outdated sources (meant for SC 4.5, not 4.7) and trying to make them work with SC 4.7. That way I can make small changes to RCBot without having to bother you. I was hoping that you had the latest sources so I could avoid fixing bugs that have already been fixed. Sorry for the confusion! Also, thanks for the letting me know that the CBaseEntity changes with svencoop. That's probably why the old code isn't working now. I guess I'll need to ask the SC devs for help if the sources for the latest RCBot were lost. |
Lo-Fi Version | Time is now: 28th April 2024 - 08:05 PM |