Hedgewars

Računarske igre, emulacija igračkih konzola i sve vezano za igranje na Linuksu.

Moderator: Urednik

Post Reply

Administrator
Administrator
offline
User avatar

Posts: 2688
Joined: 01 Apr 2012, 13:50
Location: Mlečni put

Post Napisano: 24 Jan 2014, 13:30


Oni koji su igrali crviće na Windows® sistemu verovatno su hteli nešto slično i na GNU/Linux sistemu. Za Hedgewars se zna odavno. Mnogi su je i igrali i igra im nije strana. Ne znam da li ima potrebe da se kaže nešto više osim „crvići za linux“ :D

Jedino je naziv drugačiji a količina zabave je možda i povećana jer ima mogućnost da se igra preko mreže i sa drugim igračima.
Nova verzija je 0.9.20.5. Na SBo je verzija 0.9.19.3 koja kod mene nikako nije htela da se iskompajlira.

Ne znam za ranije verzije ali ova ima mogućnost igranja u 3D. Ne znam sad gde su mi one kartonske 3d naočare pa da probam a sam prikaz izgleda ovako
hw_2014-01-24_12-43-274267.png
Red/cyan 3d anaglyph
Još snimaka ekrana:
hw_2014-01-24_11-59-3624781.png
gaming_1
hw_2014-01-24_12-00-4290355.png
gaming_2
Binarni paket je nešto više od 140 MB pa neću kačiti ovde ali dajem prepravljenu slackbuilds skriptu i vezu do izvora pa ko želi može da iskompajlira.
Show
SlackBuilds skripta je preuzeta sa SlackBuilds.org i prilagođena je novijoj verziji igrice
hedgewars.SlackBuild - ne zaboravite da promenite TAG opciju

Code: Select all

#!/bin/sh

# SlackBuild script for Hedgewars.

# This script is of public domain. It can be distributed, modified and used as desired.

# Black Rider [black_rider@esdebian.org]

# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=hedgewars
VERSION=${VERSION:-0.9.20}
BUILD=${BUILD:-1}
TAG=${TAG:-_stereo}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-src-$VERSION
tar xvjf $CWD/$PRGNAM-src-$VERSION.tar.bz2
cd $PRGNAM-src-$VERSION
chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
 -exec chmod 644 {} \;

mkdir -p build
cd build
  cmake \
    -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DLIB_SUFFIX=${LIBDIRSUFFIX} \
    -DMAN_INSTALL_DIR=/usr/man \
    -DNOVIDEOREC=1 \
    -DNOSERVER=1 \
    -DCMAKE_BUILD_TYPE=Release ..
  make VERBOSE=1
  make install DESTDIR=$PKG
cd ..

# Include the man page.
mkdir -p $PKG/usr/man/man6
cp $TMP/$PRGNAM-src-$VERSION/man/hedgewars.6 $PKG/usr/man/man6

find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
  COPYING INSTALL CREDITS README Fonts_LICENSE.txt ChangeLog.txt \
  $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
hedgewars.info

Code: Select all

PRGNAM="hedgewars"
VERSION="0.9.20.5"
HOMEPAGE="http://www.hedgewars.org"
DOWNLOAD="http://download.gna.org/hedgewars/hedgewars-src-0.9.20.5.tar.bz2"
MD5SUM="c61eb01466e86da656e1e74ad70a3217"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="fpc lua"
MAINTAINER="Black Rider"
EMAIL="black_rider@esdebian.org"
slack-desc

Code: Select all

# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':' except on otherwise blank lines.
         |-----handy-ruler------------------------------------------------------|
hedgewars: hedgewars (a free turn based strategy game)
hedgewars:
hedgewars: Each player controls a team of several hedgehogs. During the course
hedgewars: of the game, players take turns with one of their hedgehogs. They
hedgewars: then use whatever tools and weapons are available to attack and kill
hedgewars: the opponents' hedgehogs, thereby winning the game. Each turn is
hedgewars: time-limited to ensure that players do not hold up the game with
hedgewars: excessive thinking or moving.
hedgewars:
hedgewars: Homepage: www.hedgewars.org
hedgewars:
README

Code: Select all

Hedgewars is a turn based strategy game.

Each player controls a team of several hedgehogs. During the course 
of the game, players take turns with one of their hedgehogs. They 
then use whatever tools and weapons are available to attack and kill
the opponents' hedgehogs, thereby winning the game. Each turn is 
time-limited to ensure that players do not hold up the game with 
excessive thinking or moving.

This SlackBuild packages only the game itself. If you want to compile
the server, you will need to provide additional dependencies.
Please, refer to the documentation in the source tarball.
Izvorni kod —> http://download.gna.org/hedgewars/hedge ... .5.tar.bz2" onclick="window.open(this.href);return false;
Neophodni paketi za kompajliranje i igranje su fpc i lua.
Veza ka gotovom paketu —> dropbox - zbog veličine gotovog paketa.

Matična stranica —> http://www.hedgewars.org/" onclick="window.open(this.href);return false;

Uživajte ;)

P.S. trenutno je samo 32bit paket spreman. Nisam u mogućnosti da napravim i 64bit paket.
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”



Administrator
Administrator
offline
User avatar

Posts: 2688
Joined: 01 Apr 2012, 13:50
Location: Mlečni put

Post Napisano: 27 Jan 2014, 15:36


Postoje dva problema sa gotovim paketom. I verzija sa slackbuilds.org i moja (blago) prepravljena verzija ne prave ikonicu u Xfce meniju. Međutim hedgewars.desktop fajl postoji i potrebna je jedna komanda i to je rešeno:

Code: Select all

# cp /usr/share/hedgewars/Data/misc/hedgewars.desktop /usr/share/applications/
Drugi problem je ikonica. U meniju nema ikonice za igricu pa korisnik mora sam da je postavi.

Oba problema su vezana za izvorni paket i prijavljeni su bugovi. Koliko vidim ovo postoji i u ranijim verzijama.
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”



Administrator
Administrator
offline
User avatar

Posts: 4075
Joined: 04 Feb 2011, 20:32
Location: Beograd
Contact:

Post Napisano: 24 Feb 2014, 16:40


A propos ikonica, to je tako već godinama. Pre xxx (:D) godina i u periodu kada sam jedno kratko vreme koristio Fedoru (2007?) sam radio paket za Fedoru i PCLOS (za drugara). Elem, ni onda nije postojala ikonica. Mada se to lako dalo ispraviti u spec datoteci (Red Hat pandan SlackBuildovima). Pravljenje prečica je izgleda ostavljeno "pakerima".

Jedna varijanta je ispraviti SlackBuild. Nisam koristio sbotools (koji ti koristiš), ali sbopkg ima mogućnost pravljenja lokalnog repoa sa SlackBuildovima gde se mogu postaviti izmenjene verzije. Nije ništa komplikovano i da se objasniti. Ali prvo bi trebalo izmeniti SlackBuild. Ovo je jednostavna izmena pa bi to mogao i sam. :)

Inače, igrao sam nekad davno HW. Jedan od problema je bio što si morao da juriš poslednju verziju zato što se multiplejer kod menjao iz verzije u verziju. Ako imaš malčice stariju verziju (kao što je bio slučaju u Fedori ili Debianu) multiplayer je bio neupotrebljiv. A kod ove vrste igara je upravo najzabavnije igranje online (ili sa drugarima). Igra sa botovima nije zanimljiva.



Administrator
Administrator
offline
User avatar

Posts: 2688
Joined: 01 Apr 2012, 13:50
Location: Mlečni put

Post Napisano: 24 Feb 2014, 17:32


Hvala Bocke, srediću već skriptu ali teško pre aprila :(
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”



Administrator
Administrator
offline
User avatar

Posts: 4075
Joined: 04 Feb 2011, 20:32
Location: Beograd
Contact:

Post Napisano: 25 Feb 2014, 23:50


Jok u avgustu. :P Ma daj, to je 5 minuta posla.

Code: Select all

cp /bla/bla/hedgewars.png $PKG/usr/share/pixmaps
cp /bla/bla/hedgewars.desktop $PKG/usr/share/applications
Ako ne postoji *.desktop datoteka, ovaj šablon će poslužiti:

Code: Select all

[Desktop Entry]
Name=Hedgewars
GenericName=Hedgewars
Exec=hedgewars
Icon=hedgewars
Type=Application
Categories=Game;



Administrator
Administrator
offline
User avatar

Posts: 2688
Joined: 01 Apr 2012, 13:50
Location: Mlečni put

Post Napisano: 26 Feb 2014, 15:30


Ma ok, nisam rekao da neću :P
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”


Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest