Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: EnterTheStory (aka tolworthy) on Wed 26/11/2008 15:06:19

Title: RunAGSGame and Linux (SOLVED)
Post by: EnterTheStory (aka tolworthy) on Wed 26/11/2008 15:06:19
According to the old thread on the Linux runtime (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=29886.40),
QuoteYou cannot tell ags which file to use as the game file. It looks for ac2game.dat in the current directory.

Does this mean that runAGSGame cannot work in Linux? Or is there a workaround -  can Linux detect one game's request for a game in another location?

I'm just finalising details for getting my game to run in Linux, and feeling pretty stupid that I never thought through the implications last year (I did ask about RunAGSGame in Linux back then, but nobody answered so I assumed it wasn't an issue.)
Title: Re: RunAGSGame and Linux
Post by: RickJ on Wed 26/11/2008 17:54:54
I don't think that's a problem.  RunAGSGame() opens the file specified in it's parameter.   You should be able  to just put your ChapterName.exe files in the same directory as the main game file.   I haven't tried but I think it ought to work.  If you have trouble try putting the linux runtime in the same directory also.

If you also need the abiity to run each chapter seperately you could create a launcher with the .dat file name and all all other game files named ChapterName.exe
Title: Re: RunAGSGame and Linux
Post by: EnterTheStory (aka tolworthy) on Wed 26/11/2008 21:34:15
A thousand thank yous. Nay, a million. I have Puppy Linux, not Ubuntu, so wasn't able to test this. I was starting to panic there, as my game relies very heavily on RunAGSGame. (Some future installments will be unplayable without it). Guess I'll sleep easy tonight.
Title: Re: RunAGSGame and Linux (SOLVED)
Post by: RickJ on Thu 27/11/2008 01:21:14
I think it still needs to be tested so then you can celebrate after that.  ;)