1. Firaxis celebrates the "Asian American and Pacific Islander Heritage Month", and offers a give-away of a Civ6 anthology copy (5 in total)! For all the details, please check the thread here. .
    Dismiss Notice

Save UNIQUE buildings when captured city(script)

Discussion in 'Civ5 - Creation & Customization' started by yas1k, Dec 21, 2021.

  1. yas1k

    yas1k Chieftain

    Joined:
    Aug 26, 2018
    Messages:
    18
    Gender:
    Male
    i tried to do script, but nothing happen. What i did wrong??

    Code:
      <Files>
    
        <File md5="C02B094541F45921653F9DCD088017CD" import="1">LUA/Rus Lua Scripts.lua</File>
          <File md5="CFE7A26A49E47502FD93BAD684C037BF" import="0">LUA/Kievan Rus Check.lua</File>
      </Files>
      <Actions>
      </Actions>
      <EntryPoints>
        <EntryPoint type="InGameUIAddin" file="LUA/Rus Check.lua">
          <Name>Rus Cap</Name>
          <Description>Rus Cap</Description>
        </EntryPoint>
      </EntryPoints>
    </Mod>
    -------------------------------
    or i did something wrong with .modinfo
    Code:
      <Files>
        <File md5="C02B094541F45921653F9DCD088017CD" import="1">LUA/Rus Lua Scripts.lua</File>
          <File md5="CFE7A26A49E47502FD93BAD684C037BF" import="0">LUA/Rus Check.lua</File>
      </Files>
      <Actions>
      </Actions>
      <EntryPoints>
        <EntryPoint type="InGameUIAddin" file="LUA/Rus Check.lua">
          <Name>Rus Cap</Name>
          <Description>Rus Cap</Description>
        </EntryPoint>
      </EntryPoints>
    </Mod>
    Moderator Action: Moved from Civ 6 Mod Creation Help. ~ LK
     
    Last edited by a moderator: Dec 21, 2021
  2. TopHatPaladin

    TopHatPaladin Warlord

    Joined:
    Nov 5, 2017
    Messages:
    167
    Gender:
    Male
    Location:
    New England
    Based on the snippets of the .modinfo shown, it seems like the Lua should be loading correctly (assuming that Rus Lua Scripts.lua is properly referenced with Rus Check.lua). To determine anything more than that, I'd need to see the contents of the actual files, and Lua.log as well if you have logging enabled.
     

Share This Page