game_text entity broken
game_text entity is now broken in singleplayer. 2 game_text entities with different channels are no longer displayed properly at the same time. In-game, sometimes one game_text entity's text is displayed, sometimes none at all. Sometimes when text is displayed, text that's supposed to trigger right after is not displayed. The issue is that only one game_text entity can display its text. 2 game_text entities cannot display their text properly at the same time.
Steps to reproduce:
- Create/edit a map in hammer editor and add game_text entities.
- Trigger 2 game_text entities to display text at the same time with different channels. In-game (singleplayer), sometimes only one of the entities' text will be displayed, sometimes it won't.
- Trigger another game_text entity immediately after the first ones are triggered. In-game, sometimes it won't appear at all.
Fix suggestion: Allow multiple game_text text to be displayed at the same time (the way it used to work before).
I cannot confirm any issues. Appears to work perfectly fine in my testing:
https://github.com/user-attachments/assets/5d3491eb-02a9-4a17-9bc3-fef6491a1da0
It works fine for me when launching the map in multiplayer, but not in singleplayer. Using windows 10 if that makes a difference.
Screenshot 1 in multiplayer. Screenshot 2 same map in singleplayer.
Can you link a map that reproduces the issue?
Map from the screenshot.
https://mega.nz/file/lMITnRQZ#SwUxVuxwrJpu20ryT0YXcgnDIcxxDfe3MsnEFAl5S58
Still works for me?
https://github.com/user-attachments/assets/4a1b6211-cc77-4ac5-8808-e045b4e16fc1
I tried both dev beta and x86-64, singleplayer, Windows 10, I tried gmod_admin_cleanup a bunch of times, still works every time.
Have you tried disabling all addons you have installed and trying again?
If you type in developer 2 into your console before triggering the text, what is in your console?
It should be similar to this:
(17.68) output: (trigger_once,) -> (textmessage2,Display,4.0)()
(17.68) output: (trigger_once,) -> (textmessage2,Display)()
(17.68) output: (trigger_once,) -> (textmessage1,Display,4.0)()
(17.68) output: (trigger_once,) -> (textmessage1,Display)()
(17.68) input : textmessage2.Display()
(17.68) input : textmessage1.Display()
I disabled all addons and unmounted all games. Same lines appear in console, but for some reason the first entity's text still doesn't appear on screen.
Console: (39.45) output: (trigger_once,) -> (textmessage2,Display,4.0)() (39.45) output: (trigger_once,) -> (textmessage2,Display)() (39.45) output: (trigger_once,) -> (textmessage1,Display,4.0)() (39.45) output: (trigger_once,) -> (textmessage1,Display)() (39.45) input : textmessage2.Display() (39.45) input : textmessage1.Display()
Run debug_dump in your console and send me the associated file.
I don't see anything that could cause the issue there.
I have added some debugging output to x86-64 beta regarding this entity.
Enter developer 1 into your console, and trigger the text again. and then send here the console log.
So the network message is received, but it never draws, I wonder why that could possibly be..
What if you delete (or back up/move) your bin/ and garrysmod/bin/ folders and verify your game files through Steam? This will make sure you have the latest version of the game files.
I am seeing another weird message in your console that should not be there.
There's only one "bin" folder. I deleted it and verified game files, still nothing. Both screenshots after files were verified.
I reinstalled the game and the error is still there.
It draws text without issues in multiplayer, but it still won't work in singleplayer.
Multiplayer screenshot:
game_text entity is now broken in singleplayer. 2 game_text entities with different channels are no longer displayed properly at the same time. In-game, sometimes one game_text entity's text is displayed, sometimes none at all. Sometimes when text is displayed, text that's supposed to trigger right after is not displayed. The issue is that only one game_text entity can display its text. 2 game_text entities cannot display their text properly at the same time.
Steps to reproduce:
- Create/edit a map in hammer editor and add game_text entities.
- Trigger 2 game_text entities to display text at the same time with different channels. In-game (singleplayer), sometimes only one of the entities' text will be displayed, sometimes it won't.
- Trigger another game_text entity immediately after the first ones are triggered. In-game, sometimes it won't appear at all.
Fix suggestion: Allow multiple game_text text to be displayed at the same time (the way it used to work before).
Does the issue still persist on your end?