Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - thenendo

Pages: [1]
1
I found that I was able to make the game start by creating a symlink to the UFO directory inside the user directory:

Code: [Select]
$ ls -l user
total 24
-rw-rw-r-- 1 max max 2010 Jan 17 14:05 openxcom.log
lrwxrwxrwx 1 max max   11 Jan 17 14:04 UFO -> ../data/UFO

I can then start openxcom without the -data argument:

Code: [Select]
$ openxcom -user "$PWD/user" -config "$PWD/config"

And it works. So it seems there is literally no point to having a separate data dir (outside of the user dir) or to the -data argument. What's the point of the -data argument if it doesn't actually get used? Does this strike anybody else as confusing or broken?

2
I'm using the nightly binary from the recommended ppa: https://launchpad.net/~knapsu/+archive/ubuntu/openxcom-beta/+packages

You can see from the package version that I'm using the 20150117 nightly:

Code: [Select]
$ aptitude show openxcom
Package: openxcom                 
State: installed
Automatically installed: no
Version: 1.0+20160117-1~wily1
Priority: extra
Section: games
Maintainer: Krzysztof Knapik <knapsu@gmail.com>
Architecture: amd64
Uncompressed Size: 12.4 M
Depends: libc6 (>= 2.14), libgcc1 (>= 1:4.1.1), libgl1-mesa-glx | libgl1, libsdl-gfx1.2-5 (>=
         2.0.25), libsdl-image1.2 (>= 1.2.10), libsdl-mixer1.2, libsdl1.2debian (>= 1.2.11),
         libstdc++6 (>= 5.2), libyaml-cpp0.5v5
Conflicts: openxcom
Description: Open-source clone of UFO: Enemy Unknown

$ which openxcom
/usr/games/openxcom

I have created a directory ~/game/openxcom/ containing my data, user, and config directories as described in the GitHub README.md and wiki [1]. The data/UFO directory contains all of the directories from the original game assets that the wiki said to copy (after patching with the universal patch zip). You can see there are about 17 MB of assets there:

Code: [Select]
$ pwd
/home/max/game/openxcom
$ ls -l
total 12
drwxrwxr-x 2 max max 4096 Jan 17 13:04 config
drwxrwxr-x 3 max max 4096 Jan 17 13:04 data
drwxrwxr-x 3 max max 4096 Jan 17 13:00 user
$ ls -l data
total 4
drwxrwxr-x 11 max max 4096 Jan 17 12:59 UFO
$ ls -l data/UFO
total 112
drwx------ 2 max max  4096 Oct  3  2010 GEODATA
drwx------ 2 max max 12288 Oct  3  2010 GEOGRAPH
drwx------ 2 max max 32768 Jan 17 12:58 MAPS
drwx------ 2 max max 24576 Jan 17 12:58 ROUTES
drwx------ 2 max max  4096 Oct  3  2010 SOUND
drwx------ 2 max max 12288 Jan 17 12:58 TERRAIN
drwx------ 2 max max 16384 Jan 17 12:58 UFOGRAPH
drwx------ 2 max max  4096 Oct  3  2010 UFOINTRO
drwx------ 2 max max  4096 Jan 17 12:58 UNITS
$ du -shc data/UFO
17M     data/UFO
17M     total

I run openxcom using the flags suggested by the GitHub README.md for a "self-contained installation":
Code: [Select]
$ openxcom -data "$PWD/data" -user "$PWD/user" -config "$PWD/config"

This fails. A single line "/usr/bin/gdialog" is printed to stdout, and a window titled "OpenXcom 1.0" appears containing the following text:
Code: [Select]
C:\GAMES\OPENXCOM\openxcom

ERROR: No X-COM installations found
Make sure you installed OpenXcom correctly.
Check the wiki documentation for more details.

Press any key to continue.

A log file is created at user/openxcom.log which shows that openxcom did search the provided data directory but ultimately chose a different location as the data directory:
Code: [Select]
[17-01-2016 13:30:19]   [INFO]  Data folder is: /usr/share/games/openxcomhttps://
[17-01-2016 13:30:19]   [INFO]  Data search is:
[17-01-2016 13:30:19]   [INFO]  - /home/max/game/openxcom/data/
[17-01-2016 13:30:19]   [INFO]  - /home/max/.local/share/openxcom/
[17-01-2016 13:30:19]   [INFO]  - /usr/share/ubuntu/openxcom/
[17-01-2016 13:30:19]   [INFO]  - /usr/share/gnome/openxcom/
[17-01-2016 13:30:19]   [INFO]  - /usr/local/sharehttps://openxcom/
[17-01-2016 13:30:19]   [INFO]  - /usr/sharehttps://openxcom/
[17-01-2016 13:30:19]   [INFO]  - /usr/local/share/openxcom/
[17-01-2016 13:30:19]   [INFO]  - /usr/share/openxcom/
[17-01-2016 13:30:19]   [INFO]  - /usr/share/games/openxcomhttps://
[17-01-2016 13:30:19]   [INFO]  - ./
[17-01-2016 13:30:19]   [INFO]  User folder is: /home/max/game/openxcom/user/
[17-01-2016 13:30:19]   [INFO]  Config folder is: /home/max/game/openxcom/config/

Any idea what I'm doing wrong? I've previously been able to get the non-nightly 1.0 version (from the stable ppa) to work by simply running the "openxcom" binary with the (patched) original assets' "Game" folder as my current working directory. This business with the new directory layout for nightlies is confusing me, as I'm following all of the instructions as far as I can tell.

[1] https://www.ufopaedia.org/index.php?title=Installing_%28OpenXcom%29

Pages: [1]