ReflectionMetadata missing from RobloxPlayer build

The RobloxPlayer (or rather, RobloxPlayerBeta) executable has a --API option, which dumps the current Lua API for that build. It depends on the presence of the “ReflectionMetadata.xml” file in order to complete successfully.

However, at some point, the ReflectionMetadata file was removed from RobloxPlayer builds, leaving the API dump option in a semi-useless state. It can still be used by copying the ReflectionMetadata file from RobloxStudio builds, where it is still present. But this is more of a workaround, rather than a solution. The proper solution would be to add ReflectionMetadata back in. An alternative (or bonus) solution could be to add the API dump option to the studio executable. This would be convenient, since the studio’s API has a few differences from the player.

I did some snooping in builds of previous versions that I’ve saved, and found that 3 files were removed at some point:
[ul]
[li]RobloxPlayer.exe[/li]
[li]ReflectionMetadata.xml[/li]
[li]copyrights.txt[/li]
[/ul]
The last version (that I have) where these files exist is 0.119.0.37583 (version-759151294bb84441). In the next version that I have after that, these files are not present. This version is 0.121.0.37958 (version-19c5d0ac8e9b47c4).

From this information, I suspect that the ReflectionMetadata and copyrights files were inadvertently removed when the RobloxPlayer executable was taken out of the build (having been replaced with RobloxPlayerBeta).

1 Like