Home   Help Search Login Register  

Author Topic: DAMN YOU, MULTIPLAYER!!!  (Read 1379 times)

0 Members and 1 Guest are viewing this topic.

Offline Nemesis6

  • Members
  • *
DAMN YOU, MULTIPLAYER!!!
« on: 26 Sep 2004, 22:16:19 »
*Ahem* Now that I have your attention, I would like to ask for some help - When running my FlashFX mod in multiplayer, my scripts almost never run. What is wrong here? Is this some kind of multiplayer issue or something?
I am actually flying into a star... this is incredible!

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:d**n YOU, MULTIPLAYER!!!
« Reply #1 on: 26 Sep 2004, 22:44:02 »
Well, there are lots of differences between MP and SP editing. I don't have any MP editing experience, but read this to get started:

http://www.ofpec.com/editors/resource_view.php?id=120

Then start reading some more tuts in the MP section of the ed depot. Oh yeah, and this topic should be in the MP forums. :)
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline Nemesis6

  • Members
  • *
Re:d**n YOU, MULTIPLAYER!!!
« Reply #2 on: 27 Sep 2004, 13:26:18 »
Anyone care moving it? :)
I am actually flying into a star... this is incredible!

Offline surpher

  • Members
  • *
Re:d**n YOU, MULTIPLAYER!!!
« Reply #3 on: 27 Sep 2004, 19:49:15 »
On the server where I play, if someone is using your Mod we get a TACTevents error pop-up at the start of every mission. Gets quite annoying so players are asked not to use it.  Not seen this problem reported in the Official Forums so I'm not sure if you are aware of it. It might help you work out why your scripts are not running sometimes.

RonMcAsskick

  • Guest
Re:d**n YOU, MULTIPLAYER!!!
« Reply #4 on: 30 Sep 2004, 08:25:59 »
Consider the following, I realised this when lying in bed one morning and it was a revelation for my editing.

While you design a mission remember there are 2 possible users for a script and only one should ever be used, these are local and non-local (or server) scripts

there are a few differences between these that might be found above but the main ones are

Local scripts will never produce createvehicle or drop effects you want this is because if you had 4 players and a script running on each compter you would get 4 of the same thing and if the local script does create a vehicle (which it often does) then it wont appear in other players screens (same for effects

The server can run these so it is best to use "manager" style scripts to manage the incoming variables and pass them to the server to take your actions.  An example of this for my MP artillery, napalm and cti scrpts will be up on my site soon so check it out to see how it is done

A server script can be denoted by using the following line at the start of the script

? !(Local LocalServerObject):Exit

where LocalServerObject is the name of a game logic placed in the editor mode of your mission

This checks if the computer running the script is the server and exits it if it is not.

Hope this helps.  If you understand it should allow you to code perfectly in multiplayer.

Ron