Is there a way you can have Mystic call up a file for settings?
So for instance, I have a seperate file that contains settings. This way t is no need to update the .MPS but only the config file....
Not sure if i got the question correctly, but this depends on the mod.
If the mod has a separate settings file you are OK, but if it doesn't
then you have to alter the code in the MPS to read an external file for settings, which is quite a lot of job. Is that what you are asking?
I'm asking what would be the best way to write a MPS to pull in an external file for settings? Just looking for examples.
I'm asking what would be the best way to write a MPS to pull in an externa file for settings? Just looking for examples.
I'm asking what would be the best way to write a MPS to pull in an external file for settings? Just looking for examples.
Also there is the question where to save this settings file. Some prefer to make a directory, specific for mod related files and others use the ./scripts folder, where the .MPS file is.
I'm asking what would be the best way to write a MPS to pull in an external file for settings? Just looking for examples.
You could download a few of the RCS mods that were released last year... one of them is called Game Room, and it uses .ini files and creates
menus using them - but basically, its pulling in text settings from an outside file. The ZIP is named rcsgr12.zip and can be found @ 2oFB, or
on the fsxNet File Areas...
Thats the best part about MPS - 96% of every mod is open-sourced and you can just read thru...
I suggest checking out work by;
Is there a way you can have Mystic call up a file for settings?
It's really up to your creativity. But there aren't any real strong helper functions or anything to get this done for you, you'll just have to write code.
...or just copy/paste. There are many MPL mods, that use different ways
to save setting, no need to recreate the wheel ;)
In fact I was thinking that a library of helper functions for MPL would make a cool standalone release :)
Is there a way you can have Mystic call up a file for settings?
You can have separate .cfg or .ini files, mpl is quite powerful insofar
as you can do basically most things you'd be able to do writing a pascal BBS mod. It's really up to your creativity. But there aren't any real strong helper functions or anything to get this done for you, you'll
just have to write the code.
You could download a few of the RCS mods that were released last year... one of them is called Game Room, and it uses .ini files and creates
menus using them - but basically, its pulling in text settings from an outside file. The ZIP is named rcsgr12.zip and can be found @ 2oFB, or
on the fsxNet File Areas...