Author Topic: The players directory not being created thing  (Read 1644 times)

0 Members and 1 Guest are viewing this topic.

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
The players directory not being created thing
There have been several reports of this dating all the way back to retail FS2.  Basically the installer doesn't create the data\players directory.  Never had it happen myself until today.  Tried to install WCSaga which I have done successfully on at least one other machine.  Install went fine but as soon as I tried to create a player at startup I got the not enough disk space message.  Looked and the data\players directory was missing so I created it along with the single and multi subdirectories. 

Now for the interesting part.  When I tried to launch Saga again I got the create pilot screen an type in the pilot name and hit enter.  Ready to see what it was all about I hit the continue button only to end up in the multi player server selection screen instead of starting the single player.  I know I did not select multi but the last thing I did play on this computer was TBP 3.6.9 multi. 

Is it possible the games (all of them not just TBP or FS2 or Saga) are picking up a registry setting that the data\players directory is already created if multi player of another FS2 based game was the last thing played?  I would just have assumed I hit the same bug so many others have if I hadn't ended up in the multi player mode. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: The players directory not being created thing
The last pilot used is stored in the registry (on Windows anyway), and if that pilot was a multi pilot then it will default to the multi player select screen rather than single.  You just have to be careful of that and change it yourself if needed.  Though it is technically a bug, it's a by-product of the design of the whole thing and aside from eventually moving to a ini file instead of the registry for Windows, there isn't really anything we can do about it.

The game is supposed to create the players/* directories when it needs them though.  I have never been able to properly determine why it will mess up.  I've made various tweaks to try and prevent any problems, but since I have never been able to replicate the problem myself, I haven't been able to figure out the exact cause.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: The players directory not being created thing
What I was thinking was the game isn't creating the single or multi directories when run if that registry entry is set to multi.  Remember the bug with trying to create a multi player without creating a single one first (think it was you fixed that one).  Since that crash existed in retail there would have been no way to have the registry entry set to multi without the directory being created.  Now with multiple mods it could be set to multi and maybe is bypassing the code that creates the directories because of that. 

Maybe it was part of the bug that's already fixed in 3.6.10.  That would be nice. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: The players directory not being created thing
There is nothing that actually says the directories don't need to be created.  When it tries to create the file in question it is simply supposed to create the full path before creating the file.  That is a part of CFILE and all written files are handled the exact same way.  The registry setting merely indicates whether it should start in single or multi mode on the player select screen, but has no other affect than that.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: The players directory not being created thing
Oh well.  Thought maybe that multi mode skipped some checking or something.  Guess it was just coincidence then. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: The players directory not being created thing
Nope, nothing is skipped there.  I'm pretty sure that it's some low-level bug in CFILE that is the problem.  It seems to show up in a particular set of circumstances, but what that is I have no idea.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: The players directory not being created thing
Coincidence or not I just reproduced it on another PC.  Took down a standalone, ran WCSaga for the first time (Installed it when I loaded the system but never ran it).  Multi was highlighted and I typed in my player.  Not enough disk space error.  Exited, ran TBP and switched to single player.  Reran WCSaga single tab was highlighted this time.  Typed in player name and it created the directories. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

  

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: The players directory not being created thing
You'll also be glad to know it's fixed in 3.6.10.  Just recreated the scenario and it crashed again. Copied the latest 3.6.10 exe I had over an ran it.  No crash. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras