rcbotCheeseh / RCBotSven5

RCBot (Angelscript) for Svencoop 5
GNU General Public License v3.0
31 stars 5 forks source link

Bots randomly and repeatedly committing suicide #12

Open darkfvtvre opened 2 years ago

darkfvtvre commented 2 years ago

For some reason after updating to the latest version the bots like to commit suicide repeatedly. Is there a way to prevent them from doing this as I do not even see what purpose this could have as the bots committing suicide doesn't seem to have any advantage and it spams the console. Thanks.

rcbotCheeseh commented 2 years ago

The bots will suicide if they cannot do any tasks (tasks keep failing) . This could be due to the fact there are no waypoints for the map, or if there are waypoints, there are no paths for the bots to complete their desired task.

I've update the code to add a command where you can disable this feature

as_command rcbot.suicide 0

default is '1'

latest commit: a63ce94cafff28af6538cd378d1454b21cc0c380

darkfvtvre commented 2 years ago

Is it possible for me to disable this from the .AS file itself without having to create an automated timed console command input? Or do I just put a line in server.cfg?

rcbotCheeseh commented 2 years ago

create a file "BotManager/config/config.ini" , open it in notepad and type in a new line

suicide=0

let me know if that helps

darkfvtvre commented 2 years ago

They still commit suicide

rcbotCheeseh commented 2 years ago

try latest commit

darkfvtvre commented 2 years ago

This actually does not seem to do anything. They still commit suicide even after adding suicide=0 to config.ini

My file looks like this.

config.ini

Runs commands in here every time a bot is being added by default on server, prefix with ! to run on client being added

quota=1

suicide=0


From: Paul Murphy @.> Sent: Saturday, July 30, 2022 10:11 AM To: rcbotCheeseh/RCBotSven5 @.> Cc: TheReflectingVoid @.>; Author @.> Subject: Re: [rcbotCheeseh/RCBotSven5] Bots randomly and repeatedly committing suicide (Issue #12)

create a file "BotManager/config/config.ini" , open it in notepad and type in a new line

suicide=0

let me know if that helps

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FrcbotCheeseh%2FRCBotSven5%2Fissues%2F12%23issuecomment-1200164659&data=05%7C01%7C%7C92e97ed2477249e8094308da7235711e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637947871104464242%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fg9%2FIaFxxOY4W%2BTOzOyUw4%2Bg2vJNSUN1At35QD9Ul1A%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FANQJ73XWGXZ5HEAFKPADM33VWUZ2JANCNFSM54NOHIWA&data=05%7C01%7C%7C92e97ed2477249e8094308da7235711e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637947871104464242%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=PWXCfGVQ%2F4TSabYNUXV894dDQ8mB2dZFTyFcHaS0FJY%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>