Save UNIQUE buildings when captured city(script)

yas1k

Chieftain
Joined
Aug 26, 2018
Messages
18
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:
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.
 
Top Bottom