You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CopyPaste_GetLightmapQualityInSelection_Results should return a MwFastBuffer<CGameEditorPluginMap::EMapElemLightmapQuality> but returns something completely inconsistent like 1128792064, 100991744 or 1124102767 and this value seems to change depending on the number of blocks placed on the map etc...
the Lightmap Quality plugin has a commented code part that allows to display in the openplanet logs the return of each value of the MwFastBuffer
to do this, simply uncomment the code part, and select blocks in the editor with the copy and paste tool, with the plugin open
and this should not be a bug of the game, because it's in this same context that this function is used in a Maniascript editor plugin
don't hesitate if you need more precision
The text was updated successfully, but these errors were encountered:
In theory, you could get the actual value of the elements by doing something like uint32(arr[0]) & 0xFF, and the value of the second item by doing (uint32(arr[0]) & 0xFF00) >> 8.
Note that the Length property in this case doesn't have anything to do with the indexer in this case, but just to the amount of bytes. The size of returned items is always 4 bytes (eg. 4 items).
I don't recommend hacking around this though, there seems to be a high amount of requests for this over on the Angelscript forum (even though the thread was locked), so I'll open another thread with more interest, also linking to this issue.
CopyPaste_GetLightmapQualityInSelection_Results
should return aMwFastBuffer<CGameEditorPluginMap::EMapElemLightmapQuality>
but returns something completely inconsistent like 1128792064, 100991744 or 1124102767 and this value seems to change depending on the number of blocks placed on the map etc...the Lightmap Quality plugin has a commented code part that allows to display in the openplanet logs the return of each value of the MwFastBuffer
to do this, simply uncomment the code part, and select blocks in the editor with the copy and paste tool, with the plugin open
and this should not be a bug of the game, because it's in this same context that this function is used in a Maniascript editor plugin
don't hesitate if you need more precision
The text was updated successfully, but these errors were encountered: