You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Angry Birds 4.0 (PC): the power-ups are on. Its game_conf.lua leaves g_powerups_enabled off (the PC build had no shop); the engine switches it on, so the power-up manager loads with five of each power-up (AB_NOPOWERUPS=1 keeps them off).
Angry Birds 4.0 (PC): the in-game store opens. The shop buttons (the "+" of the power-up bar, the pause page, the level end, the Mighty Eagle) open the game's own power-up shop (menus/shop, the SHOP_NEW sheets of the PC data): the item groups with their counters, the bundles and single power-ups, the Mighty Eagle page, the tutorial button. The engine loads the game's store code (iap_new.lua, which the PC build only loads with hasIaps) and stands in for the store natives the mobile builds have (Payment.iapInitPaymentProviders, getIapProducts, iapBuyItem, iapRestoreItems, iapHasPaymentProvider, and isIapEnabled()). There is no payment: a purchase goes through at once and the items are given. As on the PC build (deviceModel "windows"), no prices are shown. AB_NOSHOP=1 leaves the store out.
Angry Birds 4.0 (PC) and Seasons 4.x: the debug keys of debugUtils.lua work (F frame rate, shift+D debug console, shift+X / shift+Z power-up rewards, shift+C store switch, ctrl+1..0 language, ctrl+F5 layout dump). They read cheatsEnabled from their own function, which the debug view did not reach.
Red's Mighty Feathers (Classic 3.x and 4.0): the forces of the vehicle parts push. The balloons' forceY, the fans' and rockets' forceRelative (up to targetVelocity) and the other per-step values (airResistance, frictionXRelative / YRelative, floatability) come from the block definitions and materials in blocks.lua; only objects flagged with setObjectParameter(name, 8, 1) got them. Every object that has them, in its own table, its definition or its material, gets them now.
Saves with playtime as a table no longer stop the older Classic games at the menu ("attempt to perform arithmetic on field 'playtime'", the retail games too). A save written that way by another version is read with that one field put back to a number (the total of the table); the rest of the progress is kept, and the file as it was is kept once as settings.lua.original.
Seasons 4.x: fillBelow of theme layers. A background or foreground layer with fillBelow = {r, g, b, a} fills the screen below its bottom edge in that colour (the deep sea under the front waves of the water themes, whose wobble opened gaps that showed the sky).
setObjectAlpha works again. It wrote a value the drawing no longer read; it now sets the same per-object transparency as setAlpha(a, name), and getObjectAlpha reads it back whichever one set it. The docs/SCRIPTING.md section is updated.
The Social server check says when the running server is an older copy. An older Social server (without the Friends login and wallet addresses) answered "not found", which the engine showed as "the Social server does not answer"; it now says that the server is too old and to start social-server\start.bat from the engine's folder.
extra_scripts.lua is split into one file per feature (extras/extra_scripts/: pop-ups, screen wipe, aiming aid, laser mod, restart, shape blocks, leave pop-up, level spawner, Social levels, Stella's abilities). extra_scripts.lua loads the files of its list in order; delete a line (or a file) to leave a feature out, add a file and its name to add one. The restart works without the screen wipe file.
Stella's abilities (10_stella_abilities.lua): the bird is no longer removed while an ability holds it still (the game removes a shot bird that has moved slower than 0.05 for a second: the ability keeps that clock full and the body awake); Dahlia's ghost goes through immovable blocks and stops only at the ground; Luca's scream wave reaches the end of its ray when the scream strikes (it was cut off at about two thirds).
The engine's own drawing in Lua (extras/extra_scripts/native_drawing/): the background and foreground, the bird trail and the aiming aid dots, each with the C++ rules and switching the engine's drawing off while it runs (checked pixel for pixel against the engine's drawing in Classic 1.6.2). New for them: the drawTrail and drawAim events, the trajectory.skip and aim.skip tuning switches, getAimingAidPoints(), and more fields in getThemeLayers.
--decrypt stops a decompile whose output passes 32 MB (unluac can loop while it writes; Classic 4.0's redbird_special.lua grew to 160 MB in the time limit and could fill a disk).
Angry Birds 4.0 (PC), Bad Piggies: no gap of sand under the sea. A foreground layer without a scale is drawn at scale 1 in Classic 4.0 and Seasons 4.x, as their exes do (it was 1.5, the value of the earlier games). The beach sand was drawn half as big again as the sea and foam, so when a wave rose the lower part of the sand showed under the water on every level of the first page.
Angry Birds 4.0 (PC), Surf and Turf: the rain falls as slanted streaks. In Classic 4.0 and Seasons 4.x a particle starts turned by its emitter's angle (a random value between minAngleEmitter and maxAngleEmitter) plus the angle of the call, as their exes do (Classic 4.0 0x443c0f, Seasons 4.x 0x4442d6); minAngle / maxAngle are not read for it. The rain of the third Surf and Turf page (theme15rain, emitter angle 120) took its turn from minAngle (0), so its drops lay flat; they now lean along their fall, as in the retail game. The rain drop of Seasons (P_WATER_1) is drawn leaning already and is not turned any further.
The Christmas tree slingshot of Angry Birds Friends 2.0.0 in Classic 1.6.2 and 1.6.3.1 (extras/extra_scripts/11_christmas_slingshot.lua, F6 puts it up or takes it down, christmasSlingshot.enabled = true for every level). It is built the way Friends builds it: six tree parts held by hinges and springs, the bird tied to the fifth part so the tree bends when the bird is pulled back, five baubles fired in a fan with every shot (they pass through everything for 0.2 seconds), 1.5 seconds to the next bird, Friends' own stretch, shot and breaking sounds. The pictures and sounds are copied from the Friends apk into a xmas_slingshot folder in the game's data folder (the file says which ones).
Documented: why Stella's feathers turn at odd angles in Seasons (the retail particle system uses the emitter angle as the starting rotation too; docs/STUBS.md).