Jump to content

put a lua file inside the .miz file...


chromium

Recommended Posts

Hello,

 

I probably already asked this in the past. I'm able to save custom .lua files inside the .miz archive by script using DAWS, but those file are deleted once I open the miz file into the mission editor and then press the save button. I think that there is a "check" or something that allow the presence only of files that are also loaded by a trigger.

 

Is there a way to got my custom files to be retained inside the miz archive?

This could be a very important step for me to go on in the dynamic ground war project.

 

thanks!

 

PS

I don't care about saving the files somewhere else: I need them inside the miz archive.

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Link to comment
Share on other sites

negative, cause I would have to create a custom trigger by script, which 1) is a mess 2) I don't want that to be accessible by mission designer.

 

Anyway I believe that there is something that remove "unnecessary" files like you said.

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Link to comment
Share on other sites

I already use a GameGUI file for the DAWS Code (version 2.x.x). But what I need is this:

 

Me, that have DAWS, created a mission that work as a campaign. Inside the miz file you will have some .lua file which are the campaign informations tables with the "current" situation ongoing. I send the file to someone else which do NOT have DAWS. He play the mission, nothing happen campaignwise (the file is not updated as DAWS isn't there). Anyone of us send the .miz file to a third person who load on a server which use DAWS. The DAWS code of this third people should be able to use the custom .lua code that is inside the .miz archive.

 

I want it to work as it is, no setup or mission designer required, as all DAWS code is. And the only thing I think should be done is to put those lua files inside the .miz archive.

 

Probably there are rules that "acknowledge" certain files to be there, else even the dictionary file would be deleted. I only need to understand which are those rules.

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Link to comment
Share on other sites

  • 1 month later...

any possibile solution yet? :)

 

thanks anyway

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Link to comment
Share on other sites

negative, cause I would have to create a custom trigger by script, which 1) is a mess 2) I don't want that to be accessible by mission designer.

 

Anyway I believe that there is something that remove "unnecessary" files like you said.

 

As long as the LUA file that you are including (which it sounds like) is the same filename all the time then this is the way to go. You do it once and that is it. Your users don't need to edit the mission. This is the same way people use to include sound files that are not used within the mission editor but used within a running script. Those sound files are deleted if they are not referenced by a trigger that is never actually fired. As long as it is referenced it won't be deleted. Same with a .lua file.

Link to comment
Share on other sites

I need to put those file in whitout any references in the trigger. I can't understand if you are trying to explain how to do that. Where I can write the file reference?

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Link to comment
Share on other sites

I need to put those file in whitout any references in the trigger. I can't understand if you are trying to explain how to do that. Where I can write the file reference?

 

I am trying to understand why you can't have it defined in a trigger ahead of time. If it is a dynamically generated LUA filename you have to include then I can see why. But it doesn't sound that way.

Link to comment
Share on other sites

Because It's not a single mission. It's a mod, that I want to be applicable anytime anywhere whitout having to set up triggers or else, and it should work in any mission used.

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...