Some players cant interact with some others
ACE3 Version: 3.0.0.1 ( Master from 26.04.2015 15:00 GMT)
Mods:
- ACE3
- CBA
- TFAR
- BWMod
- RHS
- HLC Weapons
- RH Weapons
- POMI PMC
- IslaDuala
Placed ACE3 Modules:
- Medical settings
- Treatment settings
- Rallypoint system
- Respawn system
- BlueForce Tracking
Description: Some players have no interaction menu on some other players, but on objects. The players affected by this are completely random. After rejoining the server its sometimes fixed, but not for evey player. These players can interact with themselves, and we made sure that everybody has the same version.
Steps to reproduce: Were not able to reproduce this, because its completely random. Were just joining on our server, and some people cant interact.
Where did the issue occur? MP on dedicated server
Please upload the RPT-file @ pastebin.com and post the link.
which one? server, client or the client the problem is appearing?
All of them. Labled if possible.
Duplicate of #516.
then lets close this since the other one is more up to date...
It's not. Please post the RPT.
Yeah, no need to close it, but I'm almost sure it's a duplicate.
Apparently sometimes the interact menu either fails to init for some random class or somehow the corresponding variable is overwritten by an empty array. It happened to a comrade ofmine while we were testing, but I could not ever reproduce it myself. I looked at the code too but could not find any possible cause (besides init EH not firing, which shouldn't happen).
BW units are fully XEH compatible.
I don't think this related to BWMod; in fact it happened to us using RHS, and others reported the same with vanilla units. I think it may be init XEH not working reliably or something wrong in our code.
Were using BWMod units and vanilla units....RPTs are coming later
CBA may be missing an init on a unit or two still; this has happened in the past. Can you provide the full test mission, or the list of unit classnames?
https://onedrive.live.com/?cid=769EDA8293139C35&id=769EDA8293139C35%21130
Thats the mission were playing on.
Just placed everyone with
a = "configName _x isKindOf 'CAManBase'" configClasses (configFile >> "CFGVehicles");
_pos = position player;
{
_pos = _pos vectorAdd [2,0,0];
configName _x createUnit [_pos, createGroup west];
} forEach a;
Worked fine on everyone. Except that the init laged out on some of them. (They changed their hats when revealing them via right click). After that, no issues.
init laged out on some of them.
Isn't init supposed to happen on non-shed environments? Why would it lag? Maybe that's related
init laged out on some of them.
Isn't init supposed to happen on non-shed environments? Why would it lag? Maybe that's related
@jaynus, @commy2, @NouberNou
I was checking the public slack conversation about this, and @OnkelDisMaster mentioned it was a bit more reproducible for the player which had the slowest machine. This, plus the lag @commy2 observed, makes me think that we may be trying to run too many heavy init XEH on mission start, and maybe at some point CBA or Arma is giving up and some classes fail to be initialized. I can think of a few workarounds:
- Instead of compiling a separate interact menu for each CAManBase subclass just assume all CAMabBase children share the same actions (which is 99.999% true)
- On the init XEH during mission start, just collect all the classes that need menus and initialize them gradually on a pfh during the first few seconds instead of trying to do it all at the same time
- A bit more risky: make a workaround at runtime; if a player detects a nearby man without interact menu it should reinit it. It would break things if people manually removed all actions through API, but could work as a workaround.
Anyway, we may want to log init XEH on CBA and see if we can explain why the init XEH may be being dropped before it completes execution.
Unrelated to ACE, I've have observed a delay before init XEH executes during the startup of heavy missions. Is this by design on CBA? Is it the engine?
Instead of compiling a separate interact menu for each CAManBase subclass just assume all CAMabBase children share the same actions
Sure. Makes sense.
I have no idea how CBA does init. I know that the loadout scripts for civilians are spawn'ed.
Alright I got a bit further....removing the Modules: BFT, Respawn System and Rallypoint system semms to fix it temporaryly
Weird. I don't see any connection between these and the interaction menu.
Also with these modules we got lags every 2 seconds.....i already stated that bug. This is getting fixed by removing them either.
Please post the RPTs. It's impossible to say anything certain without them.