Skip to content

Instantly share code, notes, and snippets.

@xPaw
Last active November 11, 2023 11:32
Show Gist options
  • Star 113 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save xPaw/056b29be7ae9c143ed623a9c4c10cf50 to your computer and use it in GitHub Desktop.
Save xPaw/056b29be7ae9c143ed623a9c4c10cf50 to your computer and use it in GitHub Desktop.
Counter-Strike 2 Text Mod
@xPaw
Copy link
Author

xPaw commented Oct 7, 2023

@Skaewlkr Use a good editor that can actually show you different characters, the hex codes are just a reference, and the character after it is the actual thing that modifies the color.

@Tiagoquix All you did was removed the leading whitespace in strings, which is needed for colors to work (due to a bug?)

I moved it to a git repository here: https://github.com/xPaw/CS2

@Tiagoquix
Copy link

Tiagoquix commented Oct 7, 2023

@xPaw

All you did was removed the leading whitespace in strings, which is needed for colors to work (due to a bug?)

AFAIK the whitespaces aren't necessary for the colors to work. They're just arbitrary spaces added by Valve.
And, no, that was not all I did. I did some other changes too, such as changing VIP strings and adding a dot to the defusing and planting strings. Please recheck the diff file.

Thanks for moving it to a git repository. To use notifications as I mentioned (for future changes), you should publish the textmod as a release rather than just doing commits to the file itself.

@xPaw
Copy link
Author

xPaw commented Oct 7, 2023

AFAIK the whitespaces aren't necessary for the colors to work.

They were necessary last time I tested it in CS2, with the joined team messages. VIP strings are gone anyway.

@Skaewlkr
Copy link

Skaewlkr commented Oct 7, 2023

@Skaewlkr Use a good editor that can actually show you different characters, the hex codes are just a reference, and the character after it is the actual thing that modifies the color.

@Tiagoquix All you did was removed the leading whitespace in strings, which is needed for colors to work (due to a bug?)

I moved it to a git repository here: https://github.com/xPaw/CS2

@xPaw Thanks for clarifying how it actually works. I now used another editor and I can finaly see the real characters.

Greetings

@robertobro
Copy link

265732228-98697baa-4137-4862-9539-0db1fdc9f15b
Fix? I tried putting -language english and -language textmod but unfortunately it didn't work, any other fix?

@jsimon18
Copy link

265732228-98697baa-4137-4862-9539-0db1fdc9f15b Fix? I tried putting -language english and -language textmod but unfortunately it didn't work, any other fix?

Are you on the latest version of the file? ( Save from here: https://github.com/xPaw/CS2 )

@robertobro
Copy link

265732228-98697baa-4137-4862-9539-0db1fdc9f15b Fix? I tried putting -language english and -language textmod but unfortunately it didn't work, any other fix?

Are you on the latest version of the file? ( Save from here: https://github.com/xPaw/CS2 )

Yeah, I downloaded it today and it doesn't work

@jeswastaken
Copy link

265732228-98697baa-4137-4862-9539-0db1fdc9f15b Fix? I tried putting -language english and -language textmod but unfortunately it didn't work, any other fix?

having the same problem

@pointydev
Copy link

pointydev commented Oct 28, 2023

@robertobro @jeswastaken Ensure you are putting the file inside /game/csgo/resource instead of /csgo/resource, with the same name in your launch options as in the name of the file (e.g. -language textmod for a filename of csgo_textmod.txt). Also make sure you're using the latest version of the textmod from the new repository, and that the filename hasn't had other text added to it (such as (1) for duplicate files).

All these instructions are available on the new repository.

@jeswastaken
Copy link

oh shit thanks, i was accidentally putting it in csgo/resource and not game/csgo/resource

@Blerkk
Copy link

Blerkk commented Nov 5, 2023

image
I am trying to modify some colors in chat, I want the DEAD in front of the players name in red to be exact, but this does not seem to work, it only displays the color of the team I am on. The rest works fine.
image

ps.: I am using the color of the HE's in front of DEAD.

@Blerkk
Copy link

Blerkk commented Nov 5, 2023

image I am trying to modify some colors in chat, I want the DEAD in front of the players name in red to be exact, but this does not seem to work, it only displays the color of the team I am on. The rest works fine. image

ps.: I am using the color of the HE's in front of DEAD.

Nvm, I am dumb, just read line 14, I need to add a space prefix.

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