project-navigation
Personal tools

Author Topic: Ufo:AI 2.2.1 and 2.3-dev Debs for Debian/Ubuntu  (Read 67336 times)

nixiepixel

  • Guest
Re: Ufo:AI 2.2.1 and 2.3-dev Debs for Debian/Ubuntu
« Reply #45 on: December 07, 2008, 12:49:10 am »
Hello all!

I am a relatively new Ubuntu user running Intrepid.  I have tried adding both the intrepid nightly-build and hardy games repositories, but synaptic isn't seeing any packages.  Can someone please help this newbie Linux user install and try the game?  Am I missing some step between adding the repository to my software sources and checking for a package in synaptic?

Thank you!

~Nix

Crinos512

  • Guest
Re: Ufo:AI 2.2.1 and 2.3-dev Debs for Debian/Ubuntu
« Reply #46 on: December 07, 2008, 07:43:47 am »
have you run a sudo apt-get update since adding the repository?

nixiepixel

  • Guest
Re: Ufo:AI 2.2.1 and 2.3-dev Debs for Debian/Ubuntu
« Reply #47 on: December 07, 2008, 01:42:50 pm »
Yes, sudo apt-get update and also sudo apt-get upgrade, refreshing the software sources, refreshing in synaptic, and so on...

Still nothing...is there something I am missing?  What are the package names, perhaps I can get them without going through synaptic?

Offline DuKe2112

  • Squad Leader
  • ****
  • Posts: 102
    • View Profile
Re: Ufo:AI 2.2.1 and 2.3-dev Debs for Debian/Ubuntu
« Reply #48 on: December 07, 2008, 02:45:04 pm »
@geever, you were right, I was missing the devscipts.

Unfortunately simply using a slightly older datapackage doesn't seem to work, so im compiling it now completely.

@ nixiepixel First, you should only use one source, then make sure that it is aktive (there is a nice gui in system-> software-sources.)
If you can't get the source to work, for some reason, you could open the repo's directory in a browser and load the packages manually.

nixiepixel

  • Guest
Re: Ufo:AI 2.2.1 and 2.3-dev Debs for Debian/Ubuntu
« Reply #49 on: December 07, 2008, 02:54:40 pm »
Thanks, I did have one source and it was active, but I still saw no package names in synaptic.

I ended up getting the .run file from sourceforge.net, though I may uninstall it as I'm having issues and try to get the package files via web browser, as you suggest.

Thanks!

Offline Spyro

  • Rookie
  • ***
  • Posts: 25
    • View Profile
Re: Ufo:AI 2.2.1 and 2.3-dev Debs for Debian/Ubuntu
« Reply #50 on: December 11, 2008, 11:59:59 pm »
That the same problem DuKe2112 had.

I'm guessing the problem is on my end, that I didn't do something right trying to package it.

Sorry!

Then again, when I started making packages for Win32, at first I screwed up on those as well until I got it right.

Destructavator, in order to get working debs, you need to edit the src/shared/shared.h file and change this:

Code: [Select]
#define BASEDIRNAME "base"
 to this:

Code: [Select]
#define BASEDIRNAME ""
Then, you need to run ./configure with the following arguments:

Code: [Select]
./configure --libdir=/usr/lib/games --bindir=/usr/lib/games/ufoai --datadir=/usr/share/games --docdir=/usr/share/doc/ufoai-data
Once you have made these changes, you will be able to make debbinary and make debdata and everything should work perfectly. Also, to fix the version of the deb add an entry to debian/changelog like this (taken from my debs, but sub your own svn version for 20746 and your own distro name for jaunty):

Code: [Select]
ufoai (2.3~~svn20746) jaunty; urgency=low
« Last Edit: December 12, 2008, 12:19:14 am by Spyro »

Offline Destructavator

  • Combination Multiple Specialty Developer
  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1908
  • Creater of Scorchcrafter, knows the zarakites...
    • View Profile
Re: Ufo:AI 2.2.1 and 2.3-dev Debs for Debian/Ubuntu
« Reply #51 on: December 12, 2008, 01:28:16 am »
@Spyro: Thanks!  I'll try this this weekend...

Offline Spyro

  • Rookie
  • ***
  • Posts: 25
    • View Profile
Re: Ufo:AI 2.2.1 and 2.3-dev Debs for Debian/Ubuntu
« Reply #52 on: December 12, 2008, 04:15:39 am »
Make that almost perfectly. Instead of editing shared.h (breaks maps compiles, due to missing textures, not a very clean change apparently), change the following files in debian directory (overwrite their contents with whatever you see here):

ufoai-common.install
Code: [Select]
base/game.so         /usr/lib/games/ufoai/base
ufoai-data.install
Code: [Select]
base/0media.pk3 /usr/share/games/ufoai/base
base/0materials.pk3 /usr/share/games/ufoai/base
base/0models.pk3 /usr/share/games/ufoai/base
base/0pics.pk3 /usr/share/games/ufoai/base
base/0snd.pk3 /usr/share/games/ufoai/base
base/i18n/* /usr/share/games/ufoai/base/i18n
src/docs/tex/ufo-manual_EN.pdf /usr/share/doc/ufoai-data/

ufoai-music.install
Code: [Select]
base/music/*.ogg /usr/share/games/ufoai/base/music
ufoai-radiant.install
Code: [Select]
radiant/* /usr/share/games/ufoai/base/radiant/
debian/radiant /usr/games/


ufoai-server-data.install
Code: [Select]
base/0base.pk3 /usr/share/games/ufoai/base
base/0maps.pk3 /usr/share/games/ufoai/base
base/0ufos.pk3 /usr/share/games/ufoai/base

This works *much* better.
« Last Edit: December 13, 2008, 11:43:29 am by Spyro »

Offline DuKe2112

  • Squad Leader
  • ****
  • Posts: 102
    • View Profile
Re: Ufo:AI 2.2.1 and 2.3-dev Debs for Debian/Ubuntu
« Reply #53 on: December 13, 2008, 12:17:25 am »
Ok, I finally got working packages.

Spyro, you missed two files: /trunk/debian/ufo und ./ufoded. They are missing the /base folder in the path variables as well.

I tried some places to upload, but somehow couldn't keep the connection long enough to finish.
Now it's too late here...
« Last Edit: December 13, 2008, 12:35:52 am by DuKe2112 »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Ufo:AI 2.2.1 and 2.3-dev Debs for Debian/Ubuntu
« Reply #54 on: December 13, 2008, 10:15:43 am »
i can make the BASEDIRNAME configurable for you guys. then we can add it to the debian build scripts - but can you tell me why this is needed?

Offline Spyro

  • Rookie
  • ***
  • Posts: 25
    • View Profile
Re: Ufo:AI 2.2.1 and 2.3-dev Debs for Debian/Ubuntu
« Reply #55 on: December 13, 2008, 11:47:00 am »
Mattn, it isn't really necessary. The maintainer of the debian build scripts in svn apparently set it to a blank string for the purpose of style:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=244582#135

The solution is just to add the base directory to the necessary *.install files. This is just a one-time, minor inconvenience as these files can be copied between svn versions with no extensive modifications.

DuKe2112, the ufo and ufoded binaries get placed in the correct locations with the default build scripts, so I didn't bother changing them, but I did forget to add 0materials.pk3. (I have edited the original post above to include it).

Offline DuKe2112

  • Squad Leader
  • ****
  • Posts: 102
    • View Profile
Re: Ufo:AI 2.2.1 and 2.3-dev Debs for Debian/Ubuntu
« Reply #56 on: December 13, 2008, 01:47:11 pm »
Yes, the binaries are placed in the correct positions, but those two I mentioned are the start scripts that get linked in the menu and against the command line starting command.
And without changing them you still don't have proper packages, because the common user can't use them otb.

Offline Spyro

  • Rookie
  • ***
  • Posts: 25
    • View Profile
Re: Ufo:AI 2.2.1 and 2.3-dev Debs for Debian/Ubuntu
« Reply #57 on: December 14, 2008, 01:08:34 am »
DuKe2112, well my packages work perfectly fine for me on seven different systems, menu links and scripts, so this is probably one of those strange distribution inconsistencies. Which linux distro are you using? I am using Ubuntu Intrepid on everything right now.

Offline DuKe2112

  • Squad Leader
  • ****
  • Posts: 102
    • View Profile
Re: Ufo:AI 2.2.1 and 2.3-dev Debs for Debian/Ubuntu
« Reply #58 on: December 14, 2008, 02:06:32 pm »
Thats realy strange, because I'm using Intrepid as well.
Here, without the change, these two scripts are placed in /usr/games/ directory and they are pointing to /usr/lib/games/ufoai/
but the binaries are installed to /usr/lib/games/ufoai/base/
and the $ ufo command is calling these scripts.

But I'm still doing something wrong anyway, i have gettext and succesfully compiled the languages, they get installed, but somehow the game can't find them..
« Last Edit: December 14, 2008, 02:19:10 pm by DuKe2112 »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Ufo:AI 2.2.1 and 2.3-dev Debs for Debian/Ubuntu
« Reply #59 on: December 14, 2008, 02:21:32 pm »
just for the logs: binaries should not be installed in base/ dir