Showing posts with label Hedgewars. Show all posts
Showing posts with label Hedgewars. Show all posts

Thursday, 16 September 2010

we made it! Hedgewars on AppStore

FINALLY!
After almost 1 year of work, the porting is done!
http://itunes.apple.com/us/app/hedgewars/id391234866?mt=8

man what a load of work! but i feel proud now :D

some of the reactions:
burp: wee!
burp: awesome
Smaxx: apple doesn't grant proper credit to me
Smaxx: let's call the fsf
Tiy: \o/
Tiy: \o\o\o\o
Tiy: o/o/o/o/

good job guys

Sunday, 18 October 2009

Hedgewars 0.9.12 released!

Let's deepen into Mac developing


Today a new version of hedgewars has been released!
You can find the big changelog in the website homepage, but i wanted to give some insights on the exclusive mac development.

M3 Install Controller
This is a neat feature, for new users of the Mac world, that helps Hedgewars installation. New users in fact tend not to know about what a diskimage really is and so they may be tempted to run it directly from the diskimage. Luckily Hedgewars runs fine even on the diskimage (other programs do not) but it'd be better if the application were run from the hard disk.

Now i've added this controller (available at this site) to the sources and when you run Hedgewars from the diskimage here's what you get:


pretty neat huh?

Sparkle Framework
The Sparkle framework is one of the most well known application helpers for the mac world! Many famouse programs use it (Adium is the first that comes into my mind) because it makes it very easy to include an autoupdater feature to you application! It's free, opensource and quite customizable! Now when the next release is out, you'll be prompted to install it; Sparkle will download and update Hedgewars in a matter of clicks.

I can't show you the image because there is not yet any updates, but i can assure you it rocks!

Optimizations!
One of the hidden features of the new release is that we've added compilation time optimizations! Faster executables thanks to the -O2 flag! However mac users, thanks to the single type of processor installed (intel) we can enable even more efficient optimization, that couldn't have been enabled in other cases (because of the different and wider processor environment).


Stay tuned for 0.9.13 for which i have other interesting "exclusive" features to add!
bye
Vittorio

Sunday, 14 June 2009

Hedgewars on the iPhone?? perhaps one day...

Let me first clarify that the blog posts across the internet claiming that an iPhone version is "near completion" are nowhere near the truth!

In fact the idea of porting the game originally started one year ago, but was soon dismissed because of lack of manpower/equipment. Everything remained silent until i joined development and i was proposed to resume developing the iPhone version; i was shocked by this because i never did anything with the iPhone and my SDL/Pascal was (and still is) very limited! However i received so much help by unC0Rr, nemo, tiy and many other people at #hedgewars that all together we managed to pull something off! With a lot of patience and trial&error, here's what we've got so far:




What we're showing now is a very BASIC demo, running in the iPhone simulator! The code compiles fine and graphics too, but there is still no support for audio and no way to control the game. This is where current development is at the moment, but now you can rest assured that you'll see one iPhone version of your favourite game in the future!!!

Saturday, 18 April 2009

CMake configuration for Universal Binaries

So since i committed my partecipation in Hedgewars development, i wanted to support as many platform as i could

... and i ended up deploying only for Intel Leopards

why? well not that hedgewars can't compile on tiger (at least after a patch from mischi) or in powerpc environment is just that i couldn't set a working configuration for it! For quite a long time Qt was compiled statically which helped in reducing the number of relocated libraries, but forbidding any universal build
moreover the "Build once, Deploy everywhere" from Qt was not working even when i switched to the standard sdk!

At last, today I have found where was the problem! CMAKE
it appears that setting -arch ppc -arch i386 in the CMAKE_CXX_FLAGS flag has no effect! you have to specifically set the following two

-DCMAKE_OSX_SYSROOT="/Developer/SDKs/MacOSX10.4u.sdk/"
-DCMAKE_OSX_ARCHITECTURES="ppc;i386"
and before issuing make
export MACOSX_DEPLOYMENT_TARGET=10.4
Beware that using Carbon API from Tiger will slow down a bit execution on Leopard! for this reason i think it might be better to add an Intel-only Leopard optimized release of the software, since the new version of QT (4.5) supports Cocoa natively (which actually speeded up loading times.

I hope this helps desperate developers trying to support as many architecture as possible!
if you want to know more, follow this link, where it's explained how to include even additional configurations.


Vittorio

Monday, 13 April 2009

Hedgewars 0.9.10 available

Hey guys, after much work, the new version of Hedgewars is finally available!
It seems i have been added to the developers list and that's really rewarding :)

the changelog is really long but the part that i've contributed most is

  • The game now officially works on windows, linux and mac!


Hedgewars is now a 100% cross platform game! w00t!!!!

Copies have just been uploaded, grab them while they're hot http://www.hedgewars.org/download.html

Wednesday, 28 January 2009

yay first page

ok this is rather old news but i wanted to put it in this blog all the same

the efforts i put for getting a testing bundle package of the hedegwars game were recognized and i was cited in the front page as "cool contributor" yay!


go hedge team!!

ps if you want to try the mac bundle of version 0.9.9 you can! the link is hidden somewhere in the general discussion forum! just take in consideration that it's still in testing

Tuesday, 13 January 2009

HEDGEWARS finally compiles on Mac OS X

Hi all!
I believe that Hedgewars is really a neat game and i'm sure it will increasly become more popular with such development pace.

I really like the development choices like QT4 and cmake because with them it's really easy to port to several archs.
In fact the linux and windows builds are there and work fine! What about MacOSX?

i've seen many others in the forums asking this question and so i started looking at the problem, making up my mind that i had to find it!

It was a long night, but completely worth it :)
The problem is at the linking stage for the final hwengine executable! the freepasacal compiler seems to forget every library path that was configured; so with a small modification we finally get the mac executable!


LETS START

1 - download and install MacPorts from www.macports.org to the default install dir

2 - from a Terminal, install all the necessary software

sudo port install qt4-mac libsdl libsdl_mixer libsdl_image libsdl_ttf libsdl_net cmake

it is a rather long procedure, manly due to qt framework; if you're an impatient guy there are some builds around (like these)


i also installed SDL (and all its friends) from the SDL homepage (http://www.libsdl.org/) just to be on the safe side... i don't know whether they're compulsory or not

3 - unpack the hedgewars source and run this command

cmake ../hedgewars-src-0.9.8 -DCMAKE_CXX_FLAGS="-O2" -DQT_QMAKE_EXECUTABLE=/opt/local/bin/qmake-mac -Wno-dev -DCMAKE_BUILD_TYPE=Release

if you like, you can change the default install location by setting -DCMAKE_INSTALL_PREFIX and -DDATA_INSTALL_DIR

4 - before running make, you have to modify the following file: CMakeFiles/hwengine.dir/build.make, so open it and find the line that invokes the freepascal compiler

mine was like this
/usr/local/bin/fpc -B -FE../bin -Cs2000000 -vwi -O2 /(path-to-sources)/hedgewars-src-0.9.8/hedgewars/hwengine.dpr

you just have to add -Fl/opt/local/lib at the end, like
/usr/local/bin/fpc -B -FE../bin -Cs2000000 -vwi -O2 /(path-to-sources)/hedgewars-src-0.9.8/hedgewars/hwengine.dpr -Fl/opt/local/lib

5 - run make and sudo make install

6 - PLAY!!! just open terminal and write hedgewars


it's rather long for an install procedure but it really works :)
right now i'm working on the bundle archive, but i believe it'll take from me more than i thought

i hope that someone can find it useful :)
(and that the dev correct the workaround at 4)

Vitto



All the projects here are under a Creative Commons 3.0 licence! You can use and distribute them as you like (just quote the author so he knows his work is not useless)!

If you wish to get in touch with me write at projectsymphony@gmail.com