Forum

i love conchars!

Discuss anything not covered by any of the other categories.

Moderator: InsideQC Admins

i love conchars!

Postby behind_you » Sat Feb 26, 2011 5:57 pm

hey! Im making a new conchars. Its double the total size of the original. When i put it in the gfx.wad it doesnt show correctly. What are all the things i have to edit to make it display correctly? I really want it to show correctly. And how can i make it so that it can be as a .lmp and not in the wad?
User avatar
behind_you
 
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Postby Spike » Sat Feb 26, 2011 6:06 pm

how to make conchars work correctly:
Make them 8*8 pixels for each char, for a total size of 128*128.

lmps are generally not supported for conchars, and even if the engine does support it, tga is better anyway.

Use a tga replacement image instead (or as well, perhaps) if you want to use an image which is not 8bit or not limited to 128*128.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby behind_you » Sat Feb 26, 2011 6:21 pm

thanks 4 replying. Im talking about a 256*256 conchars. I wnna know what to edit in terms of source code. I realise dat i posted this in wrong section. My bad
Last edited by behind_you on Sat Feb 26, 2011 9:58 pm, edited 1 time in total.
User avatar
behind_you
 
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Postby mh » Sat Feb 26, 2011 9:34 pm

The engine assumes that conchars are 128x128 and have no .lmp header, so you'll need to change engine code to get a different-sized conchars working. For GLQuake look in the Draw_Init function (in gl_draw.c).
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Postby behind_you » Sat Feb 26, 2011 9:57 pm

i am aware of this. What do i change in source code?
User avatar
behind_you
 
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Postby behind_you » Sat Feb 26, 2011 11:47 pm

ok figured out how to display them. Now, how do i adjust the spacing between letters?
User avatar
behind_you
 
Posts: 237
Joined: Sat Feb 05, 2011 6:57 am
Location: Tripoli, Libya

Postby JasonX » Thu May 05, 2011 9:20 pm

Same question here. :D
JasonX
 
Posts: 411
Joined: Tue Apr 21, 2009 2:08 pm

Postby frag.machine » Thu May 05, 2011 11:43 pm

Quake conchars are monospaced and have no empty pixels between 2 chars. Remember, the game was designed to run at 320 x200.
That said I remember Tei doing some experiments with variable width conchars (using a lookup table IIRC).
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm

Postby mh » Fri May 06, 2011 12:05 am

Look at the Draw_Character function, but beware that every other function that calls it assumes a spacing of 8.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Postby Baker » Fri May 06, 2011 5:21 pm

JoeQuake/FuhQuake/ezQuake/Qrack engines (very similar codebase in many ways, with FuhQuake being the origin and the others being the forks) have a loadcharset command.

Hence, those engines have a wide variety of character sets available.

One example: http://www.moondrunk.se/gfx_charsets.php

Anyway, if you want to load non-128x128 charsets, look to the JoeQuake source code.

You have 2 choices on how to handle it:

1. Change the engine to use, say, 512 x 512 for .lmp loading and alter all graphics functions drawing characters to use 32x32 for the character size instead of 8x8.

2. Probably easier, add a "layer" on top where a replacement element is accepted and draw that instead if found. (This is what JoeQuake and similar engines do).

By the way ... WARNING ... you guys are thinking this is "easy" but think about how many different things get changed all over the place especially if you do option #1, you'll have drawing changes everywhere from things like the console display to center printing to the status bar and the notify text and on and on ... plus depending on how you do it, it will change the number of rows and columns that can be displayed. And if you are modifying an engine, like a PSP one, there are several factor that will make this a major headache (doubly so on the PSP, due to screen size of 480 x 272).

With DarkPlaces, you can put a c:\(your Quake folder)\id1\gfx\conchars.tga replacement element of any size (like those ones on MoonDrunk's page.)
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest