Trying to prevent chat opening after intro
Avatar

When possible, I like binding chat buttons in games to Enter. Blame Terraria. This isn't a problem, except the skip heist intro button is hardcoded to Enter, and typically makes the chat open when the heist starts, even if I let go right after the skip circle fills. I could just have it auto-skip, but I've been playing with people who are new and haven't heard these lines a thousand times, I don't wanna rob them of that.

My first idea was to just rebind the skip intro button to the End key or something. But it seems to be more trouble than it's worth.

Nerd details

It seems like skipping is handled at line 276 of /lib/states/ingamewaitingforplayers.lua, and as best as I can understand this input system, it receives a generic "confirm" input to skip. From line 44 of /core/lib/managers/controller/corecontrollerwrapperpc.lua, it seems that confirm input is hardcoded to Enter. This is used across multiple points in the game, such as in menus where I would prefer to keep Enter in its place, and I definitely don't want to cause confusing issues with controller or VR input. I could have misunderstood this system, or be overlooking a workaround, but it seems like a dangerous beast to poke at. This doesn't really cause more problems but I do think it's funny: On line 42 of /lib/managers/hud/hudblackscreen.lua, they straight up check if you're using a "PC controller" and have a hardcoded "[ENTER]" string

So my next idea is just blocking the chat from opening at the start of the game. Until I move from spawn position, or until the fade-in has finished, or something like that which would clearly identify "I am trying to press enter after I have loaded in". I'm willing to maintain this myself (i'm probably the only person who would use it after all), but my head is spinning going through the decompiled Lua to figure out where to start. I know when I'm beat, so I'm putting it down for now and just asking here. If anyone has any ideas or pointers, I'll. i'll uh. i'll give you a very large thumbs up emoji and say thank you :D

SuperBLTInfo
Replies
17 937