Closed Thread
Results 1 to 2 of 2

Thread: Where should I put my data

  1. #1
    Artsu is offline Newbie
    Join Date
    Feb 2010
    Posts
    1
    Rep Power
    0

    Question Where should I put my data

    Hello! First of all sorry that my topics title was pretty unclear, I just couldn't come up with a better one.

    I've been doing programming for like a year now mainly on school courses. Now I'm developing a simple tile based level editor for a school project (and also for use of my own). For my programming language I've choosed C#. Now I'm facing a problem that has been bothering me for a really long time now and no matter how hard I've tried, I just can't figure it out nor find a specific piece of information that would explain this to me.

    What I want to do is to save information about my tileset into a file. That information would include the tileset's image, and all the data about specific tiles like it's location in the tileset image etc. The question is, how should I do this. I really simply have no idea where information should be saved in a program. On my another school project I've had a simple text document where things were stored. Now I however would like something more complex as to make it harder for people to gain my tileset info with a text editor or such + I'm having that image around that should be saved to same place.

    Should I get some kind of a database to which I could save my info or what do I do? I've been thinking if I should make a file extension that would contain the data but I don't know how I should do that either nor if it's wise thing to do either.

    I hope this is in the right section, couldn't find a better place for it. First post.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    alienkinetics's Avatar
    alienkinetics is offline Programmer
    Join Date
    Feb 2010
    Location
    Australia
    Posts
    154
    Rep Power
    0

    Re: Where should I put my data

    You need to choose a container file format. There are lots of standards.

    One Ive used since my Amiga days is:
    Interchange File Format - Wikipedia, the free encyclopedia

    You can also try the Quake pak file format:
    Quake Specs v3.1

    Or, you could save all your files into a folder and zip them all up.

    There is always the linear binary save method, but you have to get it right so your files dont become incompatible with new versions.

    There is no correct answer. I like the idea of the PAK file because its simple, well defined and there are plenty of PAK explorer tools on the net. If you are looking for security, then you can always encrypt or compress the file after its created.

    There is also serialization, (which arrr one company I worked for choose!). I hate it because each language serializes objects differently, so you lock yourself into C#.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. What data type would be best for storing the money formatb of data in C#?
    By john_expert_coder in forum ASP, ASP.NET and Coldfusion
    Replies: 1
    Last Post: 06-14-2011, 01:32 PM
  2. Best data type for holding stance data about a player
    By liamzebedee in forum Java Help
    Replies: 2
    Last Post: 04-28-2011, 03:49 AM
  3. Replies: 3
    Last Post: 10-29-2010, 01:12 PM
  4. Multilanguage data (PHP data in MySQL table)
    By Thevenin in forum Database & Database Programming
    Replies: 0
    Last Post: 02-17-2010, 07:03 AM
  5. Data Masking helps in reducing data privacy violations
    By tossy in forum Software Security
    Replies: 1
    Last Post: 07-06-2009, 05:52 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts