Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - amnesiak77

#1
Help / Changing textures in mod based on event
April 27, 2021, 08:51:40 AM
Hi,
I would like to modify Outdoor lighting mod for personal use.
I would like to add another texture for flood lights when they are lit.
Can someone suggest the code. I know I have to edit Buildings_Furniture_Outdoor.xml
Here is the code for floodlights:
<ThingDef ParentName="BuildingBase">
<defName>OutdoorFloodLights</defName>
<label>outdoor floodlights</label>
<description>Large floodlights that can illuminate a significant area outside. Without light your colonists move and work at a slower speed.</description>
    <thingClass>Building</thingClass>
    <category>Building</category>
    <minifiedDef>MinifiedThing</minifiedDef>
    <!-- need this to display over the top of pawns -->
    <altitudeLayer>Skyfaller</altitudeLayer>
    <passability>PassThroughOnly</passability>
    <selectable>true</selectable>
    <fillPercent>0.75</fillPercent>
    <pathCost>8</pathCost>
    <leaveResourcesWhenKilled>true</leaveResourcesWhenKilled>
    <resourcesFractionWhenDeconstructed>0.5</resourcesFractionWhenDeconstructed>
    <soundImpactDefault>BulletImpact_Metal</soundImpactDefault>
    <designationCategory>Furniture</designationCategory>
    <rotatable>false</rotatable>
<size>(1,1)</size>
    <uiIconOffset>(0, 0.25)</uiIconOffset>
    <uiIconScale>0.3</uiIconScale>
    <thingCategories>
    <li>BuildingsFurniture</li>
    </thingCategories>
<costList>
<Steel>100</Steel>
<ComponentIndustrial>1</ComponentIndustrial>
</costList>
    <graphicData>
<texPath>Things/Building/Furniture/floodlights</texPath>
<graphicClass>Graphic_Single</graphicClass>
<drawSize>(5,5)</drawSize>
<damageData>
<cornerTL>Damage/Corner</cornerTL>
<cornerTR>Damage/Corner</cornerTR>
<cornerBL>Damage/Corner</cornerBL>
<cornerBR>Damage/Corner</cornerBR>
</damageData>
<!--
      <shadowData>
        <volume>(0.2, 0.35, 0.13)</volume>
<offset>(0,0,-0.42)</offset>
</shadowData>
-->
    </graphicData>
    <comps>
    <li Class="CompProperties_Flickable"/>
<li Class="CompProperties_Schedule">
<startTime>0.7</startTime>
<endTime>0.3</endTime>
<offMessage>Floodlights only function at night from 17:00 through to 07:00.</offMessage>
</li>
<li Class="CompProperties_Power">
<compClass>CompPowerTrader</compClass>
<basePowerConsumption>180</basePowerConsumption>
</li>
<li Class="CompProperties_Glower">
<glowRadius>30</glowRadius>
<glowColor>(228,228,228,0)</glowColor>
</li>
    </comps>
    <placeWorkers>
    <li>PlaceWorker_NotUnderRoof</li>    <!-- Can't be built under a roof -->
    </placeWorkers>
    <statBases>
<MaxHitPoints>150</MaxHitPoints>
<WorkToBuild>1200</WorkToBuild>
<Flammability>0.2</Flammability>
<Mass>120</Mass>
    </statBases>
    <researchPrerequisites>
    <li>Electricity</li>
    </researchPrerequisites>
    <blockWind>true</blockWind>
    <!-- Seems that the tickerType is needed to get the game to observe the schedule off/on -->
    <tickerType>Rare</tickerType>
    <!-- Hopefully this means it can't be built inside -->
    <terrainAffordanceNeeded>Medium</terrainAffordanceNeeded>
    <constructEffect>ConstructMetal</constructEffect>
    <!-- This should display a "lighting circle" around the lamp when placing or moving -->
    <specialDisplayRadius>15</specialDisplayRadius>
</ThingDef>


#2
Help / Rice cultivating civilization Mod
January 15, 2020, 04:21:15 PM
Hi,
Is there a working 1.0 version of this mod and a non steam link ?
I think this mod also needs ResourcePackCore.
I found some links on GitHub but mod doesnĖ™t work.
Any help would be very appreciated.