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

Won't work with steam game #15

Open
kellentow opened this issue Jun 23, 2023 · 9 comments
Open

Won't work with steam game #15

kellentow opened this issue Jun 23, 2023 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@kellentow
Copy link

kellentow commented Jun 23, 2023

I run my .kas file and click on my game but it won't work

pltup.txt (Note: i changed it to .txt so it would upload)
I'm playing PlateUp! but it won't work

@KarstSkarn
Copy link
Owner

KarstSkarn commented Jun 23, 2023

The script seems to be perfectly ok (See comments below). If the issue is that the game isn't catching the inputs of the program I suggest to execute KasTAS as Admin Mode. In games like Genshin Impact, OSU... it isn't properly recognized unless is executed with Admin privileges.

If the issue is any other thing (Crashing etc) Tell me and I'll try to assist you in making it work ^^

@kellentow
Copy link
Author

I ran it with admin and it still won't work

@KarstSkarn
Copy link
Owner

As a simple test if you have spare time try to make it launch over a notepad to see if its writting something.

I noticed that you're attempting to use FP (Fast Push) with a given time. FP Is always a fixed time (50ms~ If I recall properly (It is stated somewhere in the documentation .pdf) That maybe is confusing the program enough to cancel the execution. I switched it to PB (Press Button) which actually allows to set a given time. And after that a RB (Release Button) (Otherwise the button would keep being pushed) Alternatively you can use RA (Release All) after each Press Button but this is a bit slower since it checks all buttons. The code would look like this:

HW 2000
PB ST 200
RB ST
PB DO 200
RB DO
PB ST 200
RB ST
DM
SM
PB LE 1000
RB LE
PB DO 3000
RB DO

Plus I noticed that despite the script code is correct and after searching for the game maybe you want this to repeat the action constantly? If that you only need to set a JM (Jump) Instruction at the end to Jump to the first line like this:

SM
HW 2000
PB ST 200
RB ST
PB DO 200
RB DO
PB ST 200
RB ST
DM
SM
PB LE 1000
RB LE
PB DO 3000
RB DO
JM 0

If you're using the 2.0.XXX Version and want to trigger the script remotely (Meanwhile you're playing and leaving KasTAS in the background) You can use the 2.0.XXX exclusive instruction WR (Wait for Remote) which by default is the key "L".

WR
SM
HW 2000
PB ST 200
RB ST
PB DO 200
RB DO
PB ST 200
RB ST
DM
SM
PB LE 1000
RB LE
PB DO 3000
RB DO
JM 0

I hope this did help!

@kellentow
Copy link
Author

I copied the .kas instruction but PlateUp! still won't accept the inputs

@KarstSkarn
Copy link
Owner

If the code isn't the fault then I'm afraid maybe that game is using some part of virtualization or is specially coded to listen exclusively to the USB inputs therefore ignoring the OS inputs which is with what KasTAS works :/ Its really uncommon I heard only about a couple of games doing this but its rare that the game doesn't accept your inputs :S

@kellentow
Copy link
Author

i'll do some research

@KarstSkarn
Copy link
Owner

Keep me updated!

@KarstSkarn KarstSkarn self-assigned this Jun 23, 2023
@KarstSkarn KarstSkarn added the bug Something isn't working label Jun 23, 2023
@kellentow
Copy link
Author

Unfortunately this isn't common knowledge so i would have to dive into the code to find out but idk how to/what to look for.

@kellentow
Copy link
Author

I could just emulate a computer then just run KasTAS on the real one but I don't want to do that for some macro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants