I know it may sound weird and even stupid, but I have this idea and I'm not sure if it's possible to do becasue I know that MMF2 can only excute final files as .exe and not any other extenssion I want.
My Idea is to make a MASTER software (like emulator, but it's not emulating anything it's just for example) and this "MAIN" software will be able to run specific extenssions that made with MMF2.
So is there a way to create in MMF any other extenssion for example:
game.tp9 or any other extenssion I like ?
And make the "MAIN" software to load it ?
so ONLY the master software can load those files, is it possible maybe with some plugins or extenssions in MMF2.
If it's possible would you be kind and make an example to see how it works please ?
DaVince This fool just HAD to have a custom rating
Registered 04/09/2004
Points 7998
3rd September, 2007 at 04:45:52 -
"MAIN" software is also known as a "Virtual Machine": the program/game code is only half compiled to so-called byte-code, which is then compiled to the actual MACHINE code with the virtual machine.
Java does this, by having JAR files as applications and the Java virtual machine itself (java.exe in Windows).
What you basically want is a program that can compile and run CCA files without needing MMF2. I'm sure it's possible, but it defeats the purpose of the demo version of MMF2 purposely not allowing compilation of these files - you'd be able to run them anyway, through that compiler/Virtual machine.
Well... is there a way to make something for example:
when MMF2 can create INI files, save and read them (it's bad example I know...)
so can MMF2 create other files and read them ? (like the level editor idea maybe... I'm not really sure)
Trying to acomplish it without using any outside software beside MMF2 iteslef.
DaVince This fool just HAD to have a custom rating
Registered 04/09/2004
Points 7998
5th September, 2007 at 06:11:57 -
Wait wait wait, you're not talking about virtual machines at all? Oh man, talk about wasted effort.
You can read and create any kind of file in MMF2. Objects like the File object, the INI object, the Array object and the binary object (really advanced, this one) can read from and write to files without much problems...
Example with the INI object:
Add the object, specify the filename (like "./file.ini" to keep it in the same directory as the MMF game itself). Write some values/strings into it and it'd create that file and save the data in it. Just write some values and open the INI in Notepad to see the effects.
The array object can save its data into a file. It's a bit big though, so I'd use LIJI's byte array object if I were you (it's much more space conservative).