12-24-2002, 09:27 AM | #1 |
ROTT alpha?
I just had a look on the ROTT source code and I was really surprised by the bad programming style. There are functions which are used before they are declared, brace style is very inconsistent and there were even files misspelled (like _rt_buil.h). I'm wondering if this code really stems from a workable build.
|
|
12-24-2002, 10:33 AM | #2 | |
3D Realms Staff
|
Re: ROTT alpha?
Quote:
What's this have to do with "ROTT Alpha"? That subject doesn't seem to make any sense to me.
__________________
Apogee / 3D Realms Employee: Dec 14, 1992 - May 22, 2009, Oct 23, 2014 - current "Lifting up the Cross to the waiting lost" - Petra | John 3:16 |
|
12-24-2002, 10:50 AM | #3 |
Re: ROTT alpha?
I'd just have to say, cut them some slack, this code is eight years old. Watcom isn't as strict as newer compilers, so that's why it didn't require function prototypes, for example.
The reason for inconsistent coding style is because of multiple programmers worked on the game. I guess there was no company style guidelines back then, as ROTT was Apogee's first large scale inhouse game. |
|
12-25-2002, 02:40 AM | #4 | ||
Re: ROTT alpha?
Quote:
Quote:
|
|||
12-25-2002, 05:56 AM | #5 | ||
Re: ROTT alpha?
Quote:
Quote:
|
|||
12-25-2002, 07:10 AM | #6 |
Re: ROTT alpha?
oh boo ****ing hoo.. who cares?
The code DOES work, proof is in the Linux and MacOS ports that are available now. I myself have my own coding style, which others might find messy but if it works then great, if it's confusing for others then they can clean it up themselves. |
|
12-25-2002, 07:14 AM | #7 | |
Re: ROTT alpha?
Quote:
|
||
12-25-2002, 07:19 AM | #8 | |
Re: ROTT alpha?
Quote:
|
||
12-25-2002, 07:34 AM | #9 |
Guest
|
Re: ROTT alpha?
It's he 1.3 source code... I patched my game to 1.3 and it works perfectly. So whats the problem?
|
12-25-2002, 07:53 AM | #11 | |
Guest
|
Re: ROTT alpha?
Quote:
|
|
12-25-2002, 08:30 AM | #12 |
Re: ROTT alpha?
It may compile under a compiler which is so lazy to just give a warning when there are files to be included which do not even exist and so intelligent that it can compensate missing structure definitions, so it may compile under watcom if it fulfills this prerequisities; but, for example, not under MSVC.
|
|
12-25-2002, 11:31 AM | #13 | |
Re: ROTT alpha?
Quote:
__________________
(define love (lambda () (map conquer all))) |
||
12-25-2002, 05:30 PM | #14 | |
Re: ROTT alpha?
Quote:
__________________
"My general feeling is that computers are doing more harm than good." - Jay Miner ("father" of the Amiga) |
||
12-25-2002, 06:05 PM | #15 |
Re: ROTT alpha?
The wolfenstien 3d code was worse.....NO comments [img]images/icons/frown.gif[/img]
|
|
12-26-2002, 12:06 AM | #16 |
Re: ROTT alpha?
To be more correct...the first time I compiled ROTT under MSVC I got 200ish compiler errors.
But in the long run, I had fix over 450ish errors [img]images/icons/smile.gif[/img] |
|
12-28-2002, 02:23 AM | #17 |
Re: ROTT alpha?
AlteDrecksau,
So what? It's free [img]images/icons/smile.gif[/img] Just shows how bad of code you can write and still make a game that sold 250k copies in 1995. Go forth and do better [img]images/icons/smile.gif[/img] |
|
12-28-2002, 04:54 AM | #18 |
Re: ROTT alpha?
Plus there is an "indent" tool you can use to get uniform style and improve readability. At least for Linux...
|
|
12-28-2002, 04:17 PM | #19 | |
Re: ROTT alpha?
Quote:
__________________
ill just have the Anus please - Marty |
||
12-28-2002, 05:23 PM | #20 |
Re: ROTT alpha?
Only a computer science major who hasn't seen or worked with real-world code would whine about ROTT's source code.
__________________
Big Brother is watching. Dress accordingly. |
|
12-28-2002, 07:41 PM | #21 |
Re: ROTT alpha?
But there is a lot to be said for using standard templates and a house agreed convention for coding and a commenting. Makes things a lot easier in the long run.... team code reviews, I find, are so much easier when neatly laid out and pleasing to the eye...
But I don't work in the game industry so I'm not sure if that applies..... |
|
12-29-2002, 03:49 AM | #22 | |
Re: ROTT alpha?
Quote:
I have known teams of programmers that have agreed on a certain way of coding, like 3 spaces in, /* */ style comments to describe what a function does just before a function etc... it has definately helped me learn from thier code and I have adopted alot of thier coding styles. Of course, I am a neatness nut, I HAVE to have all my indentations just right or it bugs me, but it really helps you see what code is within certain loops really fast. Sometimes when you get carried away coding you can start getting messy and I can only imagine what it is like if you have several people working on something, all with different styles and possibly a deadline etc.. how it can be.
__________________
"My general feeling is that computers are doing more harm than good." - Jay Miner ("father" of the Amiga) |
||
12-30-2002, 08:13 AM | #23 |
Re: ROTT alpha?
ROTT alpha [img]images/icons/grin.gif[/img]
|
|
12-31-2002, 11:39 AM | #24 | |
Re: ROTT alpha?
Quote:
[ 12-31-2002, 11:44 AM: Message edited by: AlteDrecksau ] |
||
12-31-2002, 04:08 PM | #25 |
Re: ROTT alpha?
In answer to the ROTT alpha question... the code is from a workable build, yes. However it is not the same as the release build. There were some apparently minor changes made between the release build and the source release. Most of them seem to involve dopefish.
The include mistake mentioned is not a mistake at all, since either watcom or dos truncates the filename to 8.3 format. |
|
12-31-2002, 07:53 PM | #26 | |
Re: ROTT alpha?
Quote:
|
||
12-31-2002, 08:16 PM | #27 | |
Guest
|
Re: ROTT alpha?
Quote:
_rt_buil.h : _rt_buil = 8 characters and h = 1.a perfect dos name structure _rt_build.h: _rt_build 9 and h = 1. 1 character too many infront of the "." Now the next question is why not rename it to rt_build.h. I think they didnt because _ will put the file in alphabetical order in the top. the 2nd _ is just to seperate rt and buil for better view of file names. |
|
12-31-2002, 08:19 PM | #28 | |
Re: ROTT alpha?
Quote:
Most of the changes we made for the Linux version were not to fix errors, but to add support for OSes other than DOS [img]images/icons/smile.gif[/img] (We still have yet to fix the file serialization issues, though.) |
||
Bookmarks |
|
|