RunAGSGame and Linux (SOLVED)

Started by EnterTheStory (aka tolworthy), Wed 26/11/2008 15:06:19

Previous topic - Next topic

EnterTheStory (aka tolworthy)

According to the old thread on the Linux runtime,
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.)

RickJ

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

EnterTheStory (aka tolworthy)

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.

RickJ

I think it still needs to be tested so then you can celebrate after that.  ;)

SMF spam blocked by CleanTalk