<GameplayScripts> only allows 1 file?

PlotinusRedux

Warlord
Joined
Jul 11, 2013
Messages
196
Riddle me this:

PlotTest.lua:
Code:
print("Got Here PlotTest");
PlotTest2.lua:
Code:
print("Got Here PlotTest2");
PlotTest.modinfo version 1:
Code:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="PlotTest" version = "1">
    <Properties>
        <Name>PlotTest</Name>
        <Teaser>PlotTest</Teaser>
    </Properties>
    <Components>
        <GameplayScripts>
            <Items>
                <File>PlotTest.lua</File>
                <File>PlotTest2.lua</File>
            </Items>
        </GameplayScripts>
    </Components>
    <Files>
        <File>PlotTest.lua</File>
        <File>PlotTest2.lua</File>
    </Files>    
</Mod>
Firaxis Tuner Results:
Map Script: -------------------------------
PlotTest: Got Here PlotTest
WorldInput: Creating PopupDialog 'ConfirmWarPopup'

PlotTest.modinfo version 2:
Code:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="PlotTest" version = "1">
    <Properties>
        <Name>PlotTest</Name>
        <Teaser>PlotTest</Teaser>
    </Properties>
    <Components>
        <GameplayScripts>
            <Items>
                <File>PlotTest.lua</File>
            </Items>
        </GameplayScripts>
        <GameplayScripts>
            <Items>
                <File>PlotTest2.lua</File>
            </Items>
        </GameplayScripts>
    </Components>
    <Files>
        <File>PlotTest.lua</File>
        <File>PlotTest2.lua</File>
    </Files>    
</Mod>
Firaxis Tuner Results:
Map Script: -------------------------------
PlotTest: Got Here PlotTest
PlotTest2: Got Here PlotTest2
WorldInput: Creating PopupDialog 'ConfirmWarPopup'

So am I losing my mind, or do we really have to use a separate <GameplayScripts> component for every file? I keep thinking I'm making some obvious typo or something, but I verified in the first case both files were in mods.sqlite attached to the GameplayScripts component.

Anyone else run into this, or see what obvious mistake I'm making?
 
Yeah, I've just run into this as well. Drove me crazy as the newly added file just didn't want to load. And even more, it doesn't even necessarily load the first entry in <GameplayScripts>, but it seems to load the first one according to the file name.
I'm relieved however that it at least works with multiple <GameplayScripts> entries.
 
Top Bottom