Duke4.net Forums: Glitches with palette swapped sprites using TM TC - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Glitches with palette swapped sprites using TM TC  "possibly affecting other mods making extensive use of tilefromtexture"

User is offline   Phredreeke 

#1

A couple of days ago, Swordman on discord reported distorted sprites while playing the Total Meltdown TC, I decided to investigate it out of curiosity.
Posted Image
After a while I realised this happens when the user is impatient and press a key to skip the loading sequence. Problem solved? There was one issue though
Posted Image
This happens only when the panel is unlocked, and it happens even when the level textures are allowed to fully load. Switching renderers or using restartvid after unlocking will change it to the correct texture. More puzzling, key panels on other levels load normally. Then it hit me. Most levels have a blue keycard reader, Hollywood Holocaust has only the red one. I then tried to find other levels like that, and indeed, Incubator has only a yellow keycard reader and exhibits the same behavior.

(I forgot to take a screenshot, but the unlocked keycard reader looks exactly the same as the locked one anyway)

Bonus: Playing with filtered textures bypasses the glitch. So if you're impatient you can still play Total Meltdown without loading screens as long as you're willing to play like a chicken.
1

User is offline   Danukem 

  • Duke Plus Developer

#2

I know there were some recent commits addressing texture corruption issues so it's worth using the latest snapshot.
0

User is offline   Hendricks266 

  • Weaponized Autism

  #3

The TM mod uses a special tint flag on pals 5 and 9-25 where palswaps will always use the indexed version of a texture even if it is hightile. I implemented the flag in question specifically for it and I don't think anything else uses it. So it probably regressed by accident. Bisecting would be a big help.
1

User is offline   Phredreeke 

#4

10154 is the first build on synthesis with the glitch. It appears to still be present in latest build (10457)
1

User is offline   Hendricks266 

  • Weaponized Autism

  #5

Thanks for bisecting the issue. That is the same range as this report for Rednukem: https://github.com/n...lood/issues/756 I suspect they are related.
0

User is offline   Striker 

  • Auramancer

#6

Was a solution ever found/narrowed to a specific one commit?
0

User is offline   VGames 

#7

I’ve seen this with my mod too. Using upscaled sprites sometimes causes this with textures or sprites that use spritepal commands or palette settings via the map editor. If u turn on the night vision and then turn it off the problem goes away and the texture is fine and it uses the palette that’s been assigned to it too. Maybe this info will help.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options