Home   Help Search Login Register  

Author Topic: The main mission editor  (Read 3984 times)

0 Members and 1 Guest are viewing this topic.

Offline Ironman

  • Former Staff
  • ****
    • {GSF} Home Page
The main mission editor
« on: 21 May 2008, 01:37:58 »
Ok, a lil word barfing here....

Why does the "preview" in the editor perform certain actions that would lead you to believe there are no problems. However, once you export them to MP missions, there are problems.

I hope I described the problem well enough. I am just curious to know why.... and if there is a way around it.
TS3 IP: tor.zebgames.com:9992

Offline schuler

  • Contributing Member
  • **
Re: The main mission editor
« Reply #1 on: 21 May 2008, 03:26:24 »
Description and init load, then unit's inits,,,, I believe. There has been some talk about what loads first after the missions is PBO'ed . it is an trial and error thingo. Just keep testing.
The game is just like that,  plus MP is more touchy, then SP ,, I think!
Helpfully someone can give you a better answer!!!!!!  ;)
cheers Schuler
Semper Fi

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re: The main mission editor
« Reply #2 on: 21 May 2008, 03:28:08 »
I guess it would help if you could descripte what "problems" arise to you when exporting to MP since i've never had problems with missions that worked well in editor preview.

Offline schuler

  • Contributing Member
  • **
Re: The main mission editor
« Reply #3 on: 21 May 2008, 03:37:20 »
hi , what kind of problems, just things in general? the more things you have happening at the start will be in the game engine ,,,so to speak......
Semper Fi

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re: The main mission editor
« Reply #4 on: 21 May 2008, 03:45:30 »
About init loadings, made a quick (not in-depth) research using this script:

Code: [Select]
_string = _this select 0;
sleep 1;
if (isnil "testarray") then
{
testarray = [];
};
testarray = testarray + [_string, time];
which i've called from several places/init lines. There were nothing else on the map, no other scripts running. The list i've got was the exactly the same at each preview:

Player Unit........1.003
AI Unit.............1.003
AI Vehicle.........1.003
Gamelogic.........1.003
Empty Vehicle....1.003
init.sqf..............1.003
Trigger (Condition set to true).....1.716

I also could keep the order whenever i've deleted one or another object/unit.

I don't know how representative this result is.

*EDIT*
Extended the test script with a sleep and a time output, added to the above list. It seems that initlines and init.sqf are executed at same time. For sure now it depends on complexity of called scripts how much resources they take and how long they take to proceed. I had scripts that took about 10 seconds to complete (with sleeps in it to not hit the performance too hard).

So, generally speaking, i guess it doesn't matter where a script is called if other scripts that inherits from them are coded the way that they'll wait until the predecessed script is finished.
« Last Edit: 21 May 2008, 03:58:12 by myke13021 »

Offline schuler

  • Contributing Member
  • **
Re: The main mission editor
« Reply #5 on: 21 May 2008, 03:56:20 »
ok, i am not sure,,,, try times like min 2 in tiggers so they all done go off at once, or in the  unit ~2
or ~2 sec delay,,,,
hope you know what i mean
 iam not sure if iam helping you  :(
cheers schuler
Semper Fi

Offline Ironman

  • Former Staff
  • ****
    • {GSF} Home Page
Re: The main mission editor
« Reply #6 on: 21 May 2008, 07:50:56 »
Ok, a recent problem was getting a chopper to land using the heli land "GET OUT" then a command to disembark all the soldiers. It worked perfectly in the mission preview but in the mission it never landed and just kept going on its merry way lol....

There have been other problems, I can't remember them. But, hope this gives a better description.
TS3 IP: tor.zebgames.com:9992

Offline schuler

  • Contributing Member
  • **
Re: The main mission editor
« Reply #7 on: 21 May 2008, 07:52:31 »
do you have the sync line at the get out, with chopper?
edit
heli Land "LAND"  at waypoint
« Last Edit: 21 May 2008, 08:05:23 by schuler »
Semper Fi

Offline Ironman

  • Former Staff
  • ****
    • {GSF} Home Page
Re: The main mission editor
« Reply #8 on: 21 May 2008, 20:07:04 »
roger dodger

anyways, like I was saying this isn't just for one problem, I am just seeking knowledge of why this poo happens.
TS3 IP: tor.zebgames.com:9992

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: The main mission editor
« Reply #9 on: 22 May 2008, 17:28:04 »
Ok, a recent problem was getting a chopper to land using the heli land "GET OUT" then a command to disembark all the soldiers. It worked perfectly in the mission preview but in the mission it never landed and just kept going on its merry way lol....

First off, if you are asking specifically about MP then post on MP board.

Did this problem happen when the MP mission was on a server? If so how exactly did you give the heli land "GET OUT"? The command must be executed where the heli is local. If the AI heli is not in a player group then it is local to the server. If it is in a player group then it is local the machine of the group leader.

A mission often does not behave exactly as in the editor, both when exported to SP and MP. You can do some very limited testing of MP issues by playing with your own machine as a non-dedicated server.  For full MP testing you need a dedicated server and a lot of patience.

The best approach is to ask a specific question on these forums with the exact details of what you are doing- even better upload a mini demo mission of the problem.

Even if you do not script, take a look at Mandoble and Spooner's MP Scripting Tutorial in the ED for some answers about locality.
« Last Edit: 22 May 2008, 17:33:30 by Mr.Peanut »
urp!

Offline Ironman

  • Former Staff
  • ****
    • {GSF} Home Page
Re: The main mission editor
« Reply #10 on: 22 May 2008, 21:27:23 »
Woooo, did I just get fried? lol

This forum post was for everyone else to post comments about problems they have had. It is meant for the general populous to learn about this....
TS3 IP: tor.zebgames.com:9992

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: The main mission editor
« Reply #11 on: 22 May 2008, 21:44:20 »
Woooo, did I just get fried? lol

No, you just posted in the wrong section. It happens to everyone from time to time. There's a reason this forum has different sections: a General section and a Multi Player section.

ArmA (and it's predecessor OFP) behaves very different in a MP-environment. The problems you are refering to are well known by most of the members on this site. At least the ones that are interested in MP editing. If you post your question in the right forum, you will get better answers. It's as simple as that.

I'm an experienced MP editor myself and will gladly help you with your problem. It sounds as if you are facing a locality problem, as mr. Peanut suggested. Unfortunately you must be more specific. What's not working, exactly? How did you try to achieve it?

We can continue the discussion in this thread. No need to start a new one. A mod will move it to MP as soon as they see it.
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline Rommel92

  • Members
  • *
Re: The main mission editor
« Reply #12 on: 22 May 2008, 21:54:19 »
Perhaps post your mission, or screenshots of what you have done in the editor, all these help us to come to conclusions...  :good:

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: The main mission editor
« Reply #13 on: 23 May 2008, 00:12:48 »
Maybe Snypir's guide to MP editing is what you need. It was written for Operation Flashpoint, but since ArmA behaves exactly the same way, it's still very useful.
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: The main mission editor
« Reply #14 on: 23 May 2008, 16:41:14 »
Woooo, did I just get fried? lol
No, not fried, poached! Seriously, I was just trying to be helpful but also steer this thread to its proper home. Do things behave differently in the game editor than as a mission? Yes! And first encounters with this can induce hair-pulling.
urp!