Game chat

Locked
Whispere
Posts: 25
Joined: Sun Jan 17, 2010 5:22 pm

Game chat

Post by Whispere »

Hello,
I have small problems.
Where I can edit game chat?
I need define some background and make more bigger letters and change them colors.

Sorry for my english.
Thanks for your answers.
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Game chat

Post by ^misantropia^ »

You mean the console? The background is a shader with the unimaginative name 'console', you can just override it.

The fonts are a special case. They're 256x256 bitmaps (see menu/art/font*.tga in pak0.pk3 for examples) that are scaled in-game. Changing the font type and colour is straight forward: give your font bitmap the same name as the one it should override (e.g. menu/art/font2_prop.tga) and put it in a PK3 of your own. Changing the console font size is more involved; you need to hack the engine, client/cl_console.c to be precise.
Whispere
Posts: 25
Joined: Sun Jan 17, 2010 5:22 pm

Re: Game chat

Post by Whispere »

Image
This image is as example.
On the left is original and on the right is new theme, whitch I want.
I need add chat´s background and change letters color.
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Game chat

Post by ^misantropia^ »

Yeah, that requires an engine hack. The function you want is Con_DrawNotify() in client/cl_console.c.
Whispere
Posts: 25
Joined: Sun Jan 17, 2010 5:22 pm

Re: Game chat

Post by Whispere »

When I´m compiling I have a lots of errors.

Some errors:

Code: Select all

sdl_glimp.c
..\..\code\sdl\sdl_glimp.c(26) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory
sdl_gamma.c
..\..\code\sdl\sdl_gamma.c(26) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory
I need SDL pack, I download it, but I don´t know, where is my copy.
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Game chat

Post by ^misantropia^ »

Can't really help you there, I'm not a Windows developer. I suspect you need to point Visual Studio to the location of the SDL headers/libraries but you'll have to consult Google for the finicky details.
Whispere
Posts: 25
Joined: Sun Jan 17, 2010 5:22 pm

Re: Game chat

Post by Whispere »

^misantropia^ wrote:Can't really help you there, I'm not a Windows developer. I suspect you need to point Visual Studio to the location of the SDL headers/libraries but you'll have to consult Google for the finicky details.
Thanks, I find some needed libraries, but I can´t find libcurl.lib.
Where download I it?
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Game chat

Post by ^misantropia^ »

Locked