Skip to content

Fix OBS 32+ API compatibility (replace deprecated sceneitem functions)#92

Open
luangaldinodev wants to merge 2 commits intoBlankSourceCode:mainfrom
luangaldinodev:fix-obs32-api
Open

Fix OBS 32+ API compatibility (replace deprecated sceneitem functions)#92
luangaldinodev wants to merge 2 commits intoBlankSourceCode:mainfrom
luangaldinodev:fix-obs32-api

Conversation

@luangaldinodev
Copy link

This PR updates the script to ensure compatibility with OBS Studio 32+.

In OBS 32, the functions:

  • obs_sceneitem_get_info
  • obs_sceneitem_set_info

were replaced by:

  • obs_sceneitem_get_info2
  • obs_sceneitem_set_info2

The previous function calls result in a runtime error:
"attempt to call field 'obs_sceneitem_get_info' (a nil value)"

This change replaces the deprecated calls with the updated API equivalents.

Tested on:

  • OBS Studio 32.0.4 (64-bit)
  • Windows 10

The script works as expected after the update.

Please let me know if you would prefer a backward-compatible approach
to support both older and newer OBS versions.

@Stephenzero
Copy link

can you please fork a new version of it?

@luangaldinodev
Copy link
Author

can you please fork a new version of it?

Hi @Stephenzero, 🇺🇸

Thanks for the suggestion.

Since the original repository appears to be inactive for a few years and still limited to older OBS versions, I’ll go ahead and maintain a fork with OBS 32+ compatibility.

I’ll merge the fix into the main branch of my fork and create a proper release so it can be used right away.

If the original maintainer becomes active again in the future, I’m totally open to collaborating or syncing the changes.

Thanks again for the idea.


Fala @Stephenzero, 🇧🇷

Obrigado pela sugestão.

Como o repositório original aparenta estar inativo há alguns anos e ainda limitado a versões antigas do OBS, vou manter um fork com compatibilidade para OBS 32+.

Vou fazer o merge da correção na main do meu fork e criar uma release para que já possa ser utilizado.

Se o maintainer original voltar a ficar ativo no futuro, fico totalmente aberto a colaborar ou sincronizar as alterações.

Valeu pela ideia.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants