Script sort of works like this:
- Floor is 0fcomp1n, animated 1n-4n
- Something Happens
- Script uses changefloor(n,"0fcomp0n"); // turned off
- Something Else Happens
- Script uses changefloor(n,"0fcomp1n"); // back on
- ZDoom says "Unknown texture: 0fcomp1n"

Error message is from FTextureManager::GetTexture. The hash routine doesn't find the texture on the first hit, or it isn't of the right type, or something. Hash returns 65535 so that's the only test. I imagine it finds it but doesn't think it's the right texture type.
The only oddity might be that this is an animated flat that is subsequently used in scripting to change the floor. I am using a Boom SWANTBLS file to create SWITCHES and ANIMATED lumps, not ANIMDEFS, if that makes a difference.
I could go find the docs on ANIMDEFS (help?) and convert my stuff to that, but I think Boom compatibility is still desired (and for that matter, ANIMDEFS might not work either--don't know yet).