obsproject / obs-websocket

Remote-control of OBS Studio through WebSocket
GNU General Public License v2.0
3.8k stars 701 forks source link

Bug: Error 600 with only one scene. #1151

Closed RangerGH closed 9 months ago

RangerGH commented 1 year ago

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

29.0.x

OBS Studio Version (Other)

No response

obs-websocket Version

5.1.0

OBS Studio Log URL

https://obsproject.com/logs/OV9Hgeq8yRq21AXp

OBS Studio Crash Log URL

No response

Expected Behavior

If the /scene command is given a scene name and that is the only scene in the list there should be no error thrown but OK returned (or scene already selected).

Current Behavior

Error 600 thrown when the scene in the /scene command was the only scene in the Scenes list for that collection.

Steps to Reproduce

1. 2. 3. ... I am using OBS 29.1.3 and obscommand 1.6.3 and discovered an issue with the /scene command. I reported this to the obscommand author and was told to report it here.

  1. I have a profile selected say Profile A and then I select a scene collection and finally select a scene with the /scene="MyScene1" command and MyScene1 is the only scene in the Scenes list I get an error 600 of "No source was found by the name of MyScene1". Always get the error.

2However, if I add a second scene, say Scene 2 to the Scenes list and do /scene="MyScene1" it works without an error.

Anything else we should know?

No response

tt2468 commented 1 year ago

According to the log you posted, there's no scenes named MyScene1. Error code 600 is ResourceNotFound, so that sounds like it's working as intended.

RangerGH commented 1 year ago

Yes, I used MyScene1 as an example. The Scene collection was Elite Dangerous and the only Scene it had was Elite Client. When I added a second scene, Scene 2, the command worked as it should.

I believe I found the issue. I had not run the command to set the current scene collection Elite Dangerous so of course it couldn't find it! Part of my learning curve. For some reason I can do /scene=xxxx but to choose a Scene Collection I need to run a /command="SetCurrentSceneCollection,sceneCollectionName=yyyy" instead of an equivalent /scenecollection=.

Thanks.