project-navigation
Personal tools

Author Topic: Debian: uforadiant package  (Read 3780 times)

Offline apo

  • Rookie
  • ***
  • Posts: 64
    • View Profile
Debian: uforadiant package
« on: August 15, 2013, 07:58:17 pm »
I'm quite satisfied with the uforadiant package. It compiles nicely and the application appears to work.

Questions:

There are some helper files and scripts under contrib in the git repository. Is there anything useful that should be installed with the uforadiant package? Shall software be recommended or suggested by the Debian package like

ufoai-uforadiant
Suggests: blender

Recommended packages are installed automatically when someone installs uforadiant, but this feature can be turned off or ignored.

There is only one thing which bothers me. At the first start up, uforadiant asks about the UFO:AI Installation Path. I have to tpye in "/usr/share/games/ufoai" or I can change this setting under Preferences later. I'd like to suggest to insert the value of "datadir" at build time automatically because this seems to be the place uforadiant is looking for. Or perhaps it isn't. Feedback is most welcome.




Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Debian: uforadiant package
« Reply #1 on: August 16, 2013, 09:03:19 pm »
you can do the following: path the user.xml in ufoai/radiant folder and add the following below the user node.
Code: [Select]
    <paths>
        <enginePath value="/some/path"/>
    </paths>

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Debian: uforadiant package
« Reply #2 on: August 16, 2013, 09:06:28 pm »
btw. the class you are looking for is maybe GameManager (ufoai/src/tools/radiant/radiant/settings/GameManager.cpp)

GameManager::initialise

It looks like config.h isn't included and thus PKGDATADIR isn't know - i will check that.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Debian: uforadiant package
« Reply #3 on: August 16, 2013, 09:13:07 pm »
please check whether cc5b662677833be2d4306d5c9a178e4cc6b5b1c7 fixed the issue for you.

Offline apo

  • Rookie
  • ***
  • Posts: 64
    • View Profile
Re: Debian: uforadiant package
« Reply #4 on: August 18, 2013, 09:17:54 pm »
Thanks. That's definitely better. Though uforadiant still complains about:

Quote
Could not load ufos/entities.ufo

But that's because I installed the radiant directory in /usr/share/games/uforadiant instead of /usr/share/games. I will change the directory that should solve the issue. Although perhaps you might consider to change radiant to uforadiant to avoid any naming collisions in the future with similar packages like gtkradiant or whatever.

EDIT:

It seems it doesn't really matter whether I install uforadiant to radiant or uforadiant. I think appending either radiant or uforadiant to the PKGDATADIR path string should suffice.
« Last Edit: August 18, 2013, 09:44:08 pm by apo »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Debian: uforadiant package
« Reply #5 on: August 18, 2013, 10:00:13 pm »
I don't think that appending something to PKGDATADIR would help, because it's the engine path where this file is searched, not the uforadiant path. It is possible that the pk3 (vfs) loading of uforadiant is broken. We had reports about this already earlier. I will check that asap.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Debian: uforadiant package
« Reply #6 on: August 18, 2013, 10:00:51 pm »
oh.. you could test this by extracting 0ufos.pk3

edit for me the pk3 stuff is working, strange - can you please attach the uforadiant logfile (~/.ufoai/radiant)
« Last Edit: August 18, 2013, 10:04:32 pm by Mattn »

Offline apo

  • Rookie
  • ***
  • Posts: 64
    • View Profile
Re: Debian: uforadiant package
« Reply #7 on: August 19, 2013, 10:51:39 am »
I'm attaching radiant.log.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Debian: uforadiant package
« Reply #8 on: August 19, 2013, 01:52:19 pm »
**-Message: vfs directory not found: '/usr/share/games/base/'

it looks like you are using a wrong PKGDATADIR - there is a "ufoai" missing, no?

Offline apo

  • Rookie
  • ***
  • Posts: 64
    • View Profile
Re: Debian: uforadiant package
« Reply #9 on: August 19, 2013, 04:21:14 pm »
Sorry, my bad. Indeed the variable wasn't set correctly.