1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  3. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  4. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  5. Dismiss Notice
  6. Forum account upgrades are available for ad-free browsing.
    Dismiss Notice

ResourceType Mismatch for Whale(s)?

Discussion in 'Bug reports' started by Ferocitus, Sep 2, 2017.

  1. Ferocitus

    Ferocitus Warlord

    Joined:
    Aug 7, 2016
    Messages:
    2,009
    Gender:
    Male
    Location:
    Adelaide, South Australia
    When running Ynamp Beta .6 I found several instances of this warning in the Lua.log file:
    Map Script: - Trying to place RESOURCE_WHALE
    Map Script: - WARNING : can't find RESOURCE_WHALE in Resources

    In AssignStartingPlots.lua, line 3566, we have:
    [13] = RESOURCE_WHALE
    which is the Civ5 ResourceType.

    And in Line 3625 of the same file there is:
    [32] = RESOURCE_WHALES
    which is the Civ6 ResourceType.

    In the Firaxis Resources.xml file, which is in directory
    Program Files (x86)/Steam/steamapps/common/Sid Meier's Civilization VI/Base/Assets/Gameplay/Data/
    Line 42 is:
    <Row ResourceType="RESOURCE_WHALES" TerrainType="TERRAIN_COAST"/>

    Could the missing 'S' in WHALES, and/or some mismatch between the two
    Resource Types be the source of those warnings in Ynamp's Lua.log file?
     
  2. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    7,521
    Location:
    France
    thanks, it was in the mod's civilization specific resources that I forgot to change the reference to whales from civ5 (RESOURCE_WHALE) to civ6 (RESOURCE_WHALES)

    it was preventing them to be placed near Japan TSL when the option was selected (and raised the error in the log)
     
  3. Ferocitus

    Ferocitus Warlord

    Joined:
    Aug 7, 2016
    Messages:
    2,009
    Gender:
    Male
    Location:
    Adelaide, South Australia
    And England. Remember to change it for them too. :)
     
  4. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    7,521
    Location:
    France
    The 3 entries, yes.
     

Share This Page