Source cleaning

Source cleaning

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
renrutal
Posts: 84
Joined: 28 Apr 2005, 16:45

Source cleaning

Post by renrutal »

Uhh, dev people, am I the only one who finds himself lost when looking at the game's main code? Today I was searching for the AI files and it took quite a bit to find and edit some of them, and in the end I was always missing another AI file, even if they all have AI written in their names.

Seriously, I'm paying attention, but there's no way I can find one file among almost 500 w/o spending quite some time or using a search tool.

Don't anyone think that AI, game logic, graphics, 3d objects, features, weapons, effects, unit logic, file handling, parsers and other important standing all in the very same directory isn't a bit messy. And I'm being nice saying that.

I don't want to sound like a whiner, but can't someone clean this mess ASAP? I'd volunteer I'm afraid to break working code everywhere since I don't know it all. I'd say it's just something like 'creating a new dir, moving the files accordingly and changing the source code references', but there's also the project config and other annoying things. I'm sure it only helps to maintain the things nice or at least less... well, just less.

Of course it's not the only cleaning that could be done, but it's the easiest, and the one which would bring results fast.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

Very true, but with multiple people working on 2 repositories, changing directories is not an easy thing. It's something that I and others definitely want though, and quite soon too.
Now with the abandoning the SF cvs, we can start changing dirs on the taspring-linux repository.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Try not to change the AI interface either with your editing....
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

Binary would be the same, only possibly the headers would go into a different directory, so to rebuild the AI you'd have to modify the #include's
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

or rather, just add the right -I options to your buildsystem...
Post Reply

Return to “Engine”