.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
[TFC] FoxBot help
Old
  (#1)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 216
Join Date: Feb 2013
Location: Dundee, Scotland
Depressed [TFC] FoxBot help - 04-07-2018

Hello I know this site didn't host nor had FoxBot coders here, but me and my TFC buddies are in need for some bot coding hellp.

What it is I've had to fix some of Zybby's leftover bugs from FoxBot 0.77 and left the project in 2010. I do have some contact with RedFox and Dr Evil but they wish not to get involved with FoxBot anymore.

So far I did manage to fix some errors thanks to Safety1st and Arkshine as well as my testers recently. I've reached to version 0.791 but there are some huge flaws: syntax errors for Assault maps and the bot_job_think.cpp (not included until 0.76 came). However it appears that FoxBot 0.75 had no major bugs until the huge step was taken for advanced features but wasn't properly tested nor fixed.

I had a look on the foxbot.log and it gave me some syntax errors for warpath and dustbowl from 0.791. I don't know if the .far FoxBot area files are corrupt but I suspect it could be a problem with the engine itself:-

Code:
Syntax error, unrecognised command

on_start
 {
  blue_notavailable_point1
  blue_available_point2
  blue_notavailable_point3
  blue_notavailable_point4
  blue_notavailable_point5
  red_notavailable_point1
  red_notavailable_point2
  red_notavailable_point3
  red_available_point4
  red_notavailable_point5
 }

on_msg(#cz_bcap2)
 {
  blue_notavailable_point1
  blue_notavailable_point2
  blue_available_point3
  blue_notavailable_point4
  blue_notavailable_point5
  if_red_point1
   {
    red_notavailable_point1
    red_available_point2
    red_notavailable_point3
    red_notavailable_point4
    red_notavailable_point5
   }
 }

on_msg(#cz_bcap3)
 {
  blue_notavailable_point1
  blue_notavailable_point2
  blue_notavailable_point3
  blue_available_point4
  blue_notavailable_point5
  if_red_point2
   {
    red_notavailable_point1
    red_notavailable_point2
    red_available_point3
    red_notavailable_point4
    red_notavailable_point5
   }
 }

on_msg(#cz_bcap4)
 {
  blue_notavailable_point1
  blue_notavailable_point2
  blue_notavailable_point3
  blue_notavailable_point4
  blue_available_point5
  if_red_point3
   {
    red_notavailable_point1
    red_notavailable_point2
    red_notavailable_point3
    red_available_point4
    red_notavailable_point5
   }
 }

on_msg(#cz_rcap2)
 {
  red_available_point1
  red_notavailable_point2
  red_notavailable_point3
  red_notavailable_point4
  red_notavailable_point5
  if_blue_point3
   {
    blue_notavailable_point1
    blue_available_point2
    blue_notavailable_point3
    blue_notavailable_point4
    blue_notavailable_point5
   }
 }

on_msg(#cz_rcap3)
 {
  red_notavailable_point1
  red_available_point2
  red_notavailable_point3
  red_notavailable_point4
  red_notavailable_point5
  if_blue_point4
   {
    blue_notavailable_point1
    blue_notavailable_point2
    blue_available_point3
    blue_notavailable_point4
    blue_notavailable_point5
   }
 }

on_msg(#cz_rcap4)
 {
  red_notavailable_point1
  red_notavailable_point2
  red_available_point3
  red_notavailable_point4
  red_notavailable_point5
  if_blue_point5
   {
    blue_notavailable_point1
    blue_notavailable_point2
    blue_notavailable_point3
    blue_available_point4
    blue_notavailable_point5
   }
 }

on_msg(#warpath_blue_wins) 
 {
  blue_notavailable_point1
  blue_available_point2
  blue_notavailable_point3
  blue_notavailable_point4
  blue_notavailable_point5
  red_notavailable_point1
  red_notavailable_point2
  red_notavailable_point3
  red_available_point4
  red_notavailable_point5
 }

on_msg(#warpath_red_wins) 
 {
  blue_notavailable_point1
  blue_available_point2
  blue_notavailable_point3
  blue_notavailable_point4
  blue_notavailable_point5
  red_notavailable_point1
  red_notavailable_point2
  red_notavailable_point3
  red_available_point4
  red_notavailable_point5
 }

Syntax error, unrecognised command

on_start
 {
  blue_attack
  red_defend
  blue_available_only_point1
  red_available_only_point1
 }

on_msg(#dustbowl_blue_secures_one)
 {
  blue_available_only_point2
  red_available_only_point2
 }

on_msg(#dustbowl_blue_secures_two)
 {
  blue_available_only_point3
  blue_available_point8
  red_available_only_point3
 }

on_msg(#dustbowl_blue_caps)
 {
  blue_available_only_point1
  red_available_only_point1
 }

on_msg(#dustbowl_red_defends)
 {
  blue_available_only_point1
  red_available_only_point1
 }
Now even so that FoxBot 0.75 performs better on most of the TFC maps, but they are not compatible with waypoints made for 0.76 or better. Any help or useful suggestions will be great.

FoxBot 0.75 src code:-
https://apg-clan.org/vbdownloads.php...ownloadid=1113

Latest FoxBot 0.791-beta src code:-
https://github.com/APGRoboCop/foxbot





vBulletin Webmaster since 2001
  
Reply With Quote
Re: [TFC] FoxBot help
Old
  (#2)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: [TFC] FoxBot help - 08-07-2018

As you already mentioned, no one here was involved in FoxBot development and since most of the bot developers are busy with their lives don't expect to find any help here about the issues you have...
  
Reply With Quote
Re: [TFC] FoxBot help
Old
  (#3)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 216
Join Date: Feb 2013
Location: Dundee, Scotland
Default Re: [TFC] FoxBot help - 10-07-2018

Well I think there's a problem with the way GCC/G++ compiles the Linux side of Foxbots. The bots doesn't appear to obey the waypoints nor get in position for defending flags or CPs for Linux. The Win32 version appears to be running fine and those bots don't have those problems. It must be missing some important #includes for the libs or headers, along for the #ifdef for __linux__. The newer FoxBot had some heavy adjustments for the new navigate, think and waypoint scripts - as well as adding new cvars.

The Makefile seems to be the same apart from the version number and needing the new .cpp files added for the GCC compiler. It appears that it isn't compatible with GCC/GCC 6 nor clang, so I maybe best to investigate those problems by myself.





vBulletin Webmaster since 2001

Last edited by RoboCop; 10-07-2018 at 21:55..
  
Reply With Quote
Re: [TFC] FoxBot help
Old
  (#4)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 216
Join Date: Feb 2013
Location: Dundee, Scotland
Default Re: [TFC] FoxBot help - 16-07-2018

Update: it appears Linux got a problem due to tchar.h in dll.cpp as that isn't used for Linux. I did try some solution like this, but doesn't appear to have resolved that issue. Any idea's what is causing the bots to not obey properly?

Code:
#ifdef _UNICODE //Fix by Globoss - [APG]RoboCop[CL]
typedef wchar_t TCHAR;
#else
typedef char TCHAR;
#endif





vBulletin Webmaster since 2001
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com