IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> debug commands
Cheeseh
post Feb 7 2013, 08:34 AM
Post #1


Admin
*****

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



rcbot debug bot <botname>

first use this command to debug a particular bot

rcbot debug bot_goto

stand on a waypoint while debugging a bot, and the bot will go to the waypoint you are standing at, for debugging paths

rcbot debug bot_flush

clears all bot tasks and starts again. If bot is stuck on some task you can use this to kick start the bot.

rcbot debug util 1

prints what <bot name> is choosing to do

rcbot debug task 1

prints what's happening in the bots current task

rcbot debug nav 1

prints / shows navigation debug information

------------------------------ get prop commands ----------------------------

these commands are useful for finding variables stored in entities

rcbot debug findclass <class substring>

will find the correct classname with <class substring> e.g.

rcbot findclass player

might print...

CODE

CDODPlayer
CBasePlayer


Then you know what classes exist

rcbot debug printprops <class>

prints all known variables for the entity <class>

e.g.

rcbot debug printprops CDODGameRulesProxy

will print something like...

CODE

m_flRestartRoundTime
baseclass
m_bAlliesAreBombing
dod_gamerules_data
m_bAxisAreBombing
m_iRoundState
m_AlliesRespawnQueue
m_bInWarmup


rcbot debug getprop CDODGameRulesProxy <variable>

this will return a value for this variable in several formats (int,float,vector,bool)

It finds the nearest entity with this classname (unfortunatlely CBasePlayer/CDODPlayer will always find you!)

e.g.

rcbot debug getprop CDODGameRulesProxy m_bInWarmup

will print something like

CODE

bool = true, int = 1, float = ... etc...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
genmac
post Feb 11 2013, 06:54 AM
Post #2


RCBot Guru
*****

Group: Waypointers
Posts: 571
Joined: 11-November 11
Member No.: 2,098



Nice! very useful for tracking down stuff on the bot and map's entities.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

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: 17th June 2025 - 12:22 AM