Page MenuHomeFeedback Tracker

BIS_fnc_MP does not work in init.sqf for Clients
Need More Info, WishlistPublic

Description

BIS_fnc_MP, if not isPersistent is true, does not work for clients before the mission has started. {F25932} {F25933}

Details

Legacy ID
2302686498
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Place code in init.sqf:
// Functions
fnc_function =
{
DEBUG = DEBUG + [_this];
};

// Initiation
enableSaving [false, false];
DEBUG = [];

// Code
["This works for server, not for (random?) clients.", "fnc_function", true] call BIS_fnc_MP;
["This works for both clients and server.", "fnc_function", true, true] call BIS_fnc_MP;

sleep 1;
["This works for both clients and server.", "fnc_function", true] call BIS_fnc_MP;
["This works for both clients and server.", "fnc_function", true, true] call BIS_fnc_MP;

Server's DEBUG: ["This works for server, not for (random?) clients.","This works for both clients and server.","This works for server, not for (random?) clients.","This works for both clients and server.","This works for both clients and server.","This works for both clients and server.","This works for both clients and server.","This works for both clients and server."]
Client's DEBUG: ["This works for both clients and server.","This works for both clients and server.","This works for both clients and server.","This works for both clients and server.","This works for both clients and server.","This works for both clients and server."]

Event Timeline

ChrisAcrobat set Category to Scripting.
ChrisAcrobat set Reproducibility to Always.
ChrisAcrobat set Severity to None.
ChrisAcrobat set Resolution to Open.
ChrisAcrobat set Legacy ID to 2302686498.May 8 2016, 11:48 AM
Adam added a comment.Apr 2 2015, 4:18 PM

Hello,

thank you for submitting the ticket. Could you please upload a simple repro mission displaying the problem? It would be a big help.

Thank you.

Absolutely! Sorry, I was in a hurry to finish a Friday-mission. But I will do it now!

Added clarification "for clients".

I maybe should point out that in the examples in the mission I uploaded the server is a client (me, not dedicated), but the client is an real internet-client (an other Arma-player).

Ops, just realized that I saved the mission as "BIS_fnc_dirTo", but it should obviously be named "BIS_fnc_MP".

R34P3R added a subscriber: R34P3R.May 8 2016, 11:48 AM

maybe you need to wait until the client is ready ?

Added code to "Steps To Reproduce".

And uploaded the example mission with correct name, but it seams that I can not delete the old one?