Jump to content
avibird 1

Mission ends Following start up from main Arma menu but works fine when playing the mission from the editor why and help

Recommended Posts

I'm playing my missions on a host server.  The mission works fine from start to finish playing with other people when I start the mission from the editor. 

 

The mission is 90% done just a few adjustments here and there still left to do so I wanted to take it out on a test drive but every time I launch it from the main  Arma menu play mission button the mission loads up and then I get the  complete mission screen. Why is there a difference between starting he mission from the Eden editor versus the main menu. Do I need to put a different end mission trigger ? Confused

Share this post


Link to post
Share on other sites

What are your condition(s) for the mission completion? Sometimes adding (count allPlayers >0) can be sufficient to avoid a 0 = 0 test at start.

Share this post


Link to post
Share on other sites

@pierremgi

 

in my trigger

type- end1

activation- none

repeatable

condition

{!(_x getVariable ["btc_qr_unc", false])} count (playableUnits + switchableUnits) == 0;

onactivation

"END1" call BIS_fnc_endMissionServer;

 

Like I said it works fine when a start the game from the editor but ends right at start when I attempt to start the game from the main menu play
 

Share this post


Link to post
Share on other sites

some hints:
switchableUnits returns [] in MP (normal)

playableUnits returns [] in MP if you disabled Ai in lobby,until a player reaches the game (questionable definition, similar to allPlayers in this case).

Test with enabling AI in lobby or, as I said, adding the condition: count allPlayers > 0

 

!(_x getVariable ["btc_qr_unc", false]) means true each time a player (unit) hasn't got this variable set to true, yet, so, i guess is not the problem here.

 

Share this post


Link to post
Share on other sites

I also play with AI enable ?

 

{!(_x getVariable ["btc_qr_unc", false])} count (allPlayers+ playableUnits + switchableUnits) >0;

 

Do you think something like this will work.  I think I need switchable and playable because like I said I also have some in the mission. I never play with that many real players just a few in my missions. 

 

Share this post


Link to post
Share on other sites

Still looking for someone help can't get it to work right game ends when attempting to start the game from the main play button. Works fine from editor !!! 

Share this post


Link to post
Share on other sites

Okay this is getting a little frustrating. I took at all my end game triggers for my unconscious units and reach location triggers. 

 

The mission still ends right off the bat when I launch the game from the main play button. The mission works fine including all triggers when play scenario from the editor online on host server.

 

Is there something I'm missing that I need to add to Mission init.sqf or description? I usually play my missions through the editor with a few other people. 

 

Does the mission need to be PBO format to play from the main play button not the editor play scenario button never really had this issue before. Puzzled and confused Avibird.

  • Like 1

Share this post


Link to post
Share on other sites
On 4/16/2018 at 6:39 AM, avibird 1 said:

Okay this is getting a little frustrating. I took at all my end game triggers for my unconscious units and reach location triggers. 

 

The mission still ends right off the bat when I launch the game from the main play button. The mission works fine including all triggers when play scenario from the editor online on host server.

 

Is there something I'm missing that I need to add to Mission init.sqf or description? I usually play my missions through the editor with a few other people. 

 

Does the mission need to be PBO format to play from the main play button not the editor play scenario button never really had this issue before. Puzzled and confused Avibird.

Did you ever figure this out. Running into the same type of thing... works fine single player but when I try to host multiplayer it ends upon starting. 

Share this post


Link to post
Share on other sites
9 hours ago, YarHaka0656 said:

Did you ever figure this out. Running into the same type of thing... works fine single player but when I try to host multiplayer it ends upon starting. 

 

A couple of clarifications:

How does the mission end, what does it look like, what happens and in what order?

 

How and under what circumstances do you end the mission? Describe (technically) all possible endings

 

When you say it works in singleplayer do you mean the editor or as a singleplayer mission launched from the menu?

 

If you can upload the raw mission with a required dlc/mod list so we can help troubleshoot.

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×