Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mist.cloneGroup() No Longer Working #100

Open
rexseattle opened this issue Aug 17, 2024 · 1 comment
Open

mist.cloneGroup() No Longer Working #100

rexseattle opened this issue Aug 17, 2024 · 1 comment

Comments

@rexseattle
Copy link

Greetings:

Thanks for all of the years of hard work on this project!

I've been using this function for a couple of years, successfully, but it started failing a couple of months ago and I've not really delved into it in detail yet. I figured I'd first ascertain if it's a known issue. Basically, I can not longer get cloneGroup() to work.

Example:

In one simple mission, Blue and Red Air groups are named "BA" and "RA" respectively, and are numbered sequentially. They are all created in the mission editor as "Late Activation" are are activated as-needed by my script. Since it's a theoretically endless mission, the units are cloned, and then activated, instead of just activated.

The way I've been cloning them is with:

cloned_group_name = mist.cloneGroup("RA-1")

This succeeded for quite awhile, but now I get:

[string "C:/Users/Rex/DCS/Dev/github/MissionScriptingTools/mist.lua"]:1837: attempt to call field 'addGroup' (a nil value)

Is this something that you recognize?

Thanks!

@rexseattle
Copy link
Author

Nevermind, I figured it out, I introduced my own variable coalition which was conflicting with:

1837: coalition.addGroup(country.id[newCountry], Unit.Category[newCat], newGroup)

Sorry, I'm stupid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant