Forum

Colored Lightning

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Colored Lightning

Postby Eukos » Sat Jul 23, 2011 12:10 pm

Hello :)
first of all, thanks for all the articles, tutorials and posts here.
They helped me alot to understand internal Quake stuff.
I'm a QuakeC coder, but i also mess around with the engine code and fix some bugs.
Now after getting the Half-Life BSP format to work with fixed lightmaps (using the Basic Half-Life Map Support tutorial), i want to ask how to get the colored lightning to work in HLBSP. I know that there are external .lit files, but before implenting them and screwing up my engine code i want to ask here.

Also, when using setsize in a Half-Life map, the game crashes.
Obviously, it has something todo with the hulls.

Thanks in advance!

And no, I don't like regenerating health and I'm not working on a game which runs on the PSP.
User avatar
Eukos
 
Posts: 14
Joined: Fri Jul 22, 2011 3:00 pm
Location: /dev/cdrom

Postby mh » Sat Jul 23, 2011 2:23 pm

Have you run the engine under a debugger? Always useful to identify what part of the code you're crashing in, inspect the values of variables, check your call stack, and get a better overall idea of what might be causing a crash.

For the setsize call, there is an error condition in it (via SetMinMaxSize) which checks if any of the bounding box dimensions are inverted and throws an error if so. Is this the crash you're getting?

For coloured light (and .lit support) there are a number of old QuakeSrc.org tutorials available here: http://www.quake-1.com/docs/quakesrc.org/

These badly need to be modernised in some places, but they should give you a useful stepping off point.
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 Eukos » Sat Jul 23, 2011 3:17 pm

mh wrote:For the setsize call, there is an error condition in it (via SetMinMaxSize) which checks if any of the bounding box dimensions are inverted and throws an error if so. Is this the crash you're getting?

Well, i havn't got any Quake Error message, but this message:

Image

Clearly some type of "big coding mistake".
Happens everytime i change the size of my player. I'm trying to get crouching to work. I wanted to do that in Q1BSP before by using a modified Shambler hullsize.
User avatar
Eukos
 
Posts: 14
Joined: Fri Jul 22, 2011 3:00 pm
Location: /dev/cdrom

Postby mh » Sat Jul 23, 2011 11:20 pm

Try running in a debugger then. It's really absolutely necessary if you're doing any engine work.
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


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest