Skip to content

Releases

4.12.0

Choose a tag to compare

@roileaf roileaf released this 25 Nov 08:02
  • A fire can be told how long to burn. With Fire spreads on, a burning prop charred after 3 rounds (grass after 2), about eighteen seconds out of combat, and the smoke stopped with it, so a room with a door or a window open cleared almost at once. Scene configuration → "Fires burn for (rounds)", under Fire spreads, now sets how many rounds a fire on that scene goes on burning and making smoke (up to 600; a round is six seconds out of combat, so 10 is a minute and 600 an hour, and the tracker's round in combat). Open doors and windows still let the smoke out, but the fire keeps feeding it until its time is up, then chars what it was burning as before. A longer fire burns where it is: it sets its neighbours alight exactly as far as a usual fire does, and no further. Left empty, nothing changes. Fires already burning when the number is set keep the time they were lit with.

4.11.1

Choose a tag to compare

@roileaf roileaf released this 25 Nov 07:22
  • A lasting Sequencer effect whose picture was lost no longer stops the map drawing. With Sequencer active, a lasting effect (an aura, a condition's effect) could be left holding a picture that had already been thrown away. Drawing it failed on every frame with "Cannot read properties of null (reading 'uvsFloat32')", and the whole canvas stopped with it. That effect is now left undrawn and the rest of the map carries on; the console names it once ("Animater | Sequencer effect not drawn"). What throws the picture away is not yet known: if you see that line, please report the file it names and what happened just before.

4.11.0

Choose a tag to compare

@roileaf roileaf released this 25 Nov 06:37
  • Things lifted from the map can break. A table, crate or barrel lifted out of the map's picture (Map painting → Decorate → Lift from map) never broke unless its material was set by hand in its Tile configuration, since its picture has no name to tell what it is made of. Two ways now:
    • Breaks, a new row beside "It stands" when lifting: Won't, Wood, Stone, Metal, Clay or Glass (Won't or Burns for a bush or a tree). The next thing lifted is made of that, and breaks like any breakable prop. The choice is remembered.
    • The region it stands in. A region with lifted things in it counts them on its Decorations heading ("3 lifted") and offers "Decorations can break" even with no decorations of its own. Turned on, the lifted things there break too, by the region's Material, Breaks as, Contents and the rest: as wood where Material is left on Automatic, a bush or a tree by burning. A thing given a material of its own, with Breaks or in its Tile configuration (including "Won't break"), keeps it. Turn the switch off, or move the thing out of the region, and it no longer breaks.
    • Both need the scene's Breakable props on, and the scene's Repair mends a broken lifted thing as it does any prop.

4.10.4

Choose a tag to compare

@roileaf roileaf released this 24 Nov 20:29
  • Tiles are no longer drawn twice, the second up and to the left. A tile that stands on the map as an object (Tile configuration → Animater → Sunlight on "Auto" or "Object") has its picture drawn again over its shadow. For a tile made before Foundry 14, or one whose picture's anchor is not its middle, that second picture was drawn half the tile's size up and to the left, and so were its shadows. It is now drawn on the tile. (#29)

4.10.3

Choose a tag to compare

@roileaf roileaf released this 24 Nov 17:11
  • A setting changed in Animater settings is no longer undone by Save Changes in Game Settings. Game Settings keeps every field as it was when the window opened and writes them all on Save Changes. With it open behind Animater's own settings window, a setting changed there (Animation quality set to Off, say) was written back to what it had been. An open Game Settings now follows the change. This reached everyone for "Animation quality (this device)", which is always listed there, and every "on my screen" setting where a settings-lock module lists them.
  • Less work each frame on a map with many tokens, most of all for a GM with many hidden ones. Measured on a scene of 84 tokens, 68 of them hidden, with nothing moving:
    • A token's size was asked of Foundry several times a token every frame (about 13,000 times a second there); it is now asked once and kept until the token's size or the grid changes (about 200 a second).
    • A token standing still that casts no shadow (hidden, prone, set to cast none, or with "Shadows under every token" off) is looked at once and then left alone until something about it changes. The movement effects' share of a frame fell by about a third on that scene.
    • Rats well outside what the screen shows, on no errand, take their steps one frame in six.
  • Creatures hidden from the players no longer frighten rats and other small animals on the GM's screen. The GM saw rats bolt from monsters nobody else could see; the players' screens never did.
  • api.skyCost(ms) for anyone measuring: what each part of Animater's ambient frame costs over that long, as [{ part, msPerFrame, worstMs }], worst first. Nothing is timed unless it is asked for. console.table(await game.modules.get("animater").api.skyCost(10000))

4.10.2

Choose a tag to compare

@roileaf roileaf released this 24 Nov 05:33
  • A creature on the floor stays there when it is struck. Any animation playing on a token stood a prone creature up for as long as it lasted. Reported from a D&D 5e table: a creature toppled prone, then its failed saving throw's stagger stood it up for a second and laid it down again. What is done to a creature where it is (a stagger, a shake, a recoil, bracing, cowering, being pressed, squashed or electrocuted) it now takes lying down. What it does itself (a lunge, a leap, a spin, a throw) still shows it on its feet for that, as before.
  • "Saving throw reactions" (on by default, beside "Damage reactions"). A creature's reaction to its own saving throw, shown in Activity as "Saving throw: Takes the brunt" and the like, had no switch: it is not a catalog entry, so there was nothing to find and turn off. Off, nothing moves for a save.

4.10.1

Choose a tag to compare

@roileaf roileaf released this 24 Nov 05:14
  • A burst of weather shows for everyone. In 4.10.0 api.weatherBurst showed only on the screen of the client that called it, so a module whose rule fires for the roller alone snowed for the roller alone. One call now shows it to everyone looking at that scene: the caller shows it and tells the other clients, and each shows it by its own settings ("Weather on the map", animation quality). Called on several clients at once, it is still one burst. here: true keeps it to the caller's screen.
  • "Players' rolls can bring a burst of weather" (Weather & seasons, on by default). A player's client may ask for a burst, as a dice module's rule does on a player's roll; off, only the GM's may. What is asked for is checked again by every client that shows it, so nothing longer than a minute or stronger than a full fall can be sent.

4.10.0

Choose a tag to compare

@roileaf roileaf released this 24 Nov 04:39
  • A burst of weather, for other modules to call. game.modules.get("animater").api.weatherBurst({ weather: "snow", strength: 0.4, ms: 30000 }) brings a short fall of weather over the map on the calling client's own screen, then lets it go: a dice set's natural 20 bringing half a minute of snow. Asked for by Things Got Dicey, a theme pack for Dicer.
    • It is laid over the scene's own weather: in the rain, the rain goes on and the snow falls with it. It eases in and out over three seconds.
    • Nothing is sent to the other clients and nothing is stored on the scene, so a player's client may call it (unlike api.moment, which stays the GM's). A module whose rules run on every client calls it on each, and each viewer sees it by their own settings.
    • weather is any of Animater's weathers with something falling or a fog ("snow", "rain", "hail", "ashfall", "fog", "thunderstorm", "sakura-bloom" and the rest); strength 0 to 1; ms from 2 to 60 seconds. The same weather asked for again while it runs carries it on to the later end, at the greater strength, and never doubles it; another weather takes its place.
    • It is heard (rain, hail and a blizzard by Animater's own weather sounds, at the viewer's Weather volume), rings the open water where it is rain, and a storm's burst flashes with its thunder where the viewer has lightning on. None of its bolts land on the map.
    • It leaves the ground dry, lays no snow and darkens nothing: the ground goes by the game clock, and a storm's dark is the scene's own darkness, which only a GM may change.
    • It returns what is running, { weather, strength, ms }, or null where it does not show: a weather it does not know, "Weather on the map" off for that viewer or that scene, an animation quality that leaves the weather out, or underground with nothing open to the sky.

4.9.2

Choose a tag to compare

@roileaf roileaf released this 24 Nov 04:07
  • A still scene costs less each frame. A second performance audit, of 4.9.1 on a map of eighty-four creatures and thirty-eight lights with nothing moving, found Animater doing two to three milliseconds of work a frame for things that had not changed. What it found, and what changed:
    • A world setting ("Carriers") was read from Foundry every frame. A setting never saved has no stored value, and Foundry looks for it among every stored setting in the world on each read: about 0.4 ms a frame on that world. It is now kept, as the other settings read each frame already were; so is the global weather.
    • The list of creatures on the scene was made three or more times a frame (for the rats, the caverns, the moths, the wildlife, the decorations). It is made once a frame.
    • A rat running along asked whether a wall stood in its way every frame. It now asks once for half a square ahead and runs that far on the answer; anything in that stretch and it asks about every step, as before, and stops where it did. Areas rats keep out of are still checked every frame.
    • A creature standing by a flickering light (a torch, a campfire) had its shadow drawn again every frame, since the shadow flickers with the flame. It is drawn again thirty times a second, whatever the frame rate; a creature moving, a light changing or a shadow still swinging round is drawn at once, as before.
    • The water's reflections looked at every creature and every light on the scene twenty times a second. They now look only when something by the water has changed (and once a second regardless).
  • A creature hidden from the players casts no shadow on the GM's screen. As it already took no light there. On a map where most creatures are hidden until met, their shadows were most of the shadows drawn.
  • More token looks are left out of Foundry's second drawing of each token. 4.9.1 left out the looks that only recolour the art; eight more do only that (washes, gradients, colour swaps, materials, veins, flattening, dots, old film) and are now left out too. A condition look built from a wash and a colour adjustment draws once a frame where it drew twice.

4.9.1

Choose a tag to compare

@roileaf roileaf released this 23 Nov 19:44
  • Token looks cost far fewer drawing passes. Every look on a token is drawn in a pass of its own, and Foundry draws each token twice a frame (once more to cut its outline), so a map of creatures by torchlight paid for all of it twice. A performance audit of a heavy scene counted about 152 extra passes a frame from Animater. Four things changed. "Creatures lit by their surroundings" is now one filter instead of two. Looks that only recolour the art (the lit look, tints, adjustments, bevels) are left out of Foundry's second, outline-only drawing; looks that change the outline (glows, tilts, dissolves) are still drawn both times. A token off the screen has its looks switched off until it comes back into view. And a token hidden from the players no longer takes the lit look on the GM's screen. Measured on eight lit tokens: 32 passes a frame before, 8 after. Thanks to the table that sent the audit.
  • The search for carriers no longer runs every frame. Wagons and boats were looked for among every token on the scene each frame; they are now looked for four times a second and only the ones found are drawn each frame.
  • FXMaster's weather is no longer read, followed or hidden. Animater used to cast cloud shadows from FXMaster's clouds, take its wind from them, flash for FXMaster's lightning, wet the ground for FXMaster's rain and snow, list FXMaster's effects in the Weather panel, and hide FXMaster's version of Calendaria's weather while "Weather on the map" drew its own. All of that is gone, with the work it did every frame. If you run Calendaria, FXMaster and "Weather on the map" together, both weathers now show at once: turn FXMaster's weather off. Rain and snow on the ground and on creatures now come from Foundry's scene weather or Animater's own only. The "FXMaster scene effect" stage in recipes is unchanged and still plays FXMaster's effects.