Project

General

Profile

Bug #1138

Game fails to load when Assets are stored in a Read-Only directory

Added by the-kenny over 11 years ago. Updated almost 3 years ago.

Status:
Updated
Severity:
Unworthy
Assignee:
-
Category:
Gameplay
Target version:
-
Start date:
07/26/2013
% Done:

10%

Version:
Platform:
Any
Expansion:
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

Description

Hello,

I try to package KSP (demo + full game, user has to provide their downloaded zip) for a Linux distribution called NixOS (http://nixos.org). The purely functional package manager stores files of installed packages in a read-only package store (/nix/store). When KSP is stored there, it fails to get past the loading screen, progress bar always staying at the beginning, not moving.

It seems like KSP tries to open all assets as in read+write mode, which fails for a read-only filesystem. I can do some workarounds, but a cleaner solution would be if KSP takes care of opening assets it just accesses read-only correctly.

roDB.log (505 KB) roDB.log read-only PartDatabase and GameData ___, 07/19/2016 10:35 PM
roGD.log (516 KB) roGD.log read-only GameData ___, 07/19/2016 10:37 PM

History

#1 Updated by Scr_Ra over 11 years ago

  • Severity changed from Normal to Petty

#2 Updated by TriggerAu over 8 years ago

  • Status changed from New to Needs Clarification

#3 Updated by ___ over 8 years ago

  • File roDB.log roDB.log added
  • Status changed from Needs Clarification to Updated
  • % Done changed from 0 to 10

With PartDatabase.cfg and GameData (or everything)
read-only the load bar fills up and then gets stuck at 100%.

With only GameData read-only I can load a save, but every part is missing. Including PotatoRoid.

#4 Updated by ___ over 8 years ago

#5 Updated by sal_vager over 8 years ago

  • Severity changed from Petty to Unworthy

Question is, should it?

Squad does not support running KSP from read-only media, such as read-only folders, burnt to DVD etc.

KSP is portable but for best results it should be run from a hard drive or SSD on the machine, and write access is required for some files.

#6 Updated by ___ about 8 years ago

Does the game ever write to the assets?

If not and all that is needed is to replace a "rw" with "r" somewhere in your code, then why not?

Otherwise don't bother, it's an unworthy issue for sure.

Also available in: Atom PDF