Home   Help Search Login Register  

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

0 Members and 2 Guests 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!

Offline Ironman

  • Former Staff
  • ****
    • {GSF} Home Page
Re: The main mission editor
« Reply #15 on: 25 May 2008, 00:06:26 »
Ok, well I basically forced landed the chopper. So, it is working now but, I will keep you posted on the other stuff as soon as I am at my PC.....
TS3 IP: tor.zebgames.com:9992

Offline evilnate

  • Members
  • *
  • werd
Re: The main mission editor
« Reply #16 on: 16 Jun 2008, 01:39:45 »
Geez I didn't realize I still have a account here, yay for me!  :D

Regarding locality of MP, it's a real pain for me and I can give some detailed examples of how I do work-arounds and where I need help.

#1) I made a MP mission that has several objectives and when we all start together and start completing obj's, it checks off on everyone's briefing. If someone joins in progress, they don't see that some of the objectives have already been completed. My awesome scripting buddies said that I needed to included the "onPlayerConnected" even handler however it never worked out (I've even seen this on other missions). My solution for this problem was strange, but highly effective. I noticed that triggers that detected if someone was alive or dead would update for new comers, but if there was say.. a trigger that detected if a building was destroyed it wouldn't update. My solution was creating some civilians on a distant island off sahrani and have a obj trigger for that civ. Once the building was destroyed, it would setDammage for the civi to 1.0 and then that trigger would detect the absent civilian.

#2.) The problems that I am still having are getting AI to do what they do in SP. I understand that AI controlled "leaders" are controlled by the server unless a human assumes control of the AI group. Some examples would be.. AI flying A-10's and attacking a enemy base, in SP or in "preview", they would perform precisely how they should - in MP on a dedicated server with default skill levels they would do several fly-bys before attacking anything, and most often get shot down for their hesitance. In preview, the extraction helo would come in with a LOAD waypoint sync'd to playable group's GETIN waypoint and wait for everyone to join then take off as normal.. IN MP on a dedicated server the stupid AI help would just hover of the marker and eventualy get shot down or just fly off. I did some investigating to see what I was doing wrong and the boys that hang at the BI fourms directed me to the disclaimer when you try to view the MP lobby from the game "Multiplayer game experience may change".

Does anyone on these boards know why the AI do strange stuff on a dedicated server even though they are not commanded by human players?

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: The main mission editor
« Reply #17 on: 16 Jun 2008, 13:38:23 »
#1: This issue has been fixed in ArmA 1.09. Before this, Jippers didn't get updated with any current building damage. Remember that onPlayerConnected/onPlayerDisonnected is only run on the server (and only in MP games), so you won't see the handler ever being run on your client PCs (or in the SP editor). Thus you need to manually communicate to the clients information about connections and disconnections.

#2: AI manipulation isn't my field. Sorry!
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)