Re: [Openmortal-discuss] Openmortal and Debian.
Status: Beta
Brought to you by:
upi
|
From: UPi <up...@ap...> - 2004-05-13 10:03:10
|
Hi! On Thu, 13 May 2004, Bartosz Fenski aka fEnIo wrote: >On Thu, May 13, 2004 at 10:44:47AM +0200, UPi wrote: > > >>I suggest that you two join forces! Viktor has already created a man page >>for openmortal (a requirement for debian packages, I hear), it would >>really be a shame to duplicate the effort. >> >> >Sure I would like to join efforts. I just wonder why he didn't filled an >"Intend To Package" bugreport in Debian's BTS. >That's the way how Debian tries to not duplicate efforts. >I filled such bugreport yesterday. http://bugs.debian.org/248751 > > Speaking of which, can you tell me about the process of creating an official debian package? Sounds interesting... >Ok some technical question. > >Does openmortal detects availability of characters? >I mean I'd like to split characters to three packages. >For example: >openmortal-characters-1st >openmortal-characters-2nd >openmortal-characters-3rd > >Or something like that. I suppose the first one is required, or maybe >each of them can be used separately? > > They way OpenMortal character loading works is this: Characters come in three kinds: * Official installed characters. * Official not installed characters * Unofficial installed characters. (These are the contributed characters that are displayed with a blue background in the Chooser) For every official character the *.icon.png must be installed in the data/characters directory, even if the rest of the characters is not installed. This is because the Chooser (the widget with the characters portraits in the characters selection screen) relies on these icons do draw itself. This is not much of a problem because the icons are small. For every INSTALLED character the *.dat, *.dat.txt, *.pl files must also be installed in the data/characters directory. At startup openmortal reads the contents of these directories, and tries to interpret all the *.pl files (which in turn checks the existence of the *.dat and *.dat.txt). This is how it learns about the existence of third-party characters. For characters that are "official" but not installed (the pl/dat/dat.txt is missing), the icons are still displayed in the chooser, but appear crossed out. (These characters are listed in the data/script/FighterStats.pl file). SUMMARY: The base installation should as a minimum contain the following files in the characters directory: STAFF.DAT .icon.png for every official character .pl, .dat and .dat.txt for a few characters. Each character package must contain the .pl .dat and .dat.txt for official characters (plus the icon for unofficial ones). >I mean what if I compile openmortal with --enable-characters (and >without additional and third-party) and then in data dir put all >characters? Will openmortal use them or it has to be compiled with every >set of characters to use it properly? > > All of the --enable options have been eliminated. configure still mentions them, but they aren't used anywhere anymore. This is legacy from version 0.5 which didn't have the "dynamic" loading of the characters directory. I hope this info is sufficient. Bye, UPi. |