some advise

F551cff47493defce8fc1e08a43106fb
0
n321 101 Dec 07, 2006 at 03:22

So I have an engine, ca3de, which makes use of what it calls mods (external game code) as of now it has a DM mod code but I want to make a SP “mod” If the engine already supports all needed model formats and map formats (all formats for everything!!!) What route should I take to implement game code that I wrote for a Q3 engine. (SP game code!)

I have tried manythings with some success but I have never coded anything other then Q3 and Q2 and that is where I learned to code in the firstplace. I want it clean not hacked. Let me know what you guys think the best plan swould be….as I am just hacking code together with limited success!!!

thanx for any advise!

3 Replies

Please log in or register to post a reply.

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 168 Dec 07, 2006 at 08:13

This would probably be a question better asked of the ca3de community. See if they have any tutorials or docs about their engine, or if they have a forum or a mailing list or something similiar. Since your question is specific to a particular engine, you’d probably find better information there than you could here.

A9102969e779768e6f0b8cb87e864c94
0
dave_ 101 Dec 07, 2006 at 08:56

@n321

I want it clean not hacked. Let me know what you guys think the best plan swould be….as I am just hacking code together with limited success!!!

Refactor. Personally when I’m doing new developement I create a nice design and implement that. However if I have to use someone elses I just implement the code as quick as I can then do refactoring to remove the hacks. Its a good way of keeping you focused and ensuring you dont over engineer things.

I’ve recently read a good book on the subject called ‘Working Effectively With Legacy Code’. You might not think the code is legacy, but basically the author defines legacy as any code without tests. Heres an article by the author of the some title.

Ab2e239c5cb0c0a16a0eafe5993902db
0
Durastik 101 Dec 08, 2006 at 04:44

Learning to spell is always useful too ;)