I have 3 mini games that are run from my main game using RunAGSGame(mgX.exe, 0, 0), all three run fine when run in the editor or from the compiled exe but when I run two of them with RunAGSGame I get errors. All the games are created in the same version of AGS (the latest one from the ags home page) with the same resolution and colour depth.
For mg2 one of the buttons on the HUD gui seems to have it's normal graphic set to the wrong sprite every cycle.
For mg3 it crashes with an undefined import for the name of one of the buttons on the HUD gui but if I comment out the line that sets the graphics for that button then it complains about an undefined import for 'player'. But if I set the main game not to exit completely then it crashes when it tries to play a sound embedded in the mini games exe file.
Any ideas on how to figure out what the problem is?
Edit: Nevermind I decided to combine the mini games into the main project.
For mg2 one of the buttons on the HUD gui seems to have it's normal graphic set to the wrong sprite every cycle.
For mg3 it crashes with an undefined import for the name of one of the buttons on the HUD gui but if I comment out the line that sets the graphics for that button then it complains about an undefined import for 'player'. But if I set the main game not to exit completely then it crashes when it tries to play a sound embedded in the mini games exe file.
Any ideas on how to figure out what the problem is?
Edit: Nevermind I decided to combine the mini games into the main project.