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
@m0ks
Copy link

m0ks commented Mar 26, 2021

thx

@Tak1za
Copy link

Tak1za commented Sep 4, 2023

Thanks!

@NailNilo
Copy link

NailNilo commented Sep 4, 2023

Thank you!

@H3xa90N
Copy link

H3xa90N commented Sep 5, 2023

thx!

@13x1
Copy link

13x1 commented Sep 5, 2023

thx!

@lapshad
Copy link

lapshad commented Sep 5, 2023

image
how to fix it?

@13x1
Copy link

13x1 commented Sep 5, 2023

@lapshad wrote:

how to fix it?

i saw something over on twitter that it has to be installed in another directory: https://twitter.com/poggu__/status/1698726872723464616

@lapshad
Copy link

lapshad commented Sep 5, 2023

@13x1 I fixed it by first writing -language english then -language textmod in the console, it worked.

@Legitti
Copy link

Legitti commented Sep 14, 2023

Thanks!

@Skaewlkr
Copy link

Skaewlkr commented Sep 28, 2023

Big thanks, this is great!

I have some questions regarding the coloring of some of the radio messages like "Smoke" or "Grenade".
How excatly can I change the color of these? I looked at the textmod from bananagaming and saw that they used color hex values in front of the messages to change the respective color and I don't understand how this works in this release.

The colors of some messages changed cerntainly as I can tell, but I don't get how it works and how I can change it by myself. Does it maybe have something to do with these sepcial characters � ? What do they exactly do to the code?

Would be really nice if someone knows and could tell how to change the colors...

Greetings

@Mrnobooody
Copy link

I cant it to work dosnt matter where i put the file and what else i do.

@AzizKerim
Copy link

@Skaewlkr in the bottom of text file, you'll see lines starting with "//" includes all formatting. Those lines are supposed to be an instructor. Check it out, it's easy, you'll find it! 👍

@Skaewlkr
Copy link

Skaewlkr commented Oct 1, 2023

@Skaewlkr in the bottom of text file, you'll see lines starting with "//" includes all formatting. Those lines are supposed to be an instructor. Check it out, it's easy, you'll find it! 👍

Thanks for the reply @AzizKerim. I saw them in the beginning but I couldn't figure out how xPaw managed to color some of the messages without using the listed hex color values. For exmaple:

Line 28 "SFUI_TitlesTXT_Fire_in_the_hole" "�• Grenade"

This message appears ingame written in red but there is none of the hex values listed at the end that is connected to that line. The only thing i can see which could be somehow connected is that special character "�" that appears if you copy the line. To my logic, this hex value (// C07 #ff4040 � - Penalty, Light red) should be written in front of "• Grenade" to color the message in red.

So am I supposed to do it like in the old bananagaming release and just add the hex values in front of the message? How did xPaw manage to color the messages without using the hex values?

Greetings

@MrMeidi
Copy link

MrMeidi commented Oct 3, 2023

Great edit of the classic textmod, thank you for updating it for CS2. Near essential.
But I do have one small nitpick about default configuration: team chat signs ( (T), (CT) ) being coloured with C08, the same colour as [Dead] sign. To me it just felt a bit confusing during gameplay due to text blending together. C05 fits much better and improves readability, in my opinion.

@x06designs
Copy link

Is there an easy way to adapt these changes to the German translation? I love the simplicity, but I got used to the German version.

@Tiagoquix
Copy link

Hello, @xPaw! Thank your for this modification.

Here are some suggested changes of mine for it (it includes the modified .txt file and a .html DIFF file): https://send.vis.ee/download/d1248cc60c93cc13/#g-hEuYWYc9pBe41HYRgzsw

I also suggest creating a repository so that we can follow it and be notified when updates are made to the textmod instead of having to come here and check manually.

Thank you for your attention.

@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