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

"Avali minigun turret" has invalid texture #97

Open
leftonbo opened this issue Aug 21, 2022 · 0 comments
Open

"Avali minigun turret" has invalid texture #97

leftonbo opened this issue Aug 21, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@leftonbo
Copy link

Describe the bug

Building "Avali minigun turret" has invalid texture and emits error from its placement.

Exception in UIRootUpdate: System.ArgumentException: Illegal characters in path.
  at System.IO.Path.Combine (System.String path1, System.String path2) [0x00057] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at Verse.ContentFinder`1[T].Get (System.String itemPath, System.Boolean reportFailure) [0x00150] in <81af9f8a18324e17b286924a43555a7c>:0 
  at Verse.Graphic_Single.Init (Verse.GraphicRequest req) [0x00050] in <81af9f8a18324e17b286924a43555a7c>:0 
  at Verse.GraphicDatabase.GetInner[T] (Verse.GraphicRequest req) [0x00072] in <81af9f8a18324e17b286924a43555a7c>:0 
  at Verse.GraphicDatabase.Get[T] (System.String path, UnityEngine.Shader shader, UnityEngine.Vector2 drawSize, UnityEngine.Color color) [0x0001c] in <81af9f8a18324e17b286924a43555a7c>:0 
  at RimWorld.PlaceWorker_TurretTop.DrawGhost (Verse.ThingDef def, Verse.IntVec3 loc, Verse.Rot4 rot, UnityEngine.Color ghostCol, Verse.Thing thing) [0x0003a] in <81af9f8a18324e17b286924a43555a7c>:0 
  at (wrapper dynamic-method) Verse.GhostDrawer.Verse.GhostDrawer.DrawGhostThing_Patch0(Verse.IntVec3,Verse.Rot4,Verse.ThingDef,Verse.Graphic,UnityEngine.Color,Verse.AltitudeLayer,Verse.Thing,bool,Verse.ThingDef)
  at RimWorld.Designator_Place.DrawGhost (UnityEngine.Color ghostCol) [0x00033] in <81af9f8a18324e17b286924a43555a7c>:0 
  at RimWorld.Designator_Place.SelectedUpdate () [0x0006b] in <81af9f8a18324e17b286924a43555a7c>:0 
  at (wrapper dynamic-method) RimWorld.Designator_Build.RimWorld.Designator_Build.SelectedUpdate_Patch2(RimWorld.Designator_Build)
  at Verse.DesignatorManager.DesignatorManagerUpdate () [0x00013] in <81af9f8a18324e17b286924a43555a7c>:0 
  at (wrapper dynamic-method) RimWorld.MapInterface.RimWorld.MapInterface.MapInterfaceUpdate_Patch1(RimWorld.MapInterface)
  at RimWorld.UIRoot_Play.UIRootUpdate () [0x00015] in <81af9f8a18324e17b286924a43555a7c>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string)
RimWorld.UIRoot_Play:UIRootUpdate ()
(wrapper dynamic-method) Verse.Root:Verse.Root.Update_Patch1 (Verse.Root)
Verse.Root_Play:Update ()

To Reproduce

  • Build "Avali minigun turret".
  • See the appearance of its building.

Expected behavior

Expected

  • "Avali minigun turret" shows with the correct texture.

Actual

  • "Avali minigun turret" shows with error texture, which is pink square.

20220821161235_1trim

Versions:

  • Game version: 1.3.3389
  • Mod version: Eisu 1.3.0

Suggested fix

There is unexpected tabs and new lines at <texPath> in TurretDefs.xml (line: 281).

      <texPath>RimValiFFA
	  /Buildings/Turrets/Avali_Turret_Brrt</texPath>

This should be:

      <texPath>RimValiFFA/Buildings/Turrets/Avali_Turret_Brrt</texPath>
@leftonbo leftonbo added the bug Something isn't working label Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant