Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to call script_properties #2

Closed
danielpassos opened this issue Jan 1, 2023 · 8 comments
Closed

Failed to call script_properties #2

danielpassos opened this issue Jan 1, 2023 · 8 comments

Comments

@danielpassos
Copy link

I'm getting this error when I install the script

Mac OS: 13.1 (22C65)
Chip: Apple M1 Pro
OBS Version: 27.2.4 (64 Bits)

[spotify.lua] script_update
[spotify.lua] Failed to call script_properties for obs_lua_script_get_properties: spotify.lua:116: Error in obs_properties_add_text (arg 4), expected 'enum obs_text_type' got 'nil'
[spotify.lua] Failed to call script_properties for obs_lua_script_get_properties: spotify.lua:116: Error in obs_properties_add_text (arg 4), expected 'enum obs_text_type' got 'nil'

CleanShot 2023-01-01 at 12 30 25@2x

@RayPS
Copy link
Owner

RayPS commented Jan 1, 2023

Your OBS version is a little bit older, can you try upgrading your OBS to v28?

@danielpassos
Copy link
Author

Gotcha! I will give it a try on OBS 28 but unfortunately I can't upgrade yet because some others plugins that I use (and need) don't support it yet. Thanks for the quick reply anyway!

@danielpassos
Copy link
Author

danielpassos commented Jan 1, 2023

Just wondering if that is not a good idea to provides a minimum OBS version requirement on the README

@RayPS
Copy link
Owner

RayPS commented Jan 1, 2023

There is a workaround for you, you can just remove this line of code:

obs.obs_properties_add_text(props, "info_text_artwork", "Artwork Image (640×640):", obs.OBS_TEXT_INFO)

then it will work on OBS v27.

What this line do just add a text label above the option. (Which is a new text format introduced in V28)
Without this line you are only missing a text label on the GUI which is fine and won't affect any functionality.
Screenshot 2022-11-24 at 14 41 39@2x

@RayPS
Copy link
Owner

RayPS commented Jan 1, 2023

Let me know if that works and I will add this issue to the README as a reminder for OBS v27 users.

@danielpassos
Copy link
Author

It works like a charm. Thanks!

@danielpassos
Copy link
Author

PS: You should also add a way to people donate, like Buy me a coffee or something like that.

@RayPS
Copy link
Owner

RayPS commented Jan 1, 2023

Thank you! I will also add paypal.me/rayps to the README.

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

No branches or pull requests

2 participants