Sub-Application object cannot find files
Hi everybody!
My problem is, I created a game with a Sub-Application object. In the game, we're supposed to load the Sub-Application we want, from an external folder. When I tried my game with F8, I was able to load the Sub-Application I wanted, and all worked.
But when I made an excutable of my game, and then started it and tried to load my Sub-Application, it told me "Cannot find StaticText.mfx!"
So I deleted the Static Text I had in that application and tried again.
"Cannot find pinball.mvx!"
I will not delete all the objects of my application just because the Sub-Application object cannot load them! What to do?
Thanks in advance for helping me.
T. Edoc
Re: Sub-Application object cannot find files
Make sure the path to your subapp is correct.
stephen1980
Re: Sub-Application object cannot find files
Btw you must add the extensions and movements you used on Sub Apps to main application (which load the subapp).
In this case, your sub app needs Static Text extension, while the main app does not include it. So when you run the executable, the main app will try to load StaticText.mfx, which is not included, so it returns an error.
To fix this, add Static Text object to your main app then put it outside of the frame. Hope that helps :)
Re: Sub-Application object cannot find files
The extensions should all compile with the exe so that sounds pretty weird. Have you made sure your path is correct? Use the string Apppath$ or similar rather than actually typing the path address
Re: Sub-Application object cannot find files
Cool! Including the extensions I need in my main application resolved my problem! Thanks Ran_TH!
By the way, I guess I was missunderstood, there is no path to the app that is loaded as Sub App. In the main app, there is an explorer to select the sub app we want.
My application is a kind of Virtual Console that loading .ccn games.
Thanks for helping me!
Have a nice day!
T. Edoc