Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: alexwbc on Tue 05/11/2013 10:43:59

Title: Compile and distribuite linux only game
Post by: alexwbc on Tue 05/11/2013 10:43:59
Hello everyone! I am just started with AGS and already loving it! But it did happne I've already got a question I've not quite found a solution by myself (lot of googlin' and searching already done) probably for the peculiarity of my question. :-X

I would like to distribute my (badly made) adventures for linux only (I don't think Windows's user are going to missing anything exceptional (laugh) ... uh, wait... this joke is supposed to demote myself :~( )... and I know the best way to do so is to making a Ubuntu LTS+ compatible .deb file
But it looks like the only compiler I did fund is the one that come with AGS Editor... which only have .exe build option.

I know I can easily build up a .deb file with the whole linux AGS engine this way:
Code (Linux Terminal) Select
sudo apt-get install git debhelper liballegro4.2-dev libaldmb1-dev libdumb1-dev libfreetype6-dev libtheora-dev  libvorbis-dev  libogg-dev
git clone git://github.com/adventuregamestudio/ags.git
cd ags
fakeroot debian/rules binary

and then ags mygame.exe runs the game while I can obtain ags-setup in place of winsetup.exe from here (http://www.adventuregamestudio.co.uk/forums/index.php?topic=38459.msg505844#msg505844).
But still I am not sure what's the best way to pack, distribute (even commercially, even if just out of curiosity) a linux only compiled adventure (then with no .dll/.exe at all).

Eventually if I can reduce reliance to external library download (in case future Ubuntu's main repository change name alias to some libraries and thus need me to constantly update stuff already distributed with corrected link). I know some libraries can be distributed (in a similar way windows's games distribuite zlib dlls and such).

Sorry if my question is not that clear, I'll add more detail to what's sounds more obscure.
Title: Re: Compile and distribuite linux only game
Post by: Crimson Wizard on Tue 05/11/2013 10:58:07
Unfortunately we do not have a proper option in the editor for this right now.
But you can manually cut the Windows binary from the compiled game using some tool, like hex editor, or maybe writing a small and simple program (I think most linux users can do that :=).
You will then have a raw game data, which you may rename to, e.g., "mygame.ags", and distribute with linux engine executable you compiled.

There are details in several threads now, this, for instance:
http://www.adventuregamestudio.co.uk/forums/index.php?topic=46152.msg636445497#msg636445497