feat: Add the current world name/id to screenshots captured in-game #1139

Closed
opened 2026-04-05 16:53:13 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @GroovyTeacup on 2/13/2023

I'm unsure if this is desired functionality in VRCX, but I found myself wanting a way to know what worlds I took pictures in some amount of time after the fact. I had made a small helper script to do this for me, but it was janky and was yet another always-on program I'd have open when VRChat was running. For me, VRCX was a perfect stand-in since I use it constantly anyway.

This is kind of meant to restore some functionality that I liked from this old mod

This PR adds a couple main things:

  • A new logwatcher type 'screenshot'
  • When a screenshot log is is recorded on the JS-side, the current world name and ID is retrieved and sent to the helper function on .NET
  • Outside of JS, there's the helper function responsible for changing the name of file (if enabled by the user) and sending the data over to the Screenshot helper, which is responsible for creating the text chunk according to the PNG specification.
  • There are 2 new switches added under the "Screenshot Helper" section under advanced settings. One toggles all functionality related to the helper, and the other is specifically meant for if a user doesn't want to worry about reading PNG file metadata and wants the world IDs appended to the filename.
  • It also includes a fix for CefSharp not loading index.html if the path leading to it contains special character.

I've added translations for the text strings, but they are entirely translated by DeepL and the chinese strings are simplified chinese.

*Originally created by @GroovyTeacup on 2/13/2023* I'm unsure if this is desired functionality in VRCX, but I found myself wanting a way to know what worlds I took pictures in some amount of time after the fact. I had made a small helper script to do this for me, but it was janky and was yet another always-on program I'd have open when VRChat was running. For me, VRCX was a perfect stand-in since I use it constantly anyway. This is kind of meant to restore some functionality that I liked from [this old mod](https://github.com/DragonPlayerX/ScreenshotManager) This PR adds a couple main things: - A new logwatcher type 'screenshot' - When a screenshot log is is recorded on the JS-side, the current world name and ID is retrieved and sent to the helper function on .NET - Outside of JS, there's the helper function responsible for changing the name of file (if enabled by the user) and sending the data over to the Screenshot helper, which is responsible for creating the text chunk according to the PNG specification. - There are 2 new switches added under the "Screenshot Helper" section under advanced settings. One toggles all functionality related to the helper, and the other is specifically meant for if a user doesn't want to worry about reading PNG file metadata and wants the world IDs appended to the filename. - It also includes a fix for CefSharp not loading index.html if the path leading to it contains special character. I've added translations for the text strings, but they are entirely translated by DeepL and the chinese strings are simplified chinese.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/VRCX#1139