Zandronum Chat @ irc.zandronum.com
#zandronum
Get the latest version: 3.0
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003775Zandronum[All Projects] Bugpublic2020-03-25 04:542020-03-29 19:48
Reportersosleepy 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformLinuxOSUbuntu x86_64OS VersionEoan
Product Version3.0 
Target VersionFixed in Version 
Summary0003775: Bots should not attempt to chat when bot_allowchat is false
DescriptionSummary is self-explanatory.
Attached Filespng file icon screenshot.png [^] (100,432 bytes) 2020-03-26 17:29

- Relationships

-  Notes
User avatar (0021235)
sosleepy (reporter)
2020-03-25 07:12

The bot stops to chat when botcmd_Delay() is called, but the solution is not modifying that function. The cleanest approach is to prevent the chat command from being pushed to the stack, and I have no idea where and how that happens.
User avatar (0021236)
sosleepy (reporter)
2020-03-25 18:40

Bot commands are issued by BOTCMD_RunCommand() (duh), called by CSkullBot::ParseScript, the command is determined by the value of sdwBuffer.
User avatar (0021237)
sosleepy (reporter)
2020-03-25 18:57

BOTCMD_e is an enum passed as an argument to BOTCMD_RunCommand(), the following values are relevant: BOTCMD_DELAY (2), BOTCMD_SAY (49), BOTCMD_SAYFROMFILE (50), BOTCMD_SAYFROMCHATFILE (51), BOTCMD_BEGINCHATTING (52), BOTCMD_STOPCHATTING (53), BOTCMD_CHATSECTIONEXISTS (54), BOTCMD_CHATSECTIONEXISTSINFILE (55), BOTCMD_GETLASTCHATSTRING (56), BOTCMD_GETLASTCHATPLAYER (57), BOTCMD_GETCHATFREQUENCY (58), BOTCMD_SAYFROMLUMP (89), BOTCMD_SAYFROMCHATLUMP (90), BOTCMD_CHATSECTIONEXISTSINLUMP (91), BOTCMD_CHATSECTIONEXISTSINCHATLUMP (92).
User avatar (0021240)
WubTheCaptain (reporter)
2020-03-26 11:54
edited on: 2020-03-26 11:56

Quote
Bots should not attempt to chat when bot_allowchat is false

Quote
Summary is self-explanatory.

This is as intended, no issue here.
If they do attempt to chat while bot_allowchat is false, that would be an issue.

User avatar (0021241)
sosleepy (reporter)
2020-03-26 17:30

Screenshot added with the bug happening.
User avatar (0021242)
Vicious Pariah (reporter)
2020-03-27 00:24
edited on: 2020-03-27 01:27

I do recall this being a longstanding glitch with it. The bot full-stops (ceases all movement) to "chat" but it would seem that instead of preventing them from stopping; the only difference is no chat actually goes through. They should not stop.

User avatar (0021245)
Torr Samaho (administrator)
2020-03-29 19:34

Yeah, this is a bug, but I fear it's a bug in the (compiled) bot script, not in our bot VM. Properly fixing it would need to fix the script, which would need a bot script compiler, which we don't have, since Carn lost the source ages ago.
User avatar (0021246)
sosleepy (reporter)
2020-03-29 19:48

Googling around I found these:
https://zandronum.com/forum/viewtopic.php?p=114212#p114212 [^]
https://github.com/TarCV/botc [^]

Issue Community Support
Only registered users can voice their support. Click here to register, or here to log in.
Supporters: Vicious Pariah
Opponents: WubTheCaptain

- Issue History
Date Modified Username Field Change
2020-03-25 04:54 sosleepy New Issue
2020-03-25 07:12 sosleepy Note Added: 0021235
2020-03-25 18:40 sosleepy Note Added: 0021236
2020-03-25 18:57 sosleepy Note Added: 0021237
2020-03-26 11:54 WubTheCaptain Note Added: 0021240
2020-03-26 11:54 WubTheCaptain Note Edited: 0021240 View Revisions
2020-03-26 11:55 WubTheCaptain Note Edited: 0021240 View Revisions
2020-03-26 11:56 WubTheCaptain Note Edited: 0021240 View Revisions
2020-03-26 17:29 sosleepy File Added: screenshot.png
2020-03-26 17:30 sosleepy Note Added: 0021241
2020-03-27 00:24 Vicious Pariah Note Added: 0021242
2020-03-27 01:27 Vicious Pariah Note Edited: 0021242 View Revisions
2020-03-29 19:34 Torr Samaho Note Added: 0021245
2020-03-29 19:48 sosleepy Note Added: 0021246






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker