Daimonin
Members login
Sign Up!      problems?
N F
* Daimonin Forum
Home Help Search Calendar

Welcome Guest, you have to register to post here.
Search

News

Stats
75659 Posts in 6829 Topics by 8142 Members
Latest Member: mattj
Daimonin Forum  |  Development  |  Daimonin project  |  Topic: official daimonin client 0.9.7 debian (ubuntu) package « previous next »
Pages: 1 [2] Go Down Print
Topic: official daimonin client 0.9.7 debian (ubuntu) package  (Read 2632 times)
Fontus
Hobgoblin


Karma: +3/-0
Posts: 49



View Profile
« Reply #15 on: March 22, 2008, 02:47:36 pm »

It is very easy to maintain deb-packages once they are properly created. First download the following 3 files. They are the source for the binary deb package:


The first of them is identical with the daimonin_client-0.9.7.1.zip file that is already distributed on the site. The only change is that the directory client inside this archive is renamed to daimonin-client-0.9.7.1.orig.

The second file is a patch which creates a subdirectory debian with all files required to build the binary deb package. This patch should not change much if you release new version of the client.

In order to build the binary deb-package do this.

1. Put these 3 files in one common directory.

2. Unpack the sources with dpkg-source -x daimonin-client_0.9.7.1-1.dsc

3. cd daimonin-client-0.9.7.1

4. Replace whereever in the files in the debian subdirectory the strings "Your Name Here" and "your@email.here" by your name and email respectively.

5. Edit debian/copyright appropriately.

6. Edit the description of the package in the file debian/control if you wish.

7. Replace debian/daimonin.xpm by whatever icon you want to be used in the menu.

8. Execute dpkg-buildpackage -uc -us

9. The new deb-package is ready.

Currently the client dies with the following messages, but I suppose this should be easy to fix by whoever builds the deb-package. If I run the command /usr/games/daimonin from inside the sources there are no error messages and the client seems to work.
Code:
skin from options: subred
..Trying to find "Widget: STATS".. Found! (Index = 0) (22 widgets total)
..Trying to find "Widget: RESIST".. Found! (Index = 1) (22 widgets total)
..Trying to find "Widget: MAIN_LVL".. Found! (Index = 2) (22 widgets total)
..Trying to find "Widget: SKILL_EXP".. Found! (Index = 3) (22 widgets total)
..Trying to find "Widget: REGEN".. Found! (Index = 4) (22 widgets total)
..Trying to find "Widget: SKILL_LVL".. Found! (Index = 5) (22 widgets total)
..Trying to find "Widget: MENUBUTTONS".. Found! (Index = 6) (22 widgets total)
..Trying to find "Widget: QUICKSLOTS".. Found! (Index = 7) (22 widgets total)
..Trying to find "Widget: CHATWIN".. Found! (Index = 8) (22 widgets total)
..Trying to find "Widget: MSGWIN".. Found! (Index = 9) (22 widgets total)
..Trying to find "Widget: MIXWIN".. Found! (Index = 10) (22 widgets total)
..Trying to find "Widget: GROUP".. Found! (Index = 11) (22 widgets total)
..Trying to find "Widget: PLAYERDOLL".. Found! (Index = 12) (22 widgets total)
..Trying to find "Widget: BELOWINV".. Found! (Index = 13) (22 widgets total)
..Trying to find "Widget: PLAYERINFO".. Found! (Index = 14) (22 widgets total)
..Trying to find "Widget: RANGEBOX".. Found! (Index = 15) (22 widgets total)
..Trying to find "Widget: TARGET".. Found! (Index = 16) (22 widgets total)
..Trying to find "Widget: MAININV".. Found! (Index = 17) (22 widgets total)
..Trying to find "Widget: MAPNAME".. Found! (Index = 18) (22 widgets total)
..Trying to find "Widget: CONSOLE".. Found! (Index = 19) (22 widgets total)
..Trying to find "Widget: NUMBER".. Found! (Index = 20) (22 widgets total)
..Trying to find "Widget: STATOMETER".. Found! (Index = 21) (22 widgets total)
**** NOTE ****
With sound enabled SDL will throw a parachute
when the soundcard is disabled or not installed.
Try then to start the client with 'SDL_AUDIODRIVER=null ./daimonin'
Read the README_LINUX.txt file for more information.
Defaultskin (skins/subred.zip) not found. Your client will most likely crash!
PHYSFS: skins/subred not found.
Skin 'subred' not found!
PHYSFS_addPath facepack.zip failed: File not found
PHYSFS_addPath4 failed: File not found
List Video Modes
All resolutions available.
VideoInfo: hardware surfaces? no
VideoInfo: windows manager? yes
VideoInfo: hw to hw blit? no
VideoInfo: hw to hw ckey blit? no
VideoInfo: hw to hw alpha blit? no
VideoInfo: sw to hw blit? no
VideoInfo: sw to hw ckey blit? no
VideoInfo: sw to hw alpha blit? no
VideoInfo: color fill? no
VideoInfo: video memory: 0KB
Could not load skin-definition for skin: subred.
Reason: No such file or directory
Using defaults.
file: bitmaps/palette.png does not exist in physfs
PHYSFSRWOPS_openRead failed: (null)
ERROR sprite.c: Can't load sprite bitmaps/palette.png
load_bitmap(): Can't load bitmap bitmaps/palette.png
file: bitmaps/font7x4.png does not exist in physfs
PHYSFSRWOPS_openRead failed: (null)
ERROR sprite.c: Can't load sprite bitmaps/font7x4.png
load_bitmap(): Can't load bitmap bitmaps/font7x4.png
file: bitmaps/font6x3out.png does not exist in physfs
PHYSFSRWOPS_openRead failed: (null)
ERROR sprite.c: Can't load sprite bitmaps/font6x3out.png
load_bitmap(): Can't load bitmap bitmaps/font6x3out.png
file: bitmaps/font_big.png does not exist in physfs
PHYSFSRWOPS_openRead failed: (null)
ERROR sprite.c: Can't load sprite bitmaps/font_big.png
load_bitmap(): Can't load bitmap bitmaps/font_big.png
file: bitmaps/font7x4out.png does not exist in physfs
PHYSFSRWOPS_openRead failed: (null)
ERROR sprite.c: Can't load sprite bitmaps/font7x4out.png
load_bitmap(): Can't load bitmap bitmaps/font7x4out.png
file: bitmaps/font11x15.png does not exist in physfs
PHYSFSRWOPS_openRead failed: (null)
ERROR sprite.c: Can't load sprite bitmaps/font11x15.png
load_bitmap(): Can't load bitmap bitmaps/font11x15.png
file: bitmaps/font11x15out.png does not exist in physfs
PHYSFSRWOPS_openRead failed: (null)
ERROR sprite.c: Can't load sprite bitmaps/font11x15out.png
load_bitmap(): Can't load bitmap bitmaps/font11x15out.png
file: bitmaps/intro.png does not exist in physfs
PHYSFSRWOPS_openRead failed: (null)
ERROR sprite.c: Can't load sprite bitmaps/intro.png
load_bitmap(): Can't load bitmap bitmaps/intro.png
Segmentation fault

« Last Edit: March 22, 2008, 02:51:37 pm by Fontus » Logged

If you feel that freedom and community are important for their own sake—not just for the convenience they bring—please join us in using the term “free software”.
-- Richard Stallman
Alderan
Administrator
*
*


Karma: +16/-2
Posts: 462



View Profile
« Reply #16 on: March 22, 2008, 03:23:56 pm »

Its maybe the make-install part of the makefile, that i have broken somehow. I think its because that makefile was made for a zipped subred-dir, not for single files. But im not sure, it was 2 weeks (TM) ago.
Logged

Leider habe ich keine Zeit, Ihr Buch zu lesen, schicken Sie mir bitte ein bereits gelesenes.

Fontus
Hobgoblin


Karma: +3/-0
Posts: 49



View Profile
« Reply #17 on: March 22, 2008, 03:28:59 pm »

All files are properly installed in /usr/share/daimonin. I suppose the problem is related to physfs.
Logged

If you feel that freedom and community are important for their own sake—not just for the convenience they bring—please join us in using the term “free software”.
-- Richard Stallman
Alderan
Administrator
*
*


Karma: +16/-2
Posts: 462



View Profile
« Reply #18 on: March 23, 2008, 11:41:50 pm »

Are you sure under /usr/share/daimonin/skins is a zip file 'subred.zip OR a directory 'subred' with some files and two dirs in it?

If yes, it can be something with the working dir. Just a guess
Logged

Leider habe ich keine Zeit, Ihr Buch zu lesen, schicken Sie mir bitte ein bereits gelesenes.

Fontus
Hobgoblin


Karma: +3/-0
Posts: 49



View Profile
« Reply #19 on: March 24, 2008, 05:26:05 pm »

There is no file subred.zip but there is a directory subred with all necessary files inside it. After cd /usr/share/daimonin I can start /usr/games/daimonin. The problem is it can not start from arbitrary directory.

I don't know if this is significant, but the commands I have used to build the Debian package are equivalent to the following:
Code:
./configure --prefix=/usr --disable-simplelayout
make all
make prefix=/usr bindir=/usr/games install

I tried to move /usr/games/daimonin to /usr/bin/daimonin, but this way it also doesn't work.

EDIT: Now I noticed that the same problem exists if I install a personal copy of daimonin (without --disable-simplelayout). Daimonin starts only if I start it using ./daimonin, i.e. if I am in its directory. I can not start daimonin if I am in another directory.
« Last Edit: March 24, 2008, 05:30:29 pm by Fontus » Logged

If you feel that freedom and community are important for their own sake—not just for the convenience they bring—please join us in using the term “free software”.
-- Richard Stallman
Anchakor
Multi-headed dragon
*


Karma: +13/-8
Posts: 678



View Profile
« Reply #20 on: March 24, 2008, 07:23:07 pm »

I run daimonin with a small script:
Code:
#!/bin/bash
cd /home/ojirio/jdaimonin/daimtest/daimonin-widget-0.9.7 && ./daimonin-widget
Logged

- best system I've ever had pleasure with Smiley

Fontus
Hobgoblin


Karma: +3/-0
Posts: 49



View Profile
« Reply #21 on: March 26, 2008, 01:56:35 pm »

I didn't know that this is a know bug.  Tongue

Ok, here is a package that uses a shell script /usr/games/daimonin in order to start the client. For me this package works flawlessly, so I no longer need to keep private installation of Daimonin in my home directory and I can run Daimonin from the menu (the same way I suppose the Windows users do):

aimonin-client_0.9.7.1-2.diff.gz
daimonin-client_0.9.7.1-2.dsc
monin-client_0.9.7.1.orig.tar.gz

When downloading please notice that the file names are truncated - you have to recover the original file names (for example monin-client_0.9.7.1.orig.tar.gz should be renamed to daimonin-client_0.9.7.1.orig.tar.gz).

Build the package the same way I already wrote. If you want to build a package for you personal use, then no further changes are required, but for an official package I suppose you will want to do the changes I wrote. Please notice that if you build the package on the stable version of Debian, then it most likely will work also on any further versions (this includes the new Ubuntu versions). On the other hand if the package is built on the newest developer version of Debian it won't work on any other clone of Debian.

If you want to build Debian package for some future version of the client proceed in this way:

cd daimonin-client-0.9.7.1 # i.e. the directory of the old package
debian/rules clean
cd ..
unzip substitute here the name of the new zip file
mv client daimonin-client-0.9.8.orig # use the correct version number instead of 0.9.8
tar zcf daimonin-client_0.9.8.orig.tar.gz
mv daimonin-client-0.9.8.orig daimonin-client-0.9.8
cp -r daimonin-client-0.9.7.1/debian daimonin-client-0.9.8/
cd daimonin-client-0.9.8
Edit debian/changelog.
dpkg-buildpackage -uc -us

After this in .. you will find both the source and binary packages for the new version of the client. Of course it is possible to automate this procedure, but for such a simple package I wouldn't do this.
Logged

If you feel that freedom and community are important for their own sake—not just for the convenience they bring—please join us in using the term “free software”.
-- Richard Stallman
pernicon
Small ant


Karma: +2/-0
Posts: 6


View Profile
« Reply #22 on: March 29, 2008, 12:40:03 am »

Thank you very much Fontus. This is what ive been looking for. Im really exited now:)
Logged
Fontus
Hobgoblin


Karma: +3/-0
Posts: 49



View Profile
« Reply #23 on: April 10, 2008, 10:01:12 pm »

Today I worked on a computer with official stable version of Debian so I took the opportunity to build a binary package. I hope it will work on any not-too-antient version of Debian or Ubuntu. Here are the links:

Binary package: daimonin-client_0.9.7.1-3_i386.deb

Sources: daimonin-client_0.9.7.1-3.dsc, daimonin-client_0.9.7.1.orig.tar.gz and daimonin-client_0.9.7.1-3.diff.gz

There are new sources but if you have compiled Daimonin using the previous version you don't need to recompile the package.
« Last Edit: April 10, 2008, 10:06:09 pm by Fontus » Logged

If you feel that freedom and community are important for their own sake—not just for the convenience they bring—please join us in using the term “free software”.
-- Richard Stallman
LordGrunt
Administrator
*
*


Karma: +8/-1
Posts: 306



View Profile
« Reply #24 on: April 10, 2008, 11:01:37 pm »

btw, how is going the thing with creating repository for these packages?
its 1 year almost since i suggested it, got some response too.
so, is it possible to store debs, rpms and other packages on main server and just add link to this repository on users distros so they can easily install it?
its not required that (though useful) for the packages to be added to main debian/redhat/gentoo repositories, we could have our own repository, like few other projects i know have.
Logged

l00natyk
Ancient bone dragon
*


Karma: +10/-2
Posts: 209



View Profile WWW
« Reply #25 on: November 20, 2008, 06:11:29 pm »

thats the best solution grunt, usually distro devels has less idea what to patch etc. and how it works cause if something is not crashing then is considered as good. i'm quite familiar with packaging stuff so thre will be no probs with variety of distros but first i need to solve some important rl stuff till i come back. before i had no hardware to play with these distros but now it changed so no worries.
Logged

[img:72f2f8ad6d]http://i101.photobucket.com/albums/m72/melisa_zachery/officer.jpg[/img:72f2f8ad6d]

lvl110 in PH, WS, DP, MD and Archery. 700+ levels.
Pages: 1 [2] Go Up Print 
Daimonin Forum  |  Development  |  Daimonin project  |  Topic: official daimonin client 0.9.7 debian (ubuntu) package « previous next »
Jump to:  

Page created in 0.173 seconds with 21 queries.
Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Copyright 2008 Daimonin MMORPG  •  Terms of Service  •  XHTML  •  Daimonin sourceforge open source project