Page MenuHomeFeedback Tracker

hideObjectGlobal, hide-module and enableSimulationGlobal don't work on a dedicated server
Closed, ResolvedPublic

Description

When you use the hide-module or hideObjectGlobal in the init-field to hide a unit, it is still visible when playing on a dedicated server.

enableSimulationGlobal does work, though not from the very beginning of the mission, which may lead to unwanted side effects (please see Repro-steps). {F24142} {F24143} {F24144} {F24145}

Details

Legacy ID
2257168123
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Repro hideObjectGlobal:

-place a unit with "this hideObjectGlobal true" in the Init OR a hide-module and run the mission on a dedicated server: no effect. (it works via debug console though)

Repro enableSimulationGlobal:

-place an empty car with "this enableSimulation false" and another one with "this enableSimulationGlobal false" in their Init fields
-add "setdamage 1" and an altitude of 10
-run the mission on a dedicated server:

-> both cars will hover in the air, so the simulation in general is disabled, _but_ the car with the global-command will explode and burn (just like the command was entered a moment later) while the other one with "enableSimulation false" wont.

You can alternatively place a hidden flying helicopter with "enableSimulationGlobal false" in the Init, and the players will always hear the sound of the rotor.

Additional Information

-not working for SP before 124741 (ticket 0018689 + tested)

-fixed in 124741 for SP (according to DevBranch changelog)

-broken in 124746 (main branch) for SP and MP (tested)

-everything was working fine in 124861 (dev branch) for both SP and MP (tested)

-now in 125300 (main branch) it's still/ again not working for MP, while SP works fine (tested)

So is it just me, or does this command somehow hates the main branch?! :D

Event Timeline

Helio edited Steps To Reproduce. (Show Details)Jun 24 2014, 4:40 AM
Helio edited Additional Information. (Show Details)
Helio set Category to Scripting.
Helio set Reproducibility to Always.
Helio set Severity to None.
Helio set Resolution to Fixed.
Helio set Legacy ID to 2257168123.May 7 2016, 6:49 PM
Helio edited a custom field.

as a hack to get around the issues one can spawn a waituntil {time > 0} before executing the commands. OFC this is NO solution and will only compromise your own code, but there is no other solution until BIS fixes that (i didnt find any yet)

Iceman added a comment.Jul 1 2014, 9:34 AM

Hello,
thank you for reporting the ticket. I cannot reproduce the problem with hideObjectGlobal command, it works for me as it is supposed to. Could you please try it on current Steam Dev?
I can confirm that enableSimulationGlobal is not working as intended. The issue has been assigned.
Thank you, have a nice day.

Helio added a subscriber: Helio.May 7 2016, 6:49 PM
Helio added a comment.Jul 10 2014, 4:01 PM

Hello,

sorry I couldn't reply sooner!
I added my VR repro-mission + screenshots to demonstrate the current behavior for 1.22 (main) on listen and dedicated servers, and will add them for 1.24 / dev soon.

Repro-Mission Legend:

tanks: hideObject
hunters: enableSimulation

GREEN: no modifiers
BLUE: local command (+alt. syntax)
RED: global command (+alt. syntax)
PINK: hide-module

0-0-1 show / enable everything
0-0-2 show legend again

PS: It worked perfectly well on devbranch even before it was synchronized to 1.22 mainbranch (please see "Additional Information") for some very mysterious reason. :)
At the moment I cannot run nor have a dedicated server with dev/ RC, but will test it as soon as I can or the RC is released!

Hello,
it should be fixed in rev. 126007 and higher on Steam Dev. Only the hide module will take some more time.

Thank you.