The Daily Click ::. Forums ::. Klik Coding Help ::. Main-Software Run Special Files - is it possible in MMF2 ?
 

Post Reply  Post Oekaki 
 

Posted By Message

kayoto



Registered
  29/08/2007
Points
  16
2nd September, 2007 at 17:14:48 -

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 ?

Thank you so much.

*Sorry about my bad English



 
www.krazykartoons.com
Because we're Krazy about Kartoons!

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
2nd September, 2007 at 17:18:39 -

Well i know level editors made in mmf2 can load up files with any kind of extension.

 
.

kayoto



Registered
  29/08/2007
Points
  16
2nd September, 2007 at 17:22:42 -

oh, that sound the same idea, cool !
so maybe somebody who already created such thing will be able to help.

Thank you

Image Edited by the Author.

 
www.krazykartoons.com
Because we're Krazy about Kartoons!

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
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.

 
Old member (~2004-2007).

kayoto



Registered
  29/08/2007
Points
  16
4th September, 2007 at 21:38:16 -

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.

Any ideas ?

 
www.krazykartoons.com
Because we're Krazy about Kartoons!

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
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).

 
Old member (~2004-2007).
   

Post Reply



 



Advertisement

Worth A Click