InGame Info XML - Serene Seasons

InGame Info XML - Serene Seasons

321k Downloads

Adds tags for Serene Seasons to InGame Info XML.

This does not edit the xml file.

Tags added: (Comments are taken directly from the ISeasonState API)

  • sereneseasonsdayduration
    Get the duration of a single day (In ticks). Normally this is 24000 ticks.
  • sereneseasonssubseasonduration
    Get the duration of a single sub season. (In ticks)
  • sereneseasonsseasonduration
    Get the duration of a single season. (In ticks)
  • sereneseasonscycleduration
    Get the duration of an entire cycle (a 'year') (In ticks)
  • sereneseasonsseasoncycleticks
    The time elapsed in ticks for the current overall cycle. A cycle can be considered equivalent to a year, and is comprised of Summer, Autumn, Winter and Spring. (In ticks)
  • sereneseasonsday
    Get the number of days elapsed.
  • sereneseasonscurrentseason
    Get the current season. (SPRING, SUMMER, AUTUMN, WINTER)
  • sereneseasonscurrentsubseason
    Get the current sub season. See SubSeasons for a full list.
  • sereneseasonscurrenttropicalseason
    Get the current tropical season. See TropicalSeasons for a full list.

I've also added 3 convenience tags:

  • sereneseasonscurrentseasonord
    Returns the ordinal (ID) of the current season, starting at 0 (Spring)
  • sereneseasonscurrentsubseasonord
    Returns the ordinal (ID) of the current subseason, starting at 0 (early spring)
  • sereneseasonsdayofseason
    Returns the the day of the current season, starting at 0

Example XML:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<config>
    <lines at="topleft">
        <line>
            <icon>
                <str>sereneseasons:textures/items/ss_icon.png</str>
                <op> <!-- iconx -->
                    <str>eq</str>
                    <var>sereneseasonscurrentseasonord</var>
                    <num>0</num>
                    <num>1</num>
                    <num>2</num>
                    <num>3</num>
                    <num>0</num>
                    <num>16</num>
                    <num>16</num>
                    <num>0</num>
                    <num>0</num>
                </op>
                <op> <!-- icony -->
                    <str>eq</str>
                    <var>sereneseasonscurrentseasonord</var>
                    <num>0</num>
                    <num>1</num>
                    <num>2</num>
                    <num>3</num>
                    <num>0</num>
                    <num>0</num>
                    <num>16</num>
                    <num>16</num>
                    <num>0</num>
                </op>
                <num>16</num> <!-- iconwidth -->
                <num>16</num> <!-- iconheight -->
                <num>32</num> <!-- texwidth -->
                <num>32</num> <!-- texheight -->
            </icon>
            <op>
                <str>eq</str>
                <var>sereneseasonscurrentseasonord</var>
                <num>0</num>
                <num>1</num>
                <num>2</num>
                <num>3</num>
                <str> Spring</str>
                <str> Summer</str>
                <str> Autumn</str>
                <str> Winter</str>
                <str> Error</str>
            </op>

            <str>, Day </str>
            <add>
                <var>sereneseasonsdayofseason</var>
                <num>1</num>
            </add>
            <str>, {mctime} </str>
            <if>
                <var>daytime</var>
                <str>($eD$f)</str>
                <str>($8N$f)</str>
            </if>
        </line>
    </lines>
</config> 

Project Logo "Pixel Art Season Tree" by karboosx https://karboosx.itch.io/seazon-tree