Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

stevenmarky

lots of files, why?

This topic is 6629 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Whenever I make a game, or a program it is only usually in one or two files, but all the proffesional games have hundreds of files in the games directory, why? Is it because it makes the game run quicker, or is it just the files from the level editor? //end

Share this post


Link to post
Share on other sites
Advertisement
If you mean the number of files which get installed, then that really has no correlation to the number of source files. If you mean why do people you multiple source files, it is because breaking code into multiple files makes the organization much easier. For instance, if you put each class into its own file it makes it easier to find things and to reuse code in other projects. I am sure someone else with more time will elaborate further.



"If at first you DO succeed...try not to look astonished!!"

BASSOFeeSH@aol.com

BASSOFeeSH
><>

Share this post


Link to post
Share on other sites
If you're talking about source files:

Your games are probably not as large as the proffesional's games (just guessing). For example, Unreal Tournament contains 300.000 lines of C++ code. Is it a good idea to have 300.000 lines of code in one or two files!? I think not!

- Muzzafarath

Mad House Software
The Field Marshals

Edited by - Muzzafarath on June 24, 2000 3:05:09 PM

Share this post


Link to post
Share on other sites
Now, if you''re NOT talking about source files, then you are talking about the game''s data files probably. The games have a lot of graphic, sound, and level data (and sometimes AI scripts and stuff) that it needs to access; it''s not all just program code. All the other files in the game directory are probably data files.

Share this post


Link to post
Share on other sites
Only because a game has a huge amount of data files, it doesn''t necessarily mean it stores more data than a game with only a few files.
Just take "DooM" as an example. DooM''s data is stored in one huge compressed file, called PWAD, but DooM uses pretty much sprites, audio files and so on.
If ID would have stored every data in one file, DooM''s directory would be flooded with files
I hope you got the idea...

And do never think a game is only "cool" as soon as it needs a pretty much memory, or it has very much files...the less files/memory you need, the better it is!

Yours,

Indeterminatus

--consuetudo est quasi altera natura hominum...

Share this post


Link to post
Share on other sites
Actually, the DOOM data was called an IWAD file PWADs are player created wads. Just thought I''d clear up that worthless bit of knowledge

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!