Page MenuHomeFeedback Tracker

init isn't call player side when an agent is created locally to a dedicated server
New, NormalPublic

Description

Custom init EH isn't call player side when an agent is created locally to a dedicated server.

This break CBA function. This is not limited to animals.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Dedicated Server
Steps To Reproduce

Add to description.ext:

class Extended_InitPost_EventHandlers {
    class Animal {
        class btc_actions {
            init = "systemChat str _this;";
        };
    };
};

Code to execute in debug consol:

t = createAgent ["Goat_random_F", getPos (allplayers # 0), [], 0, "CAN_COLLIDE"];

Exec player side: systemChat show a message.
Exec server side: systemChat don't show a message.

Additional Information
private _group = createGroup [civilian, true]; 
t = _group createUnit ["Goat_random_F", getPos (allplayers # 0), [], 0, "CAN_COLLIDE"];

Exec player side: systemChat show a message.
Exec server side: systemChat show a message.

Resolving this issue might resolve those: https://feedback.bistudio.com/T155860 https://feedback.bistudio.com/T155634

Event Timeline

Vdauphin created this task.Dec 30 2020, 4:29 PM
Vdauphin edited Steps To Reproduce. (Show Details)
Vdauphin edited Additional Information. (Show Details)Dec 30 2020, 4:33 PM
dedmen added a subscriber: dedmen.Dec 30 2020, 8:58 PM

For any agent right? No matter if animal or unit?

For any agent right? No matter if animal or unit?

I didn't test every units but the "B_officer_F" doesn't work either.

I don't know but veteran29 said this in ace3 slack:

can you try modifying the goat_random_f class to add custom init EH to it and test if it works? Maybe these are broken on Dedicated :bleach:
There's even a FT ticket from you: https://feedback.bistudio.com/T155860
Looking at this behaviour I assume that init does not work on dedicated server for agents.
Or animals.