Improvements, features etc.

I have also tried switching back the models to original farm's:
1762887209371.png

The normal Farm improvement works as it should - so I at least didn't break the original thing. But in the circles are the new Preserve. It's the same throughout all ages.
Any idea what to try?
 
You missed the entry of the orginal farm that actually assembles the crops and the buildings into a single improvement so that your ART_DEF actually references something; this one is from mine, but your should also have something very similar:

XML:
        <ArtRef Name="goal:IMPROVEMENT_FARM">
            <Attribute Class="Era">ERA_ANCIENT,ERA_CLASSICAL</Attribute>
            <Attribute Class="Bonus">NO_BONUS,BONUS_ALL,!BONUS_RICE,!BONUS_WHEAT,!BONUS_POTATO,!BONUS_CORN</Attribute>
            <Attribute Class="Scalar">NIF:Art/Structures/Improvements/Farm/an_eu_farm01.nif</Attribute>
            <Attribute Class="Scalar">KFM:Art/Structures/Improvements/Farm/an_eu_farm01.kfm</Attribute>
            <Attribute Class="Scalar">szExtra:art:IMPROVEMENT_FARM1</Attribute>
            <Attribute Class="Scalar">szExtra:art:IMPROVEMENT_FARM2</Attribute>
            <Attribute Class="Scalar">iCropAreaMultiplier:4</Attribute>
            <Attribute Class="Scalar">bCutTrees:1</Attribute>
            <Attribute Class="Scalar">bZMode_Ground:1</Attribute>
            <Attribute Class="Scalar">fTwist:-0.7853981633</Attribute>
            <Attribute Class="Scalar">bIsPartOfImprovement:1</Attribute>
            <Attribute Class="Rotation">0,90,180,270</Attribute>
            <Scale>0.5</Scale>
        </ArtRef>

Obviously, IMPROVEMENT_FARM1 and IMPROVEMENT_FARM2 are the farm buildings to be thrown into the mix, and you decide whether you need any of those and specify accordingly; those bits can be omitted.
 
From looking at it, it feels like you're almost there. What you seem to be missing is the pointer to 4x4 leaf; search for this in your file:
XML:
    <LProduction From="Node_4x4">
        <Attribute Class="Improvement">IMPROVEMENT_FARM,IMPROVEMENT_VERTICAL_FARM</Attribute>
        <Attribute Class="Bonus">NO_BONUS,BONUS_ALL,!BONUS_RICE,!BONUS_WHEAT,!BONUS_POTATO</Attribute>
        <Attribute Class="Scalar">bNotBFS:1</Attribute>
        <To Name="Farm_4x4"/>
        <To Name="GNode_4x4"/>
    </LProduction>
And do something similar but pointing to PRESERVE_4x4 rather than Farm_4x4. You even have the PRESERVE_4x4 LProduction in place already, but nothing points to it.
 
Post the nif of the improvement itself - I'd like to check if it is actually functional internally.
Thank you so much for looking into it.
I have also uploaded the related xml files, just in case.
 

Attachments

And I always forget to say that you were right about the XML:
Deleting the <ShadowDef> part in the xml for lynx (not only commenting it out) seemed to work for me... :dunno:
So that's solved 🙂
 
Back
Top Bottom