1. Welcome to the Starbound support forums. Please check the support FAQs before posting: http://playstarbound.com/support

Bug/Issue Lua API - world.type() function is not returning the expected result

Discussion in 'Starbound Support' started by Iris Blanche, Sep 11, 2016.

  1. Iris Blanche

    Iris Blanche Pudding Paradox Forum Moderator

    Normally i'm not the one who opens a topic here but this is imo necessary because i need this function.

    According to the documentation this function should return the primary biome for the world but it doesn't return the promary biome. It "just" returns the current terrestial entry which messes up pretty bad if the primary region array contains a biome name that differs from the entry id or if the primary region array has more than one entry. The function works pretty well as long as the primary region consist from 1 entry and this entry has the exact same name like the terrestial entry. This makes the usability of this function very limited and won't work for mods that make use of more primary regions.
    Expected behaviour according to the description is that this function returns the real primary biome used in the world and not the terrestial entry.

    The only possibility to determine the primary biome is still working with environment effects which isn't a good alternative because if the mod using such effects get removed it results into massive log spam about the status effect isn't found.

    ~ Iris ~

Share This Page