Count Down Adaptive Time with AUTO-RECORDING & Scene Switcher

OBS Lua Count Down Adaptive Time with AUTO-RECORDING & Scene Switcher 2021-06-26

Tormy

Member
SCOTT FETCHER (@Surge42 ) have made a great video, where you van see how to set up and use my COuntDown.
Not only he catched also my intention into programming. Yes, what he tells about the Recording: is exactly what I thought when I introduced that parameter.
THe "days" are ore for corporates users, since OBS is used also at Corporate level, they love to put in streaming 2-3 days (sometimes even more) in advance :-)

Great video Scott: "getsum" :-)
 

JEJ

Member
I get an issue that when the script ends and the new scene is 'called' it triggers the transition twice. The transition type I use is 'Stinger'. Any ideas how to solve this?
 

Tormy

Member
I get an issue that when the script ends and the new scene is 'called' it triggers the transition twice. The transition type I use is 'Stinger'. Any ideas how to solve this?
I called several scenes, but the issue you have, I couldn't replicate.
It loads the stinger, it does the transition, the new scene is there.
 

JEJ

Member
I called several scenes, but the issue you have, I couldn't replicate.
It loads the stinger, it does the transition, the new scene is there.
It works, no issues. The issue is it calls the stinger twice. I had this issue before and solved it but it was a while ago on a different timer/scene change scipt and now I can't remember how I fixed it then. Was hoping you had some ideas.
 

upandcumming

New Member
It works, no issues. The issue is it calls the stinger twice. I had this issue before and solved it but it was a while ago on a different timer/scene change scipt and now I can't remember how I fixed it then. Was hoping you had some ideas.
Just installed and tested this myself and I'm having the same issue. Shame!
 

Tormy

Member
Just installed and tested this myself and I'm having the same issue. Shame!
I tried it on 3 machines: All three Win 10 pro and OBS 27.0.1
Machine A: Ryzen 7, 64GB RAM all SSDs
Machine B: i3 4GB RAM and 1 SSD
Machine C: i5 2310 16GB RAM 2 HDD

The stinger is called only 1 time.

Hence: if I can't replicate the issue, I can't make any debug.

It's a shame to claim for a bug, and not to pust the conditions under which the bug i developed.
Can you please post here the settings you've made?

it will make more sense and it will help to identify where the glitch is coming from (if ever)
 

Tormy

Member
It works, no issues. The issue is it calls the stinger twice. I had this issue before and solved it but it was a while ago on a different timer/scene change scipt and now I can't remember how I fixed it then. Was hoping you had some ideas.
please post your settings here
 

Tormy

Member
I created a Resource page and already put into the download button. So that versioning is active. Of course not it starts from v2.1
 

JEJ

Member
please post your settings here

Sorry for delayed reply. The Bug for showing the tranbsition twice is resolved by removing the callback when the counter is at '0'

Lua:
            local source = obs.obs_get_source_by_name(next_scene)
            obs.obs_frontend_set_current_scene(source)
            obs.obs_source_release(source)
            
            -- Remove callback after scene change
            obs.remove_current_callback()
 

Tormy

Member
Sorry for delayed reply. The Bug for showing the tranbsition twice is resolved by removing the callback when the counter is at '0'

Lua:
            local source = obs.obs_get_source_by_name(next_scene)
            obs.obs_frontend_set_current_scene(source)
            obs.obs_source_release(source)
           
            -- Remove callback after scene change
            obs.remove_current_callback()
hi @JEJ probably it's something happens to you with some configuration because as you see from my screenshot, there is not any double call. And you didn't tell how you trigger the apparent bug. I did ask precisely.

However I will see removing that callback if any other issue is generated upfront any official update.
 

Tormy

Member
@JEJ Question: which code are you touching or talking about? The lines above, in the sequence you written, are not on the current release of the code :-/

the
obs.remove_current_callback()
is into the function timer_allback()

In conclusion: from what you are writing, I'm sure you are not using the latest code version. I close this case till the moment you will provide more complete infos.

About ISSUES: you should use GITHUB to highlight them if ever existing ones and related to last version of my code.
I tackle them up there, not in this forum. Why? It's not followed so much and people is not so responsive, and I can't follow the history.
on GitHub: it's made on purpose.

Link to GITHUB repository
 
Last edited:
Top