altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

streamSyncedMetaChange is called for unchanged initial data

Open xxshady opened this issue 2 years ago • 2 comments

Description of the problem

streamSyncedMetaChange is called for unchanged initial data of virtual entities

Reproduction steps

server

const p = alt.Player.all[0]
alt.Utils.assert(p)

const g = new alt.VirtualEntityGroup(1)
const e = new alt.VirtualEntity(g, p.pos, 10, {
    a: true
})

e.dimension = p.dimension

alt.setTimeout(() => {
    // this will trigger change event for 'a'
    e.setStreamSyncedMeta('b', 123)
}, 1000)

client

alt.on('worldObjectStreamIn', (obj) => {
    alt.log('stream in', obj, obj.getStreamSyncedMeta('a'))
})

alt.on('worldObjectStreamOut', (obj) => {
    alt.log('stream out', obj, obj.getStreamSyncedMeta('a'))
})

alt.on('streamSyncedMetaChange', (...args) => {
    alt.log('streamSyncedMetaChange', args)
})

изображение

Expected behaviour

/

Additional context

No response

Operating system

Windows 11

Version

15.0-dev588

Crashdump ID

No response

Reproduction tested

  • [X] I confirm that I have made sure that this issue is also present on the newest dev version

xxshady avatar Sep 01 '23 20:09 xxshady

Wont be fixed in v15. Its intended behavior for now until v17

FabianTerhorst avatar Sep 16 '23 13:09 FabianTerhorst

Reproduced with 16.0.0-dev.290 (dev)

litolax avatar Mar 05 '24 21:03 litolax