Simple scene switcher

Krxz

Member
Hello everyone,

First of all I'd like to say great little plugin, it really helps a lot. However, I have encountered an issue regarding it, and League of Legends. Obviously this plugin was perfect for us LoL streamers since we have a Lobby client and a In-game client that we had to manually switch to.

The problem I have encountered seems to only happen to me when I have OBS opened with the plugin set to run on startup. (This does mean that I do not need to be streaming, or previewing my stream, just opening OBS is enough).

Every time OBS is turned off, I have no problems. If I disable the startup feature of the plugin, I have no problems.

Basically after my champion select, I get the usual LoL logo that appears before going into fullscreen, then a split second of black background,( I'm guessing this is when the plug in scans for the windows) it just disappears. I find myself having to close league of legends entirely, relog, and click on the "Reconnect" to game button. A few attempts needed before I actually get in-game.

Here is what I think is happening. When the last champion of the game is selected, the count down to the loading starts. When you are about to load, the Lobby client disappears, and a small Logo appears. At this precise moment I notice OBS switching scenes to my Game capture scene. The logo triggers the switch, but I am not really on the loading screen yet.
This causes me to see a black screen for a split second thinking i'm about to see the loading bars, but it disappears on me.

Do I have the plugin settings wrong?
I have a "Out of game" scene for the Lobby, and a "In game" scene for the game.
The plugin has 1 entry:
Window title to check for: League of Legends (TM) Client
Scene to switch to on window title: In game

Options
When no window title matches switch to: Out of game
- I decided that I did need to add a 2nd entry for the Lobby window and the out of game scene.

Match exact window name (is currently unchecked).

Any ideas?

EDIT: I just tried with OBS totally closed, just league of legends, and I got the same bug. I guess we can say it has nothing to do with OBS or this plugin
 

Dajova

Member
This has little to do with the plugin, since i suppose you're using Game Capture or Window Capture for the game itself?
When that happens, just switch scene briefly (back and forth) and it should come back up again. This happens because the game capture doesn't get any info from the game when it loads up, since the window hasn't been fully loaded yet. You can prevent this by inc the time between window checks (i think default is 250ms) to 5000ms or something (that's 5 sec).
 

Slowlyawesome

New Member
I'm having some problems with this. I tried extracting to the Plugins folder, with both the 32 and 64 bit versions, but neither will show up when I click "Plugins" in OBS.
 

ThoNohT

Developer
From my experience, I guess you are using the 64 bit version of OBS, and you probably tried placing both versions of the plugin in the 32 bit folder. Inside the 32 bit folder, there is a "64Bit" subfolder, go in there, then into plugins, and place the 64 bit plugin there.

Meanwhile, I started working on a universal plugin installer that should automatically do all this for people who want to install this (or any other that supports it) plugin, but it's still a while away before I finish that.
 

Lazdaa

New Member
Hey Guys! I recently wanted to stream again, but i've had some changed hardware and a new monitor setup so i had to go through all the settings again, not sure if i'm fully optimized yet.

But apart from that i can't get the Simple Scene Switcher to work. Whenever i enter the Game (League) nothing happens. It doesn't switch.

My Scene Switcher Configuration: http://gyazo.com/65221bfd62a184784e07e1b2c3da9cf6.png


Cheers!
 

ThoNohT

Developer
Those aren't the correct window titles you are using there. The titles need to match exactly (or be exactly a part of the string if you disable the "match exact window name option")

The launcher window title is something like: "PVP.net Client". The league of legends game title is something like: "League Of Legends (TM) Client".

Just open the launcher, and open that list on the top left to easily select the correct window title for the launcher. Then go ingame, and do the same for the window title of the game.


Also: Your launcher switch is slightly redundant. The "When no window title matches" will also switch to the launcher if you simply removed that rule. It's not incorrect though, it just doesn't add any functionality.
If you set it to "don't switch", it would be useful, then you would stay in the game scene when you alt tabbed out during a game for example, but go to the launcher scene when the launcher is active. With the current configuration it will go to the launcher scene whenever you get out of the game.
 

Lazdaa

New Member
ThoNohT said:
Those aren't the correct window titles you are using there. The titles need to match exactly (or be exactly a part of the string if you disable the "match exact window name option")

The launcher window title is something like: "pvp.NET client". The league of legends game title is something like: "League of Legends (tm)".

Just open the launcher, and open that list on the top left to easily select the correct window title for the launcher. Then go ingame, and do the same for the window title of the game.


Also: Your launcher switch is slightly redundant. The "When no window title matches" will also switch to the launcher if you simply removed that rule. It's not incorrect though, it just doesn't add any functionality.
If you set it to "don't switch", it would be useful, then you would stay in the game scene when you alt tabbed out during a game for example, but go to the launcher scene when the launcher is active. With the current configuration it will go to the launcher scene whenever you get out of the game.


Soo i pretty much did everything as you described and still nothing...

New Configuration: http://gyazo.com/e3ea789343ef91c797a9c5919478fa84.png
 

ThoNohT

Developer
Well, since you did enter the exact window names now, you can enable this checkbox "match exact window name". That was more of a side note. But that should not be the problem, it's just a sidenote now too.

Your configuration does look correct. I can't say what else is not working. You could try to hop on the chat sometime, maybe me or someone else if I'm not around can take a closer look at it.
 

Sw1tch

New Member
Hey Chris, I'd like to start saying this is an awesome plugin! Being a League of Legends streamer I've been looking for something like this. Though I have one complaint and maybe you guys know a work around for this problem so what's happening is I have 3 overlay's for my stream. I have my desktop overlay which is my desktop shrunken with my contact info, webcam, twitch chat on the sides. Then I have my Champion Select overlay which is the PVP.Net program, and I have my In game overlay which when League of Legends (TM) Client is launched pops up. Now the problem is when I'm transitioning from Champion Select to In Game I use my Desktop overlay so that players can see the loading screen without my ingame overlay being in the way. The problem is the Loading screen and the Ingame uses the same target. Any ideas?
 

chris84

New Member
Hey thanks, though ThoNonT has been doing most of the work lately, so thank him too !
As for your problem, if I understood correctly, well if the window doesn't use a different title for the loading screen, you will have to do that manually with a shortcut or something for now.
 

ThoNohT

Developer
Well, that won't work. Even with a hotkey, if you switch scenes, scene switcher will automatically switch back to the game scene. You might use the hotkey to disable scene switcher before going ingame, and then press the same hotkey again once you want it to switch. This allows you to temporarily turn scene switcher off, and thereby delay the switching.

If you also want to switch to another scene while this happens, you might need to do the following:
press the hotkey toggle scene switcher off.
press the hotkey to go to the other scene.
wait for the game to load.
press the hotkey to toggle scene switcher on.
 

Sw1tch

New Member
That's what I thought. Saddly using hotkeys defeats the purpose of the auto scene changer. If I have to use a hotkey I might as well use the other hotkeys. Hopefully a feature will be integrated in the future to make it 100% automatic.
 

ThoNohT

Developer
Yea, you are right that if you need to use hotkeys in combination with scene switcher, it might as well be all hotkeys. But sadly I have to tell you that that feature won't be integrated, as there is no way to detect where the game is. Only if LoL decides to change the window title for the loading screen will scene switcher ever be able to detect a difference between the loading screen and the game.
 

Lazdaa

New Member
So i've tried different things with no luck, but to follow up to my issue: The automatic scene switching works when i leave Leauge, but not when i go from launcher into the game.

Could this give some more insight in my problem?
 

ThoNohT

Developer
That's strange. If it never switches into the game, that means it will try to keep going out of the game scene. So there is no real switching back. The reason behind that would be that it doesn't find the League of Legends window title.

I'll be online tonight, so if you could hop on the livechat (red icon on top of this page) I might be able to help you out further.
 

Lazdaa

New Member
ThoNohT said:
That's strange. If it never switches into the game, that means it will try to keep going out of the game scene. So there is no real switching back. The reason behind that would be that it doesn't find the League of Legends window title.

I'll be online tonight, so if you could hop on the livechat (red icon on top of this page) I might be able to help you out further.

Uhm When is tonight? :P I'm from eurpoe so we prolly got different timezones
 

ThoNohT

Developer
I was off , sleeping. Just try hopping in chat every now and then, people there are very nice. They can tell you if I'm around, and they might try and help you themselves too if I'm not. I just meant, I'm usually online in european evenings.
 
Top