Page MenuHomeFeedback Tracker

Damage on static objects doesn't transfer to JIP players
Feedback, WishlistPublic

Description

When you damage pre-placed objects (on Altis in my scenario) on the server, first player who joins can see it. But JIP players, who join later on, can't see the damage.
According to the wiki (http://community.bistudio.com/wiki/setDamage) setDamage is Global, so shouldn't existing damage be shown to the JIP players?

Details

Legacy ID
3813651254
Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
Multiplayer
Steps To Reproduce
  • Use attached mission in dedicated server.
  • Join server, after 1 minute (because of expensive nearestObjects script) you should see the damage appear.
  • Disconnect from server
  • Reconnect
  • See that damage is no longer there.

Event Timeline

gdscei edited Steps To Reproduce. (Show Details)Jan 12 2014, 4:30 AM
gdscei edited Additional Information. (Show Details)
gdscei set Category to Multiplayer.
gdscei set Reproducibility to Always.
gdscei set Severity to None.
gdscei set Resolution to Open.
gdscei set Legacy ID to 3813651254.May 7 2016, 5:44 PM
gdscei edited a custom field.

If you're able to supply a test mission, it would expedite problem resolution!

gdscei added a subscriber: gdscei.May 7 2016, 5:44 PM

I have attached an example mission, and provided info again in the 'Steps To Reproduce" section.

Great, thanks!

It is not limited to houses. Trees destroyed with scripts (setDamage) are also not synced for JIP. There is a ticket somewhere for this, can't find it.

@Killzone_Kid, my guess it's all static objects.

@gdscei well if you mow trees with a tank they do stay down for JIP, was the same in A2. I guess the scripted damage is not added to JIP array.

Any update on this? Could this be picked up while fixes are being placed for JIP-related behaviour on static objects anyways? (the issue where damage is multiplied if JIP players are on the server) I've tried in the dev-branch if this issue is fixed with these recent changes, but it doesn't seem like it.

Thanks!

On the video: http://www.youtube.com/watch?v=g3ZLTI6WX1E

  1. Host applies setDamage 1 to everything around (both models and objects with classes)
  2. Client observes that everything destroys
  3. Client goes to lobby and joins again
  4. Client observes that everything is untouched
Iceman added a comment.Apr 2 2014, 1:25 PM

Thank you guys for your effort. However, we were unable to reproduce the problem.
Could you please provide us with simple two-player repro mission for Stratis? It would help us in a great way.

Thank you!

I have attached a new mission (JIPDamageTest.Stratis) which should make repro easier. The buildings should immediately look damaged.

I also added screenshots of before and after reconnect.

Additional notes on repro:

  • Please use dedicated server, not in-game LAN server
  • When you disconnect, make sure you disconnect completely, not lobby.
  • I have just tested this on DEV branch of today, and this problem still occurs.

Please use dedicated server, not in-game LAN server

Shoudln't matter, works in any kind of multiplayer game for me

When you disconnect, make sure you disconnect completely, not lobby.

Leaving to lobby was enough for us

BIS_Iceman, if repro is still needed, let me know.

Did repro anyway: setdamagejip_repro.Stratis

Steps:

  1. Start with 2 players
  2. Player 1 (Host) activates "setDamage 1 everything around you" action
  3. Both players observe that everything got destroyed
  4. Player 2 (Client) goes back to lobby
  5. Player 2 (Client) joins back into the game
  6. Player 2 (Client) observes that everything is untouched while Player 1 (Server) sees everything destroyed

yep I also did the repro and it worked

Thank you guys, the repro mission worked, will look into it.

gdscei added a comment.Apr 3 2014, 7:17 PM

No problem, I hope this is easily fixable.

m1nd0 added a subscriber: m1nd0.May 7 2016, 5:44 PM
m1nd0 added a comment.Jan 21 2015, 7:49 PM

Any updates on this? I'm unable to start with a town with randomly leveled buildings because of this.

I suppose I could make a workaround by sending a building array to each client but including JIP but that could kill a player if he spawns near a building due to JIP....

BIS_fnc_KK updated the task description. (Show Details)
BIS_fnc_KK edited Steps To Reproduce. (Show Details)
BIS_fnc_KK edited Additional Information. (Show Details)
BIS_fnc_KK set Operating System to Windows 7.
BIS_fnc_KK added a subscriber: Iceman.

Might be related T172490

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Nov 10 2023, 8:48 PM
BIS_fnc_KK changed the task status from Assigned to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.

tested with setdamagejip_repro.Stratis, the mission is so old it had to be converted. Everything works on my end.