Jump to content

Recommended Posts

Posted

I'm developing a complex mission that I want to upload to the User Files when I'm done. I'm in the process of beta testing, and everything is going well, except...the addon scripts that I like won't load/apply consistently. I'm using MIST and "Splash Damage", loading them in the first two triggers, with a delay of 5 seconds for "Splash Damage" to load, so that I'm sure that MIST has completely loaded.

This mission will be for the A-10A, which doesn't seem to have many missions compared to other aircraft. I'm not on the ground, so I don't see the explosions, etc...but the change in sounds with this script is terrific. Maverick launches, ground explosions, the engine noise, and OMG that GAU cannon! It totally increases the immersion!

Since I'm still developing the mission, I'm flying it over and over again, making tweaks to things as I'm going along.

I know flying the mission again doesn't automatically reload the scripts correctly automatically, so instead of using the "Do Script File" action, I'm using this "Do Script" programming:

dofile([[C:\to\my\script.lua]])

Once I get everything ready to be uploaded, I'll replace those triggers with "Do Script File" actions.

The "Do Script" techniques seems to work, but only about once every 5 mission starts. This is very frustrating.

I've also tried to do the technique of: delete the Do Script File actions, save, add the Do Script File actions, save again. This is also very inconsistent.

Is there any OTHER way I can get these files to load/apply on a consistent basis?

Thanks for any help.

rictshaw

Posted

Not sure, I'm not great with ME triggers but I'm guessing it might be the base trigger type? I do my code load it like this...Type: 4 MISSION START, then a DO SCRIPT with the following;

assert(loadfile(string.format("%s\\Shared\\master_file.lua", base_code_dir)))()

 

Creator & Developer of XSAF ::An AI model that wants to kill you, and needs no help from humans.

Discord: PravusJSB#9484   twitch.tv/pravusjsb  https://www.patreon.com/XSAF  https://discord.gg/pC9EBe8vWU https://bmc.link/johnsbeaslu

Work with me on Fiverr: https://www.fiverr.com/pravusjsb

Posted
On 8/4/2022 at 3:21 AM, PravusJSB said:
base_code_dir

This is likely a dumb question but where do you get "base_code_dir" from? For use on another machine.

I use a similar scheme but, in my case, the 'base_code_dir' is specific to my install and won't be the same (different user for one) on another machine. For a 'release' build I use DO_SCRIPT_FILE and to get them all into the miz but would like to skip that chore (there are about a dozen files, 12K lines of code, all in separate 'modules').

Coding it all up is one thing but I'm sure I'm ignorant or missing something here.

Thanks ahead of time.

i6700k 4.4mhz, 32Gb, nVidia 1080, Odyssey+, CH Products, Derek Speare Designs button box, Bass shaker w/SimShaker For Aviators

Posted

Its a variable (string) with the file location path which changes if its running locally in test, or on my server. The code lives in the cloud and the string is pre defined on the given environment which is loading the code, so they all point to the same place.

Creator & Developer of XSAF ::An AI model that wants to kill you, and needs no help from humans.

Discord: PravusJSB#9484   twitch.tv/pravusjsb  https://www.patreon.com/XSAF  https://discord.gg/pC9EBe8vWU https://bmc.link/johnsbeaslu

Work with me on Fiverr: https://www.fiverr.com/pravusjsb

  • Recently Browsing   0 members

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