I'm working on my first mod, and I've hit a minor but weird issue.
I've got a few schools of fish on some of the levels. They spawn normally when I start a level, but I've found that if I eat them in beast form, when they respawn they come back invisible. At first I thought maybe beast form prevented them from respawning if I ate them, but then, while fighting with a monster, I lunged through the area where a school of fish had been, and it triggered a bunch of the whispy green lights that flash when you eat a fish (and my health bar ramped up like I'd just charged through half a dozen edible fish, even though there was nothing visible). So I went to a safer map and tested it. Same thing happens anywhere I eat fish in my mod.
My background graphics are in the right layer, so it's not like they're just hidden behind it. All I can think of is that I'm missing either some line of code, or some whole script involving fishes that I should have copied into my mod. I'm not aware of any such script that's needed, though.
Here's what I am using to call up the fish in the first place, in the map.xml files:
<SchoolFish x="4376" y="6058" id="1" num="30" range="400" maxSpeed="80" layer="8" gfx="Fish-0011" />
There's a few variations in that line of code from map to map, but they're all basically set up like that, and that line in particular generates a school that's in any easy place for me to locate and eat.