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

[Bug]: mouse clicks not working when hovering over mod GUI (edited title) #292

Open
Luna5829 opened this issue Jan 27, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@Luna5829
Copy link

What happened?

in the level select menu screen of the game Strata, mouse keys just aren't deterministic for some reason

bug.thing.mp4

What should have happened?

it should be fully deterministic if the same inputs are played twice but it ain't

UniTAS version

Latest main

BepInEx version

v5.4.x

Game name

Strata

Game build

Windows x64 - Mono

How to reproduce

MOVIE_CONFIG = {
    fps = 60
}

frame_advance = movie.frame_advance
press = key.hold
release = key.release

function Jump(Time)
    press("Space")
    frame_advance(Time)
    release("Space")
end

Jump()
frame_advance(41)
mouse.move(960, 840)
mouse.left()
frame_advance()
mouse.left(false)
frame_advance(17)

-- it'll sometimes load up the second level and sometimes it just won't

Log output

No response

Additional context

No response

@Luna5829
Copy link
Author

i didn't notice this earlier as i was able to tas level 1 because it's automatically selected, so pressing space in the level select screen automatically loads up level 1, but there's no way to load up level 2 other than mouse click

@Eddio0141 Eddio0141 added the bug Something isn't working label Jan 27, 2024
@Luna5829
Copy link
Author

Luna5829 commented Mar 13, 2024

it seems I've figured it out
it works when my mouse is hovering over the game, and it doesn't work when my mouse is hovering over the "Movie Play" window
so it's not an issue of determinism just with mouse clicks

funnily enough I accidentally did that in the video which is pretty obvious looking back on it lol

@Luna5829 Luna5829 changed the title [Bug]: mouse clicks not being deterministic [Bug]: mouse clicks not working when hovering over mod GUI Mar 13, 2024
@Luna5829 Luna5829 changed the title [Bug]: mouse clicks not working when hovering over mod GUI [Bug]: mouse clicks not working when hovering over mod GUI (edited title) Mar 13, 2024
@Eddio0141
Copy link
Owner

Ohh right yeah
I didn't really think it was the menu
UniTAS overrides a few functions to do inputs but nothing related with GUI class (the debug menu thing I use for my menu)
The footage proves the game isn't using GUI and UniTAS can control it unless with the mouse over my menu
I think there's a similar issue in another game I tested where the game UI wasn't working again

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