Nintendo Switch Ignoring Inputs after First Button Press!!
2 posts
• Page 1 of 1
Nintendo Switch Ignoring Inputs after First Button Press!!
Hi there everyone. I saw that the Titan One received and update for the Nintendo Switch so I decided to give it a try.
I tried to make a basic script that just walks left and right over and over again while simulataneously pressing the 'A' button repeatedly.
I have it set up so that it runs the combo while I hold the R button as according to this tutorial thread here: viewtopic.php?f=18&t=5873#p43523
The problem is the game responds upon my pressing of the R button with the first button input in the combo. But then the game ignores all future inputs after that while the R button is held. This means anything else written in the combo as well as any buttons I press manually on the controller while holding the R button.
I didn't know if this was a glitch in the new Titan One firmware update, or if I made a mistake in my coding. Either way I figured posting for help might help shine light on a potential problem with the Switch update or at least fix a problem with my coding.
I can see in the Device Monitor that it is indeed pressing the buttons exactly how I want it to. But the game doesn't seem to recognize them.
Here's my script:
Anyone have any advice? If it helps I'm using the Pro Controller and yes I have the wired pro controller option enabled in system settings. I can play with it attached, it just seems scripts aren't working.
On a side note the PS4 controller plays games perfectly on the Switch!
I tried to make a basic script that just walks left and right over and over again while simulataneously pressing the 'A' button repeatedly.
I have it set up so that it runs the combo while I hold the R button as according to this tutorial thread here: viewtopic.php?f=18&t=5873#p43523
The problem is the game responds upon my pressing of the R button with the first button input in the combo. But then the game ignores all future inputs after that while the R button is held. This means anything else written in the combo as well as any buttons I press manually on the controller while holding the R button.
I didn't know if this was a glitch in the new Titan One firmware update, or if I made a mistake in my coding. Either way I figured posting for help might help shine light on a potential problem with the Switch update or at least fix a problem with my coding.
I can see in the Device Monitor that it is indeed pressing the buttons exactly how I want it to. But the game doesn't seem to recognize them.
Here's my script:
- Code: Select all
/* *
* GPC SCRIPT
*
* GPC is a scripting language with C-like syntax.
* To learn more access GPC Language Reference on Help menu.
* *********************************************************** */
main {
if(get_val(SWITCH_R)) {
combo_run(Mycombo);
}
}
combo Mycombo {
set_val(SWITCH_LEFT, 100);
wait(100);
set_val(SWITCH_A, 100);
wait(100);
set_val(SWITCH_LEFT, 100);
wait(100);
set_val(SWITCH_A, 0);
wait(100);
set_val(SWITCH_RIGHT, 100);
wait(100);
set_val(PS4_CIRCLE, 100);
wait(100);
set_val(SWITCH_RIGHT, 100);
wait(100);
set_val(SWITCH_A, 0);
wait(100);
}
Anyone have any advice? If it helps I'm using the Pro Controller and yes I have the wired pro controller option enabled in system settings. I can play with it attached, it just seems scripts aren't working.
On a side note the PS4 controller plays games perfectly on the Switch!
-
marklane - Private
- Posts: 1
- Joined: Tue Sep 18, 2018 2:30 pm
Re: Nintendo Switch Ignoring Inputs after First Button Press
Welcome to our forums.
I believe the game is not registering the inputs because R still pressed, the code below suppresses R while the combo is running, please check if it works.
I believe the game is not registering the inputs because R still pressed, the code below suppresses R while the combo is running, please check if it works.
- Code: Select all
main {
if(get_val(SWITCH_R)) {
combo_run(Mycombo);
set_val(SWITCH_R, 0);
}
}
combo Mycombo {
set_val(SWITCH_LEFT, 100);
wait(100);
set_val(SWITCH_A, 100);
wait(100);
set_val(SWITCH_LEFT, 100);
wait(100);
set_val(SWITCH_A, 0);
wait(100);
set_val(SWITCH_RIGHT, 100);
wait(100);
set_val(PS4_CIRCLE, 100);
wait(100);
set_val(SWITCH_RIGHT, 100);
wait(100);
set_val(SWITCH_A, 0);
wait(100);
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
2 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 51 guests