[Solved] YNAMP AssignStartingPlots loaded instead of Free City-States, is the criteria in ImportFiles to blame?

BoredCitizen

Chieftain
Joined
Jun 29, 2012
Messages
6
Edit: I figured out the problem by googling YNAMP_XP2. Found it in YNMAP modinfo file, realized this is the criteria that is matched in the Free City-states mod, and edited the LoadOrder for the ImportFiles matching that criteria to be 1002222 as well.

Free City-states mod (the revived version) does not seem to be working with YNAMP in spite of the fact it claims to be compatible.

I modified Free City-states mod's AssignStartingPlots.lua files to print a unique message when loaded. They are not loaded.

The LoadOrder for AssignStartingPlots.lua in YNAMP is 1000002.

I'm guessing the criteria part is the problem, but I do not know what it means and how it should be modified to work with the latest YNAMP (I assume I need to find some kind of ID for YNAMP, but I'm not sure which XML tag in the modinfo file is the YNAMP's ID)

I did use a diffmerge tool to compare the scripts between the YNAMP and two Free City-states versions meant to work with YNAMP. My assessment is that loading the Free City-states' version won't cause problems.

However I don't want to overwrite the YNAMP's AssignStartingPlots.lua file, I'd rather stick to changing the Free City-states' modinfo file instead.

from Free City states modinfo:
XML:
    <ImportFiles id="FreeCityStates_XP2" criteria="YNAMP_XP2">
        <Properties>
            <LoadOrder>650</LoadOrder>
       </Properties>
        <Items>
            <File>Override/XP2/YNAMP/AssignStartingPlots.lua</File>
        </Items>
    </ImportFiles>
    <ImportFiles id="FreeCityStates_XP2" criteria="CUSTOM_VI_YNAMP_XP2">
        <Properties>
            <LoadOrder>1002222</LoadOrder>
       </Properties>
        <Items>
            <File>Override/Customization VI/XP2/YNAMP/AssignStartingPlots.lua</File>
        </Items>
    </ImportFiles>
 
Last edited:
Top Bottom