Budget Subfile

From SC4D Encyclopaedia
Revision as of 18:21, 9 August 2019 by Tarkus (talk | contribs) (Orig from whatevermind and CasperVg)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This article is about the file format in savegame files. For the game concept, see Budget.

This page pertains to the format of the Budget files within Savegame files. These files may also be known as Taxes, which is how they are often labeled in Reader.

Specifications

NOTE: [Start Break] notes the start of a section where there are repeating sections. [End Break] notes the end of the section where there are repeating sections. Repeating sections can/may exist in multiple locations in the one file.

Budget E990BE01

Dword - File Size (number of bits that follow).
10 Bytes - Unknown
Qword - Total Funds
Qword - Total Funds
Qword - Total Loans Borrowed Amount
QWord - Monthly Expense
220 Bytes - Unknown. There's some sort of pattern here in these 220 bytes.

Dword - R$ Current Tax Rate
Dword - R$ Max Tax Rate (Seems the Max Tax Rate available in-game is Hard Coded)
112 bytes - Unknown, Mostly Zero's
Qword - R$ Tax Income Monthly Estimate
Dword - R$$ Current Tax Rate
Dword - R$$ Max Tax Rate
112 bytes - Unknown
Qword - R$$ Tax Income Monthly Estimate
Dword - R$$$ Current Tax Rate
Dword - R$$$ Max Tax Rate
112 Bytes - Unknown
Qword -R$$$ Tax Income Monthly Estimate
Dword - CS-$ Current Tax Rate
Dword - CS-$ Max Tax Rate
112 Bytes - Unknown
QWord - CS-$ Tax Income Monthly Estimate
Dword - CS-$$ Current Tax Rate
Dword - CS-$$ Max Tax Rate
112 Bytes - Unknown
Qword - CS-$$ Tax Income Monthly Estimate
Dword - CS-$$$ Current Tax Rate
Dword - CS-$$$ Max Tax Rate
112 bytes - Unknown
Qword - CS-$$$ Tax Income Monthly Estimate
Dword - CO-$$ Current Tax Rate
Dword - CO-$$ Max Tax Rate
112 bytes - Unknown
Qword - CO-$$ Tax Income Monthly Estiamate
Dword - CO-$$$ Current Tax Rate
Dword - CO-$$$ Max Current Tax Rate
112 byte - Unknown
Qword - CO-$$$ Tax Income Monthly Estimate
Dword - IAG Current Tax Rate
Dword - IAG Max Tax Rate
112 bytes - Unknown
Qword - IAG Tax Income Monthly Estimate
Dword - ID Current Tax Rate
Dword - ID Max Tax Rate
112 Bytes - Unknown
Qword - ID Tax Income Monthly Estimate
Dword - IM Current Tax Rate
Dword - IM Max Tax Rate
112 Bytes - Unknown
Qword - IM Tax Income Monthly Estimate
Dword - IHT Tax Current Rate
Dword - IHT Max Tax Rate
112 Bytes - Unknown
Qword - IHT Tax Income Monthly Estimate 

X Bytes - Unknown, also changes.

Dword - Total Number of Loans Issued.
        This is probably an identifier for this section, identifying the
        length of this particular Section in  terms of the number of Loans on issue.
[Start break]
  8 Bytes - Unknown.
  QWord - Loan Amount borrowed (Individual Loan).
  Qword1 -Total Loan Repayments (total repayments over course of loan).
  Qword - Unknown.
  QWord - Unknown.
  QWord - Monthly Loan Repayment Amount (Individual Loan)
  Qword - Loan Amount Owed (Individual Loan)
[End Break]
(Repeat above section for each loan.)

8 Bytes - Unknown
QWord - Monthly Income (Total) 
Qword - Unknown (maybe also monthly income?)
Qword - Monthly Expenses (Total) 
Qword - Unknown (maybe also monthly expense?)

Dword - (Possibly) number of Sections that follow.
[Start Break]
  Dword - Unknown. Same value as following Dword.
  Dword - Unknown. Same value as previous Dword
  Dword - Length of section name.
  String - Section Name, i.e. different areas of the Budget.
  Qword - Monthly Expense Estimate of Section.
  Qword - Monthly Income Estimate of Section.
  Dword - Equals the number of Dwords that follow.
  XxDwords - See Previous Dword just above to get the number of Dwords for here - Unknown.
[End Break]
(Repeat above section for each different Budget Deparment.)

Budget AA313C9F

Dword - File Size of Section (number of bits).
10 Bytes - Unknown.
Dword - Length of Section Name. If this is zero, seems as though
        there is no section name, or valid section for that matter,
        but rather the  section is just a "Fill" section??.
String - Section name, i.e. different areas of the Budget & individual items.
DWord - Number of "Section Item" Items (where applicable, as not all budget
        items give details as to how many there are of a particular item).
Dword - Unknown.
QWord - Section Monthly Cost (Expense) - For items if they were at standard 100% efficiency.
QWord - Section Monthly Estimate (Expense) - Current Month Actual Amount charged against the Budget.
Qword - Section Monthly Estimate (Revenue) - Current Month Actual Amount credited to Budget.
Variable X Bytes - Unknown, number of remaining bytes depends on each sections' Dword file size above. 
(Repeat as necessary as per above for each section.)

Budget E990BFFC

Dword - File Size of Section (number of bits).
15 Bytes -Unknown.
Dword - Length of Section Name.
String - Section Name, i.e. different areas/categories within the Budget.
21 Bytes - Unknown
Dword - Equals number of Qwords that follow. (Number of (main) line items belonging
        to Section, i.e. different items within Budget Department areas.
        May or may not include main budget department heading itself).
X Bytes - See Previous DWORD just above to get the number of Qwords here.
Dword - Equals number of Dwords that follow. (Number of (sub-section) line items
        inside current section, i.e. the various line items that  exist within
        the different "Master Budget" Departments. For example, where it lists
        each and every individual Coal/Oil/Gas Power Plants in the "Master Power budget").
XxDword - See Previous DWORD just above to get the number of Dwords here.
Dword - Unknown
Dword - Unknown
(Repeat as necessary as per above for each section (for each budget item)).