View Full Version : initJIPCompatible file...
nullsystems
Jun 14 2009, 11:20
What is the purpose of having this file in MP missions:
initJIPCompatible.sqf
Its empty, so surely it must trigger a function?
It sounds fairly obvious from the name but whats its exact doing?
In this file you can also write your briefing etc
What's the difference between the init.sqf and the initJIPCompatible.sqf? Do I only need one of them and what makes the JIP one so special?
nominesine
Jul 30 2009, 19:21
Does initJIP also start automatically, like a regular init?
Big Dawg KS
Jul 30 2009, 19:30
Well, judging by its name, initJIPCompatable.sqf will execute when new players join the mission in progress, where init.sqf will only execute on mission start. This is only a guess though.
initJIPcompatible.sqf gets called from the MP mission framework (scripts in modules MP directory).
A script waits until the player object is initialized and execs initJIPcompatible.sqf on clients (all clients, even those that were allready there at mission start as it is basically the same)
Has nothing todo with init.sqf.
Xeno
nominesine
Aug 7 2009, 11:01
initJIPcompatible.sqf gets called from the MP mission framework (scripts in modules MP directory).
If I understand you correctly: initJIPcompatible.sqf will run automatically everytime a new player connects to an ongoing MP game? It will run on all clients, not just the JIP-player.
Is this verified, or are you merely guessing? Do I need to place a module in the mission to make initJIPcompatible.sqf work? If so: wich one?
If so: wich one?
He just mentioned it, the mp framework module.
Inkompetent
Aug 7 2009, 11:20
Sounds like a very, very handy script to broadcast variables and make sure the new player is properly synced :)
If I understand you correctly: initJIPcompatible.sqf will run automatically everytime a new player connects to an ongoing MP game? It will run on all clients, not just the JIP-player.
Correct. But it only gets executed once on a client machine after the client connected (scripts run allways local).
Is this verified, or are you merely guessing?
Err, I can read scripts :p and have some experience regarding JIP :)
Though to be honest I'm not using it as I had mixed results with it. Sometimes it didn't get started, specially when the mission has a lot of playable slots, for example 50 (might not be a problem of the MP framework but rather an A2 problem).
I'm using another "safe" method by placing a trigger with condition
local player
in the editor and start client scripts from there. It will allways trigger on clients as player is only local in the current client instance.
Xeno
nominesine
Aug 7 2009, 15:36
I'm using another "safe" method by placing a trigger with condition local player in the editor and start client scripts from there.
Brilliant. Why didn't I think of that? Thanks again
:bounce3:
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.