To follow up directly after Inge's post and not say anything about the issue appears 'dishonest'.
If you mean that it exports lifestage and days until transition, it does. However, if I store it that way in my program, then it would be more difficult to calculate the exact number of days old. There is still the matter of how the game figures out the age of elders, which no one has yet clarified.
Life stage and days left are the key values. If you store nothing else for age, you store these.
Otherwise you end up with bugs like...
Quote from: birene
For example my adult Sims with 31 days left until elder are shown as teens with two days left until adult.
(emphasis mine)Doing it properly will also handle the different pets properly using the same code.
You could then also include the days until death for elders.
My way, we just keep age as a simple integer (which is much easier to do operations on) and have the age transition points be mobile. Problem solved, without losing the "days old" calculation.
Your way is akin to training a guarddog and then barking yourself.
Of the people that I've spoken to about SimSheet, their interest is fueled by that fact that they can import the data via SimPE.
I don't know anyone that wants to play the SimSheet game.
The purpose behind the "days left" display is to match what it says in game, which, in the case of elders, is in fact "days old". So that's what's displayed.
No it isn't. It's your interpretation of Days old. Will your code spot buggy elders that say they are 5 days old? No.
How can you say this as fact, when you state above that noone has clarified this for you?
Here's the clarification you need. It's PrevAgeDays + AgeDuration - AgeDaysLeft
There are also some bugs in your attempted CSV handling code. That was expected though. We all knew it was a hard thing to get right.
There are enough links in this thread already pointing the way to clean and tested code in that area.
While you are rewriting the savefile version, have you considered that you already have it in the form of the SimPE output?