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

Part of MIST interfering with password-protected Game Master slots, leading to mission script errors #68

Open
SRF-NightOwl opened this issue Jul 2, 2022 · 3 comments

Comments

@SRF-NightOwl
Copy link

Whenever we use password-protected Game Master slots in missions containing MIST, we get a mission script error for line 5291 in the MIST script.

This is the part of MIST that seems to cause the error:

local caSlots = false
local caMSGtoGroup = false

if env.mission.groundControl then -- just to be sure?
	for index, value in pairs(env.mission.groundControl) do
		if type(value) == 'table' then
			for roleName, roleVal in pairs(value) do
				for rIndex, rVal in pairs(roleVal) do
                    if env.mission.groundControl[index][roleName][rIndex] > 0 then
                        caSlots = true
                        break
                    end
					
				end
			end
		elseif type(value) == 'boolean' and value == true then
			caSlots = true
			break
		end
	end
end

Attached is the error message. Do I have to change something in these lines to prevent the error?

Thanks a lot for the help!
MIST error

@SRF-NightOwl
Copy link
Author

Stand-by, this may have been fixed by the latest MIST update. I'll come back if it re-appears

@mrSkortch
Copy link
Owner

What version were you using before?

@SRF-NightOwl
Copy link
Author

I was using version 4.4.90 before. My bad, apologies

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

2 participants