Jump to content
Sign in to follow this  
kipper

multiplayer mission problem

Recommended Posts

:confused:

Hi newbie with mission editing & would like some advice.

I have created a mission for multiplayer with two 'playable' squads on our side. When I host the mission (non-dedicated) I can control either of the two squad made up of AI, however if my mate tries to lead a squad the AI members just stand their and do nothing.

What do I need to add to my mission file to make it work properly? Do I need a special script?

cheers

:confused:

Share this post


Link to post
Share on other sites

Tried search?

You need to be a bit more precise in the question I think if you want an answer. When you say

two 'playable' squads on our side
what do you mean exactly; Are all the squad members playable or do you mean the squad leaders? Did you create them in the editor using groups or are they spawned by script? Are you hosting when your mate is trying to lead a squad?

Share this post


Link to post
Share on other sites

Thanks for the reply - and yes I tried searching but I'm not sure exactly what I'm searching for :

Yes;I'm hosting the mission and my friend is joining as a client, each trying to lead a different squad, which is filled out by AI.

All of the slots are playable (in the hope that when I get it working other human players can join), however when we play only the squad leader positions are taken by human players (me & him).

I created them in the editor using groups/I dragged the group line between them (when he joins he is definately the team leader & can see the F2 F3 etc icons in the bottom of the screen).

I can control my squad without any trouble (as can he if he hosts the mission, in which case I'm the one with the problem) - so I assume it has something to do with mission set-up.... Do I need a server gamelogic (not even sure what this is and whether I need scripts orsomething to go with it)

Please advise....

Edited by kipper
typos

Share this post


Link to post
Share on other sites

I'm using a vanilla setup with no addons (both computers have identical setups)

So do i need a server logic or something?

Edited by kipper
typo

Share this post


Link to post
Share on other sites

What happens if you host and you both are in same squad but with him as leader? Will the AI then follow him?

If all fails try upload your mission and let us take a look at it.

Share this post


Link to post
Share on other sites

Tried to host with him as leader & myself in another position in the same squad - same problem, he can't give orders that the ai will obey.

Mission (very simple) works fine when I host & lead.

Uploaded the mission file here Thanks for taking the time to have a look.

Share this post


Link to post
Share on other sites

First guess:

addSwitchableUnit person

Not needed? This is simply trying to add someone called 'person'. Won't work. Teamswitch works anyway.

Second guess

[d1,d2,d3,d4,d5,d6] join hophead

Your forcing the second group's units to join the other groups units.

Edited by Rommel

Share this post


Link to post
Share on other sites

Try remove code from the squad units init field, it looks very messy.

Example: this setBehaviour "SLEATH" ??

So try remove all that init code and see if your mate gets control over his squad.

Share this post


Link to post
Share on other sites
Code:

[d1,d2,d3,d4,d5,d6] join hopheadYour forcing the second group's units to join the other groups units.

- this is in a radio command and not activated when the mission begins, so squads are seperate. Tried removing it & no joy.
So try remove all that init code and see if your mate gets control over his squad
- tried that, same result.

---------- Post added at 12:59 PM ---------- Previous post was at 12:57 PM ----------

is this a 'locality' issue - ie all commands are attempting to execute on the host machine when they should be on the client for his squad ? (out of my comfort zone here)

Share this post


Link to post
Share on other sites

Make a new mission with only 2 squads nothing else. Set all units in both squads to 'playable' now see if your mate can control his squad now.

Share this post


Link to post
Share on other sites

Really stumped now - tried

new mission with only 2 squads nothing else
and same result.

I've also tried this with Arma 1 & same result.

Can't be firewall as no probs joining or seeing the other player's game, and also when other player is in same team they can move/fight/play as normal (ie info is going back and forward, but no command data? From what I've read the squad commands are normally proccessed in the client side first then passed back - so is this an issue?

Share this post


Link to post
Share on other sites

Hi there,

What editor in the game do u use ?

Because there are 3 editors in the game.

The editor from the main menu is NEVER used, it just a single player editor.

You want to use the editor which can be reached true the multiplayer screen, on the multi-player screen right bottom click "new", always use this editor.

The 3th editor is reached from the MAIN screen, you click "Ctrl" + "E" and you will enter the 3D editor, this editor is very complicated for beginners so you doint want to use that one either.

Yet another thing is that i never use "group" to create playable units, i only use "group" for enemy AI's or Friendly AI's.

The playable group i always create from single units.

I dont think that is an issue, but still....

Alphons

Edited by Alliexx

Share this post


Link to post
Share on other sites

editor? the one in the game (ie singleplayer>editor) didn't know there was another one.

Share this post


Link to post
Share on other sites

The editor that is prefered is the editor on the "multiplayer" screen, its not called editor but it is true the click on the button "new"

If you used the singleplayer editor then that is your problem.

The single player editor lets you create missions in which you can use the option of switching between units.

Trust me, if you put 2 groups on the map, make 'em all playable, it should work without any other setting or scripts.

Later,

Alphons

Edited by Alliexx

Share this post


Link to post
Share on other sites

I dunno if the problem is accessing the 2d editor from the Single player menu, never started editor from there.

Here's a mission, completely emty just two 3-man squads for testing.

http://rapidshare.com/files/295975908/mptest.Chernarus.pbo.html

It's created with editor started from multiplayer create game menu.

Edited by JW Custom

Share this post


Link to post
Share on other sites

Ok an overview then:

Editor 1 = The single player editor, reached true the single player start screen.

Editor 2 = Multiplayer editor, reached true the MULTIPLAYER screen, right bottom the button "NEW".

Editor 3 = 3D editor, reached by clicking "ctrl" + "E" on the MAIN screen when starting Arma2.

For multi player you NEVER use the "single player editor" !!

Alphons

Share this post


Link to post
Share on other sites

COOL!

Thanks guys - JW Custom's mission works just fine!

I was creating all my missions using the single player editor - clearly this must be the problem, although I'll confess I still can't see any actucal difference between the mission.sqm's when I unpack them.

Two questions remain though -

1, in the list of mission availble one of the missions shown (the new one) is highlighted in a different colour to the rest (green/grey) -this the mission I created (so cleasrly differnt from the rest. Is is normal?

2. Is there a simple way to import my old single player mission into the MP editor without having to do it all from scratch.

Thanks for sticking with me on this problem, delighted to have it working properly now....

Share this post


Link to post
Share on other sites

I do know that an open editable mission has a different color then a closed mission.

Another thing to know before editing is to know where the missions are saved(the open ones), because as soon as you are going to use scripts or just some as simple as respawn, you need to manually edit files inside your "open" mission folder.

The exact differences between the single player and multiplayer missions, has probable some to do with the way they are saved to be playable ingame.

As long as you save your mission as an editable mission it will stay in a different color, as soon as you save the mission to be multiplayable( create a so called .pbo file out of it ) the color will change and you are no longer able to edit it. It actually saves it as a copy, so the open editable mission will still be there.

Later,

Allie

Edited by Alliexx

Share this post


Link to post
Share on other sites

1). The blue is the editable version the green is the saved/exported .pbo version.

2). You could open up you old mission and select everything dragging a box around of it and then copy(ctrl + c) and then open up new blank mp misison and paste the objects(ctrl + v). This should work!

Edited by JW Custom

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
Sign in to follow this  

×