[GZDoom 3.5.1]Bug: "Only Settings Controller Can Add Bots"

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
Siberian Tiger
Posts: 476
Joined: Fri Jun 12, 2009 11:23 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10 Pro. 22H2
Graphics Processor: nVidia (Modern GZDoom)
Location: United States
Contact:

[GZDoom 3.5.1]Bug: "Only Settings Controller Can Add Bots"

Post by Siberian Tiger »

I have noticed this small issue when trying to setup a DM game with this new version release. However, I don't remember getting this same issue with the 3.5.0 release.

Steps to reproduce:
  • Start the engine
  • Start a new game (regardless of the gametype)
  • Activate the Console
  • Use the CCMD 'AddBot'
Video that illustrates this issue:
Video Discarded
Last edited by Siberian Tiger on Sun Sep 16, 2018 3:51 pm, edited 1 time in total.
User avatar
Rachael
Posts: 13555
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: [GZDoom 3.5.1]Bug: "Only Settings Controller Can Add Bot

Post by Rachael »

This bug is easy to confirm, just did in 3.5.1. I unfortunately don't have the time to look into it but I suspect a variable init got broken or omitted somewhere.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3141
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: [GZDoom 3.5.1]Bug: "Only Settings Controller Can Add Bot

Post by drfrag »

Haven't checked but i think the problem was introduced in "- got rid of FNameNoInit and made the default constructor of FName non-initializing."
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [GZDoom 3.5.1]Bug: "Only Settings Controller Can Add Bot

Post by Graf Zahl »

The difference is, now player_t explicitly initializes its settings_controller member variable, the old implementation did not. Apparently there are some dirty side effects at work here which depend on the value not getting cleared on a player reset. A player reset has always been supposed to be complete, so I had changed the inline initialization to set all fields, including the ones that were left in the old version. In this case it apparently just hid a bug in the implementation that, from the looks of it, does not properly set up this thing when a player gets reset.
PixelWAD
Posts: 188
Joined: Sun Jun 10, 2018 7:01 pm

Re: [GZDoom 3.5.1]Bug: "Only Settings Controller Can Add Bot

Post by PixelWAD »

I have the same issue. Is there a workaround or I need to reverse to previous version?
User avatar
Siberian Tiger
Posts: 476
Joined: Fri Jun 12, 2009 11:23 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10 Pro. 22H2
Graphics Processor: nVidia (Modern GZDoom)
Location: United States
Contact:

Re: [GZDoom 3.5.1]Bug: "Only Settings Controller Can Add Bot

Post by Siberian Tiger »

PixelWAD wrote:I have the same issue. Is there a workaround or I need to reverse to previous version?
I am unaware of a workaround, but if you need that functionality - merely roll back to GZDoom 3.5.0 until the issue is resolved.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3141
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: [GZDoom 3.5.1]Bug: "Only Settings Controller Can Add Bot

Post by drfrag »

AFAIK it's fixed in recent devbuilds.
User avatar
camper
Posts: 103
Joined: Sun Feb 25, 2018 10:53 am
Location: Tatarstan

Re: [GZDoom 3.5.1]Bug: "Only Settings Controller Can Add Bot

Post by camper »

Is there any other way to add bots to the game?
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: [GZDoom 3.5.1]Bug: "Only Settings Controller Can Add Bot

Post by _mental_ »

This was fixed in 5b7d3c9.
User avatar
Siberian Tiger
Posts: 476
Joined: Fri Jun 12, 2009 11:23 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10 Pro. 22H2
Graphics Processor: nVidia (Modern GZDoom)
Location: United States
Contact:

Re: [GZDoom 3.5.1]Bug: "Only Settings Controller Can Add Bot

Post by Siberian Tiger »

_mental_ wrote:This was fixed in 5b7d3c9.
Thank you for the feedback and a big thanks to the Devs for keeping this port alive! :D
I will discard the demonstration video as it is unnecessary presently.
PixelWAD
Posts: 188
Joined: Sun Jun 10, 2018 7:01 pm

Re: [GZDoom 3.5.1]Bug: "Only Settings Controller Can Add Bot

Post by PixelWAD »

I have to roll back to 3.5.0 and wait for more stable version. I'm having issues with dev builds.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: [GZDoom 3.5.1]Bug: "Only Settings Controller Can Add Bot

Post by _mental_ »

If you think that stable versions are built from some different codebase that magically solves all issues then you are wrong.
The next major release would be exactly the same as the last devbuild with exception of its version number.
User avatar
Rachael
Posts: 13555
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: [GZDoom 3.5.1]Bug: "Only Settings Controller Can Add Bot

Post by Rachael »

In fact, if the issue is not reported, make sure to report it. If it's already reported, please add as many details as you can.

What you see at a given moment in Dev Builds is always going to be a candidate for whatever release may be following them.
PixelWAD
Posts: 188
Joined: Sun Jun 10, 2018 7:01 pm

Re: [GZDoom 3.5.1]Bug: "Only Settings Controller Can Add Bot

Post by PixelWAD »

Once I'm back from holiday I'll check the most modern build and see if it fixed the issues I was experiencing.

On the other hand, how did this bug occurred in 3.5.1 in the first place? It's not only about bots. I can't even changemap in multiplayer mode, or even change gameplay settings.
User avatar
Enjay
 
 
Posts: 26534
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: [GZDoom 3.5.1]Bug: "Only Settings Controller Can Add Bot

Post by Enjay »

Probably by a tiny error in thousands of lines of code affecting a game mode that the devs don't play very often?
Post Reply

Return to “Closed Bugs [GZDoom]”