Red Forest Data Structure Version 1

The Version 1 data structure viewed using Notepad++. This file was generated by Red Forest 0.3.1.

This documents the Version 1 data structure used by Red Forest Version 0.1 up until Version 3.1.

Red Forest File Version 1 prioritizes using the lines of the file as indicators for values and objects, which seemed intuitive at first but eventually became a problem for future releases and updates, making them more unreadable not only to players who want to achieve certain achievements by playing with the files contents, but to the developer as well. This was the reason Version 2 was invented.

Format

DO NOT EDIT THIS FARM
<Cash Value>
<Ball count>
<Ball Seed count>
-----------
<ball.x>
<ball.y>
<ball.size>
-----------
<ball.x>
<ball.y>
<ball.size>
-----------
...

Explanation

DO NOT EDIT THIS FARM
This line is a header that warns players not to touch the file at all. It serves no purpose within the game loading functions.

<Cash Value>
This line is where the variable for cash is stored

<Ball count>
This line is where the variable for the ball count is stored, used for the save and load menu displaying statistics.

<Ball Seed count>
This line is where the variable for amount of ball seeds in inventory is stored

-----------
This line is a divider. It serves no purpose other than making the file look appealing. After all, the game already knows how to read each line of code for everything, and it has nothing to do with the dividers, but with the pattern of repetition. Each ball object component occurs every 4 lines, so the game simply reads each 3 lines of code for each object in the save file by skipping the dividers and knowing this repetition pattern.

<ball.x>
This is reserved for the current ball object's X value

<ball.y>
This is reserved for the current ball object's Y value

<ball.size>
This is reserved for the ball's size value

During the save or lead process, this same pattern is repeated until all balls have been loaded or saved.