[Noob] Source code overview


(mdd4696) #1

Hello all,

I am relatively new to modding Enemy Territory, and I was hoping that I could find a few resources that would get me started understanding its source code.

First off, are there any resources or documentation online that you could refer me to explaining the structure of the source code? Potentially a map of sorts?

Is it possible to compile a fully working game from that code, or is there another component which is missing? The reason I am confused is that while looking through the code there doesn’t seem to be any real rendering functions. I am not familiar with how OpenGL or DirectX work, but shouldn’t there be code which renders the game? What about the physics engine?

Finally, I would like to get a general idea of how involved it is to understand and work with the source code. So far I have been frustrated by the lack of commenting. I have a good understanding of programming, and at first glance it seems that once I understand the structure of the code, I should be able to change it relatively easily. Comments or suggestions?

In the meantime, I suppose I will just continue familiarizing myself with the files… thanks!

~mdd4696


(carnage) #2

ET is built on quake three, so basicly that is the code that customizes it for ET but the phisics and asthetics are quake three.

that does not come with the game or ppl would just nick it

but aprently q3 is going to become open source but a games company bought it and so they decided to delay the open source realse as a sighn of good will


(fretn) #3

it is possible to build a full working game with the released code
the renderstuff etc thats in the engine, the code that’s released is the gamecode (the 3 dll’s)

the best way to learn the code is by fixing bugs, it may sound silly and boring but to fix a bug you have to understand what’s happening, so fixing bugs = checking out how a part of the code works, …

making silly changes may help you also on the process to understand the code


(Chruker) #4

Read the articles and tutorials here, starting with this one: http://www.planetquake.com/code3arena/tutorials/


(Chruker) #5

Ohh, and BTW NEVER trust game code comments. One of the .h states the same :slight_smile:


(fretn) #6

// q_shared.h – included first by ALL program modules.
// A user mod should never modify this file

trust this :clap: