Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem saving screenshots
11-05-2005, 05:05 PM,
#1
Problem saving screenshots
There is a problem with saving screenshots. Start a race, make some screenshots, exit from the game, start again vdriftstart a race, make some screenshots, the old screenshots are overwrites.Gianni
Reply
11-05-2005, 07:50 PM,
#2
Problem saving screenshots
Here's the way screenshots currently work: each time you take a screenshot, it makes shotXXX.bmp, where XXX is how many screenshots you've taken since starting vdrift. How would you propose it should work? Maybe put a timestamp in the filename so they're all unique?
Reply
11-05-2005, 08:21 PM,
#3
Problem saving screenshots
You could do something like if(FileExists(file+counter+".bmp")) { counter++; }But this could be a problem if there are a lot of screenshots.timestamp is also a goog idea.
Reply
11-06-2005, 12:10 AM,
#4
Problem saving screenshots
My idea for this was to just save the number of screenshots in the config file, and then just keep adding to it. Actually I meant to put this in the last version but forgot about it.
Reply
11-06-2005, 02:55 AM,
#5
Problem saving screenshots
I dunno, I like the timestamp idea better... otherwise, the sequence is meaningless and you have no way to reset it...but whatever. Doesn't matter to me.
Reply
11-07-2005, 09:43 AM,
#6
Problem saving screenshots
yeah that is a limitation, if the files at the beginning are deleted it won't reuse those numbers. a timestamp is probably best. what's the easiest way to come up with one in c++? should we use unix time or some kinda date/time combo?
Reply
11-07-2005, 10:31 AM,
#7
Problem saving screenshots
oh god, not more system() calls... we should just use the normal C time functions
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)