Turret Top Texture, how to define size?

Started by QuantumX, October 06, 2016, 05:20:08 AM

Previous topic - Next topic

QuantumX

So I'm creating some new turrets, and got them in game all fine with my own textures etc.

Problem I'm having is that my original textures for the base and turret top are 512x512, and they are exported to png at 256x256, when they appear ingame the base of the turret is correct using the 4,4 draw scale but the top of the turret is a lot smaller that it should be, is there a way to specify in the Def file the draw scale of the top of the turret? (My turret building code is below)

<ThingDef ParentName="BuildingBase">
<defName>TrantulaDualHeavyBolter</defName>
<label>Trantula Dual Heavy Bolter</label>
<thingClass>Building_TurretGun</thingClass>
<graphicData>
<texPath>Things/IGTurrets/AutoTurrets/HeavyBolter/ATHeavyBolterMk1-Base</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<drawSize>(4,4)</drawSize>
<damageData>
<rect>(0.38,0.2,0.56375,0.8)</rect>
<cornerTL>Damage/Corner</cornerTL>
</damageData>
</graphicData>
<minifiedDef>MinifiedFurniture</minifiedDef>
<altitudeLayer>Building</altitudeLayer>
<stealable>false</stealable>
<statBases>
<MaxHitPoints>500</MaxHitPoints>
<Flammability>0.75</Flammability>
<WorkToMake>5000</WorkToMake>
<Beauty>-70</Beauty>
</statBases>
<tickerType>Normal</tickerType>
<comps>
<li Class="CompProperties_Explosive">
<explosiveRadius>2</explosiveRadius>
<explosiveDamageType>Bomb</explosiveDamageType>
<chanceNeverExplodeFromDamage>0.25</chanceNeverExplodeFromDamage>
</li>
<li Class="CompProperties_Forbiddable"/>
<li Class="CompProperties_Power">
<compClass>CompPowerTrader</compClass>
<basePowerConsumption>20</basePowerConsumption>
</li>
<li Class="CompProperties_Flickable"/>
<li Class="CompProperties_Breakdownable"/>
</comps>
<description>Trantula Heavy Bolter turret is designed for medium range sentry duty, has small chance to explode when destroyed.</description>
<passability>PassThroughOnly</passability>
<pathCost>50</pathCost>
<castEdgeShadows>true</castEdgeShadows>
<fillPercent>0.4</fillPercent>
<costList>
<Steel>500</Steel>
<Ceramite>200</Ceramite>
<ImperialComponent>5</ImperialComponent>
</costList>
<size>(4,4)</size>
<terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
<designationCategory>Security</designationCategory>
<specialDisplayRadius>20</specialDisplayRadius>
<building>
<ai_combatDangerous>true</ai_combatDangerous>
<turretGunDef>Turret_DualHeavyBolter</turretGunDef>
<turretBurstCooldownTicks>200</turretBurstCooldownTicks>
<turretTopgraphicPath>Things/IGTurrets/AutoTurrets/HeavyBolter/ATHeavyBolterMk1-GunBig</turretTopgraphicPath>
</building>
<researchPrerequisites>
<li>TRDualHeavyBolter</li>
</researchPrerequisites>

orannj


kaptain_kavern

I don't know a xml tag for that and wasn't able to find you one.


I don't know if it can help but when you look in the vanilla textures files; all turrets base have 256x256 textures files but all top_turret have 128x128 textures files. So couldn't you "just" try to make your top turret textures files 128x128?