Jump to content
  • 0

_target say _sample


Guest

Question

Anyone ever experienced this RPT error before?

Been trying to track it down for a while now but to no avail; checked all script files for occurrences of that string, but no joy so far.

"DEBUG: loadscreen guard started."
"AC_functions version 1.02"
Error in expression < 2; _sample = _this select 3};

_target say _sample>
Error position: <say _sample>
Error say: Type String, expected Array,Object
Error in expression < 2; _sample = _this select 3};

_target say _sample>
Error position: <say _sample>
Error Generic error in expression
"PLAYER RESULT: true"
"PLOGIN: Login loop completed!"
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

omg, the error messages are looping on my client rpt

"DayZ Epoch: PRELOAD Functions\init [[L 1-1-A:1 REMOTE],any]"
"DayZ Epoch: MPframework inited"
Wrong unit index 0 (unit is not in the slot)
Wrong unit index 0 (unit is not in the slot)
Wrong unit index 0 (unit is not in the slot)
Wrong unit index 0 (unit is not in the slot)
Wrong unit index 0 (unit is not in the slot)
SetFace error: class CfgFaces.DrakeHead_EP1.Zombie2 not found
Error: Error during SetFace - class CfgFaces.DrakeHead_EP1.Zombie2 not found
Wrong unit index 0 (unit is not in the slot)
Wrong unit index 0 (unit is not in the slot)
Wrong unit index 0 (unit is not in the slot)
Wrong unit index 0 (unit is not in the slot)
Wrong unit index 0 (unit is not in the slot)
Wrong unit index 0 (unit is not in the slot)
Wrong unit index 0 (unit is not in the slot)
Wrong unit index 0 (unit is not in the slot)
Wrong unit index 0 (unit is not in the slot)
Wrong unit index 0 (unit is not in the slot)
Wrong unit index 0 (unit is not in the slot)
Wrong unit index 0 (unit is not in the slot)
Wrong unit index 0 (unit is not in the slot)
Unexpected array size (size=6574 message struct NetworkMessageObjectSetVariable, item value)
Unexpected message data (message struct NetworkMessageObjectSetVariable, item value)
Before (0x00000000): e7 01 f5 73 00 00 02 de 2a 6d 61 67 61 7a 69 6e 65 63 61 72 67 6f 00
Current (0x00000017): ae 33
Unknown variable type —

Client: Object 20:176 (type Type_70) not found.
Client: Object 2:8872 (type Type_99) not found.
Error in expression < 2; _sample = _this select 3};

_target say _sample>
  Error position: <say _sample>
  Error say: Type String, expected Array,Object
Error in expression < 2; _sample = _this select 3};

_target say _sample>
  Error position: <say _sample>
  Error Generic error in expression
Error in expression < 2; _sample = _this select 3};

_target say _sample>
  Error position: <say _sample>
  Error say: Type String, expected Array,Object
Error in expression < 2; _sample = _this select 3};

_target say _sample>
  Error position: <say _sample>
  Error Generic error in expression
Error in expression < 2; _sample = _this select 3};

cant find the damn file that causes this....

Link to comment
Share on other sites

  • 0

And why is it suddenly throwing this error. Any idea so far? I think you did not touch this knowingly.

 

 

I think i figure out whats causing this.....This is a total server breaker if you guys use custom sounds and dont use them properly.

Based on that .sqf file....there is a proper way of setting up rSay command.

 

I've seen around (even i did it), people using sounds like this:

[nil, player, rSAY, "Snore", 50] call RE;

This is wrong.

The say.sqf has this inside it:

scriptName "MP\data\scriptCommands\say.sqf";

_caller = _this select 0;
_target = _this select 1;

_sample = _this select 2;

//check for obsolete script call
if (isNull _target) then {_target = _this select 2; _sample = _this select 3};

_target say _sample

and based on this error that loops in the client.rpt file

_target say _sample>
  Error position: <say _sample>
  Error Generic error in expression
Error in expression < 2; _sample = _this select 3};

_target say _sample>
  Error position: <say _sample>
  Error say: Type String, expected Array,Object
Error in expression < 2; _sample = _this select 3};

Type String, expected Array,Object

 

it means that the proper use of rSay is this:

 

[nil, player, rSAY, ["Snore", 50]] call RE;

 

so that the 3rd param is an array...instead of a string.

If you have a sound that loops (like i did) in your files....the it will spam the client log file with the above error.....causing lag obviously to all the players that are around that area where the sound is playing.

If i were you i'd search ALL your mission/dayz_server files for any rSAY reference and make sure you use an array instead.

The 50 in the above example means 50% volume...instead of 100%.

Link to comment
Share on other sites

  • 0

Yes, the parameters behind the command needs to be between [ ]...even if it's not really clear from here:

https://community.bistudio.com/wiki/Multiplayer_framework

 

If there is only 1 parameter after the command " " is enough.

https://community.bistudio.com/wiki/say

 

 

I need to have a look at home this evening...as I think for a sound when locking/unlocking my cars I do not use the brackets but I am not getting these errors. But I will double-check how I use this.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...