Skip to content

Fix invisible TextBox text on Roblox 2.742+ - #246

Open
dmncic wants to merge 1 commit into
komaruworld:mainfrom
dmncic:fix-textbox-info-2742
Open

dmncic wants to merge 1 commit into
komaruworld:mainfrom
dmncic:fix-textbox-info-2742

Conversation

@dmncic

@dmncic dmncic commented Dec 3, 2026 •

Copy link
Copy Markdown

Fixes #136

Since Roblox 2.742, text typed into the chat box (and into other TextBoxes) doesn't show up intermittently, even though the input is registered.

Roblox 2.742 builds NativeTextBoxInfo with a new 19-argument constructor, (FFFFFZIIIIIIZZZFFFF)V, which adds four floats after editable. jnivm only recognised the older 14- and 15-argument versions. Because the new one wasn't matched, focused TextBoxes reported 0x0 geometry and the host text overlay had nothing to draw.

Fix:

  • src/jnivm/jnivm.cc: add the new constructor signature. The leading arguments keep the same layout, so the TextBox geometry and editable flag are now read correctly. The four new floats aren't used yet.
  • tests/jnivm_native_text_box_info_test.cc: add ExtendedConstructorPreservesGeometry, which checks that both the direct (NewObject) and array (NewObjectA) paths keep the geometry for the new signature.

Testing:
I tested this on my system (RTX 3070, driver 620.73.04) - chat input now shows up correctly in game, and text input renders correctly in the rest of the app too.

Roblox 2.742 constructs NativeTextBoxInfo with a new
(FFFFFZIIIIIIZZZFFFF)V constructor. jnivm only recognised the 14- and
15-argument forms, so focused TextBoxes reported 0x0 geometry and the
host text overlay drew nothing.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Chat input does not appear in the chat box

1 participant