deling icon indicating copy to clipboard operation
deling copied to clipboard

crtower3 Parameter 255 missing

Open Sebanisu opened this issue 4 years ago • 3 comments

ctrtower3 keeps the flame animation in palette 8, parameter 255, with 11 states. parameter 255 missing: image

Here's a snap of an app I'm working on. I was trying to find the torch animation: image

image

I'm still alittle confused to where this flame is animated in the scripts.

Sebanisu avatar Oct 05 '21 16:10 Sebanisu

Here is a dump of tiles from the map: crtower3.map.xlsx

Sebanisu avatar Oct 05 '21 16:10 Sebanisu

For me the parameter 255 does not contains states, but I was maybe mistaken :)

myst6re avatar Oct 06 '21 07:10 myst6re

I think this isn't that common. In OpenVIII I was also filtering by 0xFF. Yesterday I tried to alter the filter by first scanning parameter 255 with a state greater than 1 and collecting what palette it was using.

var palettes_animating = _quads
  .Where(x => x.AnimationID == 0xFF && x.AnimationState != 0)
  .Select(x => x.PaletteID).Distinct().ToList();

When scanning for parameters and states also adding parameter 255 if the palette was detected.

            _animations = _quads.Where(x => x.AnimationID != 0xFF 
                                 || (x.AnimationID == 0xFF && palettes_animating.Contains(x.PaletteID)))
                .Select(x => x.AnimationID)
                .Distinct()
                .ToDictionary(x => x, x => _quads
                .Where(y => y.AnimationID == x && (x != 0xFF 
                                 || (x == 0xFF && palettes_animating.Contains(y.PaletteID))))
                .OrderBy(y => y.AnimationState)
                .ToList());
            _animations.ForEach(x => x.Value.Where(y => y.AnimationState != 0).ForEach(w => w.Hide()));

Though I didn't spend much time on it. The flame started showing up but it wasn't bug free (skipped a frame or something else). For some reason the flame's z axis is behind the sky. I haven't seen it in game in so long I wonder what it supposed to look like.

Sebanisu avatar Oct 06 '21 12:10 Sebanisu