Author Topic: Single Player Bug in R1Q2 b8012, Cause and Workaround  (Read 4755 times)

Offline QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1241
    • View Profile
  • Rated:
Single Player Bug in R1Q2 b8012, Cause and Workaround
« on: October 02, 2011, 03:37:09 PM »
Release b8012 is confirmed not to load SP mode in a system with the full commercial version of Q2 installed. The program insists that single player data is missing. This appears to be a malfunction in the StartGame function in the new version. It checks to see if base1 will load. There is a bug introduced in this version as a result of StartGame calling the CM_MapWillLoad function which looks for two files, base1.bsp and base1.override. This function gets called twice, first by StartGame looking in the Quake2 root folder for both of these files and the second time by SV_GameMap_f looking for them in the maps folder. BOTH tests must pass, indicating that one or the other file exists or the game will fail to start. Since base.bsp is properly stored in the maps folder of pak0.pak it never exists in the quake2 root. The result is that the first call, by GameStart doesn't find base1.bsp or base1.override in the root and announces the failure, preventing SP mode.

You can work around this bug by putting an empty base1.override file into your Quake2\baseq2 folder.

Once that file exists and you restart r1q2, the empty override file will be found in the root, passing the first test and base1.bsp will be found in the maps folder of pak0.pak on the second pass and you will be able to play single player.

« Last Edit: October 02, 2011, 05:37:12 PM by QwazyWabbit »
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline Sgt. Dick

  • Brobdingnagian Member
  • ***
  • Posts: 4687
    • View Profile
  • Rated:
Re: Single Player Bug in R1Q2 b8012, Cause and Workaround
« Reply #1 on: October 02, 2011, 06:19:37 PM »
Where can I find the base1 override  :?:
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
aka IOU

Offline Zeppelin

  • Carpal Tunnel Member
  • ******
  • Posts: 1116
  • aka Cajmere
    • View Profile
  • Rated:
Re: Single Player Bug in R1Q2 b8012, Cause and Workaround
« Reply #2 on: October 02, 2011, 06:35:56 PM »
i just typed "deathmatch 0" and "map base1" and the SP mode worked well!
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1241
    • View Profile
  • Rated:
Re: Single Player Bug in R1Q2 b8012, Cause and Workaround
« Reply #3 on: October 02, 2011, 07:16:19 PM »
Yes, simply creating an empty text file and renaming it is exactly what I did.

It looks like the test for the files is premature. I don't know why r1ch decided to add this, I think it's pointless and should never have been added to a "final" release.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline Sgt. Dick

  • Brobdingnagian Member
  • ***
  • Posts: 4687
    • View Profile
  • Rated:
Re: Single Player Bug in R1Q2 b8012, Cause and Workaround
« Reply #4 on: October 03, 2011, 03:48:23 AM »
Thanks, I will do that.   :bananaw00t:
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
aka IOU

Offline X7

  • Sr. Member
  • ****
  • Posts: 442
  • Quake II
    • View Profile
  • Rated:
Re: Single Player Bug in R1Q2 b8012, Cause and Workaround
« Reply #5 on: November 03, 2011, 07:16:41 AM »
Why would you use the R1Q2 client to play single player game? R1Q2 does not load the cin files that part of the game.

As far as I know R1Q2 was make for the DM game that why the default deathmatch = 1


X7  :exqueezeme:
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Quake II

Offline QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1241
    • View Profile
  • Rated:
Re: Single Player Bug in R1Q2 b8012, Cause and Workaround
« Reply #6 on: November 03, 2011, 02:04:06 PM »
Why would you use the R1Q2 client to play single player game? R1Q2 does not load the cin files that part of the game.

As far as I know R1Q2 was make for the DM game that why the default deathmatch = 1


X7  :exqueezeme:

I didn't attempt to debug it deeply in DM mode. The same code gets executed in DM, so it could potentially stop a DM server also if it doesn't have all the paks present. Part of what I observed was that the Quake2 file system had not completely initialized the first time CM_MapWillLoad was called, therefore the lookup of base1.bsp failed because the paks had not been loaded yet and/or the /maps folder had not been fully populated. I will look at it more closely but I just don't understand why r1ch would put that check into the code at this late stage of life of Q2 and r1q2, especially if he wanted to avoid adding a regression bug to the code.

Basically, the intent appears to be to prevent someone from playing SP or hosting a server if you don't have the original retail idSoftware paks installed. Something idSoftware didn't put into their code, so why would anyone else put it in a derivative? Furthermore, the check is incomplete since one could grab base1.bsp from just about anywhere or even create a fake base1.bsp and put it in the maps folder. There are better ways to check for the "authentic" maps if that is what you wanted to do.

r1q2 does NOT default deathmatch = 1 unless it's in the default config somewhere, the default in the source code is deathmatch = 0. (g_save.c, line 176)

As far as cinematics are concerned, I thought that was fixed and it did play the cin files, but I can't remember which version fixed it or whether it just went from map to map in SP mode without cinematics.

I will double check the SP and DM modes in a week or two and get a better handle on the bug but my workload these days is so bad I don't have much time for fun coding right now.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline X7

  • Sr. Member
  • ****
  • Posts: 442
  • Quake II
    • View Profile
  • Rated:
Re: Single Player Bug in R1Q2 b8012, Cause and Workaround
« Reply #7 on: November 14, 2011, 05:58:55 AM »
I see the error

[2011-11-14 08:47] ********************
[2011-11-14 08:47] ERROR: Disconnected from server
[2011-11-14 08:47] ********************
[2011-11-14 08:47] ==== ShutdownGame ====
[2011-11-14 08:47] ERROR: Your Quake II installation is missing the single player data, you cannot start a single player game.
[2011-11-14 08:47] Wrote ./coop/scrnshot/quake998.jpg


cinematics never did work with R1Q2, thats ok, because I did all the overrides and remove the cinematic links for the TS coop servers.


X7  :afro:
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Quake II

 

El Box de Shoutamente

Last 10 Shouts:

 

Waffle Whiffer

July 26, 2019, 02:07:17 PM
It is a work of art. Love it! I will post a selfie soon:-)
 

The Dreaming Dragon

July 26, 2019, 08:40:01 AM
Um,Waffle Whiffer?

Is it...okay?

QwazyWabbit

July 07, 2019, 12:04:38 AM
 

The Dreaming Dragon

July 06, 2019, 05:27:25 AM
How do you get to the personal webpages that this site hosts? I need to find mine.
 

Shogun

June 28, 2019, 09:50:27 AM
Rectum! Damn near killed em! hahahahahaha

 

Shogun

June 15, 2019, 08:10:43 PM
Whose Franlkin? Players aliasing this day in age. haha
 

quadz

June 10, 2019, 01:51:13 PM
More detailed look at Q2 RTX


https://www.youtube.com/watch?v=r9vXz9-C-AY
 

quadz

June 09, 2019, 07:47:06 PM

[BTF]Defiant!

June 08, 2019, 09:02:37 AM
Good video overview Quadz!

Show 50 latest
Welcome, Guest. Please login or register.
August 17, 2019, 02:21:07 PM

Login with username, password and session length