aliens

Author Topic: Location for data on Ubuntu  (Read 7260 times)

Offline Eoghnved

  • Squaddie
  • *
  • Posts: 5
    • View Profile
Location for data on Ubuntu
« on: November 23, 2013, 05:30:15 am »
I've tried getting this to work on Ubuntu, but for some reason it can't find the data when I run it.  Here's what I've done up to this point.

I installed OpenXcom by the following method:

# sudo add-apt-repository ppa:knapsu/openxcom
# sudo apt-get update
# sudo apt-get install openxcom

After that, I found that the installation had created a data folder at /usr/share/openxcom/data.  I copied the  xcom data folders to that folder.  When I launch the game, I get a message reading ERROR:  GEODATA/PALLETES.DAT not found.  Where is OpenXcom looking for these data files if not /usr/share/openxcom/data?

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: Location for data on Ubuntu
« Reply #1 on: November 24, 2013, 03:29:39 am »
See https://www.ufopaedia.org/index.php?title=Installing_(OpenXcom)#Data_Folder

Make sure you didn't accidentally put them in a subfolder inside Data.

Offline Eoghnved

  • Squaddie
  • *
  • Posts: 5
    • View Profile
Re: Location for data on Ubuntu
« Reply #2 on: November 25, 2013, 10:43:13 am »
At this point, I've figured out that the following paths aren't the correct ones.

/usr/share/openxcom/data
/usr/local/share/openxcom/data
/usr/local/games/openxcom/data
/usr/share/games/openxcom/data

I've copied the data folders to all of these locations with no results.  The files such as PALLETES.DAT are in subfolders like GEODATA, but the next level up for them is /data.   I've never done anything to the settings of $XDG_DATA_HOME or anything similar, as I haven't had any need to prior to this attempted install.  I guess I've got a bit of research to do before trying anything else.

Offline AndO3131

  • Colonel
  • ****
  • Posts: 137
    • View Profile
Re: Location for data on Ubuntu
« Reply #3 on: November 26, 2013, 07:13:43 pm »
Check if all data folders and files use capital letters.

Offline Eoghnved

  • Squaddie
  • *
  • Posts: 5
    • View Profile
Re: Location for data on Ubuntu
« Reply #4 on: November 27, 2013, 01:52:40 am »
I'll make another wild guess as to the failure to run here.  In order to copy the folders into that directory, I had to open the folder temporarily as root by using gksu nautilus in a terminal window.  Is it possible that openxcom is unable to read the data without root access?

Offline Eoghnved

  • Squaddie
  • *
  • Posts: 5
    • View Profile
Re: Location for data on Ubuntu
« Reply #5 on: November 27, 2013, 02:07:14 am »
Okay, I think I've solved it.  I tried executing the program as root and it found the data.  I guess I just need to set permissions for read access on the /usr/share/openxcom/data folder.  Has anyone else had this problem?

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: Location for data on Ubuntu
« Reply #6 on: November 27, 2013, 12:30:38 pm »
I assume it's because /usr/share/ is a system-level directory. Doesn't XDG_DATA_HOME usually point to ~/.local/share/ which is a user-level directory and wouldn't cause this problem?

Offline Eoghnved

  • Squaddie
  • *
  • Posts: 5
    • View Profile
Re: Location for data on Ubuntu
« Reply #7 on: November 27, 2013, 01:38:27 pm »
I just started out by copying the data to the folder that was created when I installed OpenXcom, and that turned out to be in /usr/share.  At least I've got it working now.