MantisBT - Zandronum
View Issue Details
0001670Zandronum[All Projects] Suggestionpublic2014-01-16 23:022018-09-30 22:00
Beed28 
Torr Samaho 
normalmajorN/A
closedfixed 
MicrosoftWindows8.1
1.2 
3.03.0 
0001670: Increase the limit of bots that can be defined
Our mod (the name of which I'm withholding out of fear of causing a flame war) is coming dangerously close to hitting the hard limit Zandronum imposes on the number of bots that can be defined, which after testing, appears to be 128. A later update to the coremod later this year will add even more bots. There is a mod released for it that adds loads of custom classes for it, each coming with a retrospective bot. However, when I have a few custom bots using custom skins defined, some of the bots for said classes mod won't appear, as in they can't be added through the console or even shown up in the bot setup menu in the Offline Skirmish menu.
No tags attached.
Issue History
2014-01-16 23:02Beed28New Issue
2014-01-17 11:04DuskNote Added: 0008040
2014-01-17 11:05DuskNote Edited: 0008040bug_revision_view_page.php?bugnote_id=8040#r4417
2014-01-17 15:26Beed28Note Added: 0008042
2014-01-18 10:32Torr SamahoProduct Version2.0-beta => 1.2
2014-06-15 15:01WatermelonNote Added: 0009407
2014-06-15 15:01WatermelonStatusnew => feedback
2016-06-30 12:43CelebiNote Added: 0015155
2016-07-02 12:13Torr SamahoNote Added: 0015166
2016-07-02 13:30Torr SamahoAssigned To => Torr Samaho
2016-07-02 13:30Torr SamahoStatusfeedback => assigned
2016-07-02 13:30Torr SamahoStatusassigned => feedback
2016-07-02 21:01CelebiNote Added: 0015197
2016-07-03 15:59WaTaKiDNote Added: 0015207
2016-07-03 16:16Torr SamahoNote Added: 0015208
2016-07-30 21:28DuskStatusfeedback => needs testing
2016-08-18 18:45CombinebobntNote Added: 0015493
2016-08-18 21:24Ru5tK1ngStatusneeds testing => resolved
2016-08-18 21:24Ru5tK1ngResolutionopen => fixed
2016-08-18 21:24Ru5tK1ngFixed in Version => 3.0
2016-08-18 21:24Ru5tK1ngTarget Version => 3.0
2018-09-30 22:00Blzut3Statusresolved => closed

Notes
(0008040)
Dusk   
2014-01-17 11:04   
(edited on: 2014-01-17 11:05)
I think the proper solution here would be to make g_BotInfo a TArray and remove the limit completely.

EDIT: or hrm, if the botinfo index is ever sent to the client we might have to still keep the limit to some degree.

Quote
(the name of which I'm withholding out of fear of causing a flame war)

I don't think one should need to censor out information to avoid flamewars. If anyone stirs up shit it will just be deleted.

(0008042)
Beed28   
2014-01-17 15:26   
Alright. The mod I was talking about was MM8BDM-v3b, which has tons and tons of skins, most of which have their own bots. There is a side mod released for it called CSCC (Cutstuff Community Classes) that adds many unique classes to it, each with their own bot as well.

However, I load MM8BDM with several bots of my own using skins I downloaded as well, and with at least 8 custom bots, I hit the limit when adding CSCC, and thus the last three bots defined in CSCC fail to show up.
(0009407)
Watermelon   
2014-06-15 15:01   
Same in 2.0?
(0015155)
Celebi   
2016-06-30 12:43   
There is still a limit of 128 defined bots in Zandronum 3.0-alpha-160519-2047.
(0015166)
Torr Samaho   
2016-07-02 12:13   
I made an experimental build that uses a TArray for g_BotInfo. Please test if successfully removes that limit.
(0015197)
Celebi   
2016-07-02 21:01   
Using that build, I checked 1000+ different bot defines in a BOTINFO and there were no issues for any of them.
(0015207)
WaTaKiD   
2016-07-03 15:59   
i tried building'https://bitbucket.org/Torr_Samaho/zandronum/commits/88e532d74d73e09ebd1312aeef55fcaf887d6985 [^]'

but i got an error:

Error C2065 'MAX_BOTINFO': undeclared identifier zdoom C:\ZanSrc\zandronum\src\menu\menudef.cpp 1419
(0015208)
Torr Samaho   
2016-07-03 16:16   
Thanks for the info! Something seems to be wrong with VC++'s or CMake's dependency handling. VC++ didn't recompile menudef.cpp after I removed MAX_BOTINFO, so it didn't complain for me about the missing define. Anyway, should be fixed now.
(0015493)
Combinebobnt   
2016-08-18 18:45   
tested with 160814-2010, defined 200+ bots, and was able to add the last ones defined.