Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Fraction" Shader with outline in 1.4 (with solution). #69

Open
MAGGen-hub opened this issue Feb 22, 2023 · 0 comments
Open

"Fraction" Shader with outline in 1.4 (with solution). #69

MAGGen-hub opened this issue Feb 22, 2023 · 0 comments

Comments

@MAGGen-hub
Copy link

In 1.4 when hacked mechanoid cell (texture square) change color into "Fraction color" because of changes (<shaderType>CutoutWithOverlay</shaderType>) in game code. This patch fixes the problem:

<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
  <operations>
	<li Class="PatchOperationRemove">
  		<xpath>Defs/PawnKindDef[defName="Mech_Scyther"]/lifeStages/li[2]/bodyGraphicData/shaderType</xpath>
	</li>
	<li Class="PatchOperationRemove">
  		<xpath>Defs/PawnKindDef[defName="Mech_Pikeman"]/lifeStages/li[2]/bodyGraphicData/shaderType</xpath>
	</li>
	<li Class="PatchOperationRemove">
  		<xpath>Defs/PawnKindDef[defName="Mech_Lancer"]/lifeStages/li[2]/bodyGraphicData/shaderType</xpath>
	</li>
	<li Class="PatchOperationRemove">
  		<xpath>Defs/PawnKindDef[defName="Mech_CentipedeBurner"]/lifeStages/li[2]/bodyGraphicData/shaderType</xpath>
	</li>
	<li Class="PatchOperationRemove">
  		<xpath>Defs/PawnKindDef[defName="Mech_CentipedeGunner"]/lifeStages/li[2]/bodyGraphicData/shaderType</xpath>
	</li>
	<li Class="PatchOperationRemove">
  		<xpath>Defs/PawnKindDef[@Name="MechCentipedeBase"]/lifeStages/li[2]/bodyGraphicData/shaderType</xpath>
	</li>
  </operations>
</Operation>

<Operation Class="PatchOperationSequence" MayRequire="Ludeon.RimWorld.Biotech">
  <operations>
	<li Class="PatchOperationRemove">
  		<xpath>Defs/PawnKindDef[defName="Mech_Scyther"]/lifeStages/li[1]/bodyGraphicData/shaderType</xpath>
	</li>
	<li Class="PatchOperationRemove">
  		<xpath>Defs/PawnKindDef[defName="Mech_Pikeman"]/lifeStages/li[1]/bodyGraphicData/shaderType</xpath>
	</li>
	<li Class="PatchOperationRemove">
  		<xpath>Defs/PawnKindDef[defName="Mech_Lancer"]/lifeStages/li[1]/bodyGraphicData/shaderType</xpath>
	</li>
	<li Class="PatchOperationRemove">
  		<xpath>Defs/PawnKindDef[defName="Mech_CentipedeBurner"]/lifeStages/li[1]/bodyGraphicData/shaderType</xpath>
	</li>
	<li Class="PatchOperationRemove">
  		<xpath>Defs/PawnKindDef[defName="Mech_CentipedeGunner"]/lifeStages/li[1]/bodyGraphicData/shaderType</xpath>
	</li>
	<li Class="PatchOperationRemove">
  		<xpath>Defs/PawnKindDef[@Name="MechCentipedeBase"]/lifeStages/li[1]/bodyGraphicData/shaderType</xpath>
	</li>
  </operations>
</Operation>
</Patch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant