Updates
Yellow Highlighted changes may impact how previously created levels behave!
Orange Highlighted changes denote behaviour that may still persist despite our fixes. Please report back if you encouter these!
Patch 4 Hotfix (2021-04-30)
-
Engine
- Fix a long-standing bug where deallocated CaptureBuffer Lua objects could sometimes cause flicker.
-
NPCs
- Drybones: Fix a crash which could occur if you had timestop active, bopped a dry bones, and switched sections.
- Snake Block: Can no longer be eaten by Yoshi.
- Walking Rinka Gun: Fix a few bugs, most notable it mistakenly instantly killing things which didn't use to be the case.
- Foo: Clouds no longer exist forever, and no longer have the incorrect offset when set to face right.
- Misc: NPCs below ID 293 that featured light effects by default now correctly display their light effects.
- Monitors: Fixed a bug in monitors that allowed exceeding 100 coins
- Boohemoth: Fixed spinjump related jank
- Magikoopa Magic: No longer crashes the game when entering clear pipes.
-
Characters
- Broadsword: No longer gets stuck in clear pipe cannons.
-
Costumes
- Updated the SMW costume pack from MrDoubleA.
-
Launcher
-
Editor
- Fixed the logic of initial open/save paths while opening any file dialogs (in simple words: open SMBX2's worlds directory than data/PGE/worlds to not confuse users).
- Fixed the missing "modified" level file flag when the custom music path was changed.
- Physical environment zones now have the taller hit-border to make the box is selected by the mouse easier (made by the request to simplify the selection of them).
- Added the support for custom WOPL bank files at libADLMIDI synthesizer.
- Added the support for custom WOPN bank files at libOPNMIDI synthesizer.
- Added the support for the FluidSynth at MixerX library.
- Updated translations.
- Fixed the Calibrator's frame data compatibility with SMBX2 that requires all frames present in the calibration file.
-
Scripting
- Improved compatibility of lib3d's shaders with some computers.
- Fixed a corner-case bug in textplus for the case of a generated glDraw command having no verticies, which would error when the high quality upscaling is enabled. Only known to occur if the text printed only contains unprintable characters.
- Fixed some clipping problems in lib3d.
- Fixed a typo that made shader arguments for parallaxing backgrounds unusable.
- Particle emitters now have an isValid field to check if they are destroyed or not.
- Added Misc.coins() which can be called without arguments to query coin count, or called like Misc.coins(coinsToAdd, withSound) where "coinsToAdd" is a number of coins to add, and "withSound" being a boolean indicating whether to play the usual sound.
- Fixed a bug where passing a table to BGO.iterate would cause an error.
Patch 4 (2021-04-08)
-
Engine
- Much better upscaling when using large window sizes or fullscreen.
- Better window resizing behaviour. Preserves aspect ratio, and snaps to native resolution when within 5%. Hold the Ctrl key to allow free resizing without preserved aspect ratio.
- Fix rare graphical glitch from capture buffer deallocation.
- Reduce tendency of the window to be unresponsive during initial loading.
- Fix a crash that can occur in some corner case instances of saving while a character with an ID > 10
-
Editor
- Switched to using a 64-bit build of the editor.
- Some assorted fixes.
-
Meta
- Fixed un-setting the waitinginthesky cheat.
-
NPCs
- Added a new NPC type: Spawners. Spawner-type NPCs trigger a behaviour when coming onscreen.
- Added: Boohemoth Spawner. Spawns a Boohemoth travelling in a chosen direction. Causes an autoscrolling behaviour. Currently only singleplayer compatible.
- Added: Cheep Cheep Spawner. Automatically generates cheep cheeps to spawn at the screen edges.
- Added: Bullet Bill Spawner. Automatically generates bullet bills to spawn at the screen edges.
- Added: Coin Snake NPC from Super Mario World.
- Baby Yoshi (Cyan, Pink): The spawned NPC is now spawned to the "Spawned NPCs" layer.
- Berries: Rewards are now spawned to the "Spawned NPCs" layer.
- Big Goombas (Splitters): NPCs spawned after splitting now inherit the "No More Objects In Layer" event.
- Billy Gun: When using Extra Settings, Bullet Bills are now spawned to the "Spawned NPCs" layer.
- Boo Circle: Boo Circles propagate their "Death" and "No More Objects In Layer" events to the spawned Boos on the ring.
- Bullet Bill Blaster: When using Extra Settings, Bullet Bills are now spawned to the "Spawned NPCs" layer.
- Dino Rhino: When spawning the Dino Torch, the death event is cancelled and instead given to the Dino Torch.
- Dino Torch: Now inherits the Rhino's "No More Objects In Layer" event.
- Fire Snake: Trails now inherit the "No More Objects In Layer" event.
- Fry Guy: When Fry Guy is defeated and splits into 4, the 4 Sizzle Guys now inherit the Fry Guy's "No More Objects in Layer" event. The "Death" event can still be used to poll for the main Guy's death.
- Megashroom: Fixed a bug where Megashrooms landing on conveyors or moving NPCs would cause a crash from speed overflow.
- Mutant Vines: Fixed a bug where mutant vines would attach to semisolid player and NPC filter blocks.
- Rocky Wrench: Wrenches are now spawned to the "Spawned NPCs" layer.
- Rocky Wrench: Wrenches now follow the Rocky Wrench while held.
- Rotating Bill Blaster: The ID of the fired NPC is now configurable in-editor.
- Rotating Bill Blaster Base: Fixed the rotation animation.
- Splittin' Chuck: Split Chucks are now spawned to the original Chuck's layer and inherit the "No More Objects In Layer" event.
- Wiggler: Trails now inherit the "No More Objects In Layer" event.
-
NPC Config
- Diggin' Chuck: projectileid - Allows the ID of the spawned rock to be adjusted.
- Cloud Drops: range - Allows the travelling distance to be adjusted.
- Lineguide properties can now be set in npc-n.txt files.
-
Scripting
- Level.winState() is renamed to Level.endState() to match the LEVEL_END_STATE_* enum values. The old function name still works but is no longer preferred.
- Level.exit(winType) now clears checkpoint state when existing when the current winType is > 0
- Added Level.finish(endState, delayed), which finishes a level using the normal level end process associated with a particular LEVEL_END_STATE_* enum. This may cause saving the game in some cases. Both arguments are optional. If no endState is provided, one that is already set will be used. If 'delayed' is specified as true, the full end state animation will play out, instead of skipping to the end.
- Added Level.winTypeToEndState(winType) for mapping LEVEL_WIN_TYPE_* enums to LEVEL_END_STATE_* enums
- Added Level.endStateToWinType(endState) for mapping LEVEL_END_STATE_* enums to LEVEL_WIN_TYPE_* enums
- Graphics.glDraw now supports a 'linearFiltered' option, causing the specified texture to be handled with bilinear filtering.
- Handycam zoom now uses a cleaner upscaling method that won't cause wobble/shimmer of row/column sizes.
- Added getEffectSpawners(id) and getEffectObjects(id) functions to bettereffects.lua
- Fix timer.toggle(newValue) when a new value is specified)
- Various small lib3d and transform bugfixes/enhancements.
- Added setTarget, getTarget, and clearScene to map3d
- Fixed a bug in Routine that caused aborted coroutines to leak memory.
- The textplus img tag now accepts optional height/width/maxWidth/maxHeight fields. By default values are a number of pixels. Values can also be specified as a % of maxWidth of the layout (defaulting to 800 when no maximum width is set). In addition, values may be specified in 'em', which is the height of a line with current font and yscale. Aspect ratio will be preserved unless both height/width are given at the same time.
- The textplus img tag now accepts a "smooth=true" field to turn on linear filtering for an image.
- Textplus can now use a cleaner upscaling method. This is used by default when printing at a non-integer location, with non-integer font scales, or with a 'wave' effect. You can force this enhanced upscaling by calling textplus.render with a smooth=true argument, and you can force it to be disabled with a smooth=false argument.
- Minor fixes to Block class handling block invalidation of deleted blocks.
- Fixed some small SaveData/GameData bugs and also allow ipairs/pairs to iterate properly on SaveData/GameData tables
- Fixed blockutils.getBlockSection which was poorly implemented and didn't do what it suggested. blockutils.getClosestPlayerSection now does what that used to, and a more robust getBlockSection now exists that can operate even when a player is not in the block's section.
Patch 3 Hotfix (2020-09-07)
-
Meta
- Fix bug preventing Mario Challenge from working properly.
- Fixed a bug where the camera would be locked in place during frame advance mode.
- Fix some cheats causing errors on the overworld.
- Add some shader object caching, to reduce excess shaders being generated in situations like darkness enabled on multiple sections.
- Improved compatibility of 'gameboy dither' shader effect with older graphics cards.
-
NPCs
- Rocky Wrench: Fixed a crash when the NPC gets frozen while holding a wrench.
- Megashroom: Fix bug where it would break warps.
- Hidden Container: Re-added invisible image to take care of an inconsistency introduced in Patch 2.
-
Editor
- Level properties: The timer can now optionally trigger a 'Level Timer - End' event instead of killing players.
- Updated editor update scripts
-
Scripting
- Handycam now renders later, fixing a bug where parallaxing backgrounds would incorrectly render while handycam zoom is enabled.
- Added constants for score, mounts, forced player state, level end state, level win type, boot colors and yoshi colors. They are documented in the "Constants" section of the documentation. https://docs.codehaus.moe/
- Added aliases HARM_TYPE_VANISH and POWERUP_TANOOKI for mislabeled constants HARM_TYPE_OFFSCREEN and POWERUP_TANOOKIE.
- Added alias Defines.cheat_flamethrower for Defines.cheat_flamerthrower.
- Add Misc.exitEngine()
- Allow passing level win type to Level.exit()
Patch 3 (2020-08-31)
-
Engine
- Reduce risk of audio related errors on some systems with automatic fallback through supported audio driver backends.
- Add a warning when loading a level that exceeds limits, or (if in test mode) approach the limits.
- Fix a path validation security bug.
- Sound file replacements will now be loaded even if the filetype doesn't match what's written in sounds.ini (though will prioritize files that do match the given filetype).
- Filenames given in sounds.ini files no longer require filetype extensions to be explicitly declared.
- Should no longer crash when the worlds folder contains >100 episodes.
- Disabled 38A feature warning for now because it has false alarms more often than it helped. Format warning is still present.
-
Blocks
- Added: Non-solid Star Block. A new block for Kirby Bomb Block chain reactions. It can be used to continue chain reactions without impeding on the movement of enemies and players.
- Reworked: Sloped conveyors and semisolid conveyors are now less glitchy. Removed their "downwards" and "needscheck" block config flags and slightly increased speed.
- Kirby Bomb Blocks: The chain reaction timer is now configurable through chainreaction.lua
- Link switch blocks: Fix a long-standing 1.3 oversight where they did not 'bump' when activated.
- Shared Storage Blocks: Fixed a bug where shared storage blocks would sometimes display empty when filled.
- Block frame/timer now resets upon level load, so leftover frame changes from Lua do not persist untentionally.
-
Block Config
- Added ediblebyvine: Causes the block to be edible by mutant vines.
-
NPCs
- Added: Frightlight. An enemy similar in behaviour to the Big Boo, with a light source attached.
- Arrow Lifts: Fixed a bug that caused global extra settings to error when they spawned ghost platforms.
- Billy Gun: New editor config: Billy Guns now support some level of customisation over what they fire and how frequently.
- Bullet Bill Blaster: New editor config: Bullet Bill Blasters now support some level of customisation over what they fire and how frequently.
- Buster Beetles: Fixed a bug where npcs they are picking up would be stuck friendly if the beetle was killed during the pick up animation.
- Donut Block: Improved standing detection.
- Monty Moles: Fixed a bug where Monty Moles would always display the "on ground" telegraph animation if placed anywhere on a sizable.
- Mutant Vines: Fixed a bug where they would eat every block regardless of settings.
- Snake Blocks: Now stop moving when on hidden layers, and do not continue to spawn or eat blocks.
- Reznor Fireballs: Now freely pick an appropriate direction when spawned with direction 0.
- Rope: Fixed a bug where players were falling off ropes if holding on at the very top.
- Shells: New editor config: Shells can now be placed already spinning.
- Star Coins: Fixed Star Coins not saving when exiting via offscreen exit or warp exit.
- Stretch: Fixed the "Reappear" flag for Stretches not working.
- Uncle Broadsword's Boomerang: No longer collides with friendly NPCs.
- Fixed bug in layer attachment chaining that was introduced by the patch to increase the layer limit in beta 4.
- Fixed a bug where most new NPCs which move with layers would desync from NPC-attached moving layers, in conditions where standard moving layers pause (NPC-attached moving layers never pause, and many things were not accounting for this properly).
- Fixed a bug where many new NPCs would not account for the speed config in their npc.txt files properly (some may still not respond correctly).
-
NPC Config
- Added collideswhenattached: Causes a NPC to not lose collision with blocks when attached to line guides. This reverts to more pre-patch2 behaviour.
- Added luahandlesspeed: Causes built-in SMBX code to ignore the 'speed' config, in favor of letting an NPC's Lua code handle it.
- Fixed a bug where the staticdirection NPC config field would not be reset to defaults between loads correctly.
- Added eatsblocks to mutant vine heads: Prevents the consumption of semisolids when false. True by default.
-
Test Mode
- Fixed a bug where the character display would sometimes render mounts incorrectly.
- The console can now have its font size changed with Page Up/Page Sown. Alt+Home can reset the font size to default.
- Added Frame Advance menu to the testing menu.
-
Characters
- Mega Man can no longer pull up friendly or hidden patches of grass by sliding.
- Wario can no longer initiate a ground pound while ducking, preventing a very easy to execute glitch.
-
Mario Challenge
- Offscreen exits and warp exits now count as exits.
-
Editor
- Phantos now use the NPC selector window to select their target ID.
- The item search now has a "select all" button as well as "current section only" and "search in selection group" options.
- Improvements to unused resources clean-up tool heuristics.
- Added support for "npcsOrCoins" type itemSelect fields in extra settings.
-
Darkness
- Fixed a bug where lights attached to objects would stay forever if the object was transformed to a new ID using Block:transform or NPC:transform.
- Fixed a bug where darkness regions with boundary areas would be cropped out incorrectly in certain circumstances.
-
Fonts
- Improved spacing on the textplus game title fonts.
-
World Map
- Fixed a bug where the second player would not appear on the HUD in 2 player mode.
- Fixed a bug where character selection wouldn't work if the player was set to an invalid character.
- World map character selection can now cope with multiple instances of the same character.
- Fixed a bug where SMBX2 characters could not be selected on the world map, even if no character filter was applied.
-
Scripting
- Fixed a bug when raycasting against Rect Colliders, which caused the returned normals to be reversed.
- Graphics.drawBox, Graphics.drawScreen, and Graphics.drawCircle now support sourceX, sourceY, sourceWidth, and sourceHeight arguments.
- Graphics.drawBox and Graphics.drawCircle now support a rotation argument, measured in degrees. Graphics.drawBox also supports a centered argument, as a boolean.
- Improved appearance of textplus font 5.
- Added textplus font 9 (a 6px monospaced font).
- Added pairs support for Player.rawKeys.
- Rename layer.moving to layer.pauseDuringEffect which more accurately represents it's purpose. The field name is still accessible but deprecated.
- Add layer:isPaused() which is like Layer.isPaused() except for a specific layer, because not all layer movement is paused by effects strictly speaking.
- Fixed effect speed overrides. Added new variables for spawnerSpeedX and spawnerSpeedY if you want to move the effect spawner returned from Effect.spawn independently from the spawned effects. (for example for a moving effect that spawns debris over time)
- Fixed a bug in Particles where the named argument versions of emitter:draw and ribbon:draw would cause an error.
- Lib3d now contains a lib3d.macro table, which contains a set of useful macro constants when building materials (for example, lib3d.macro.ALPHA_CUTOFF).
- Fixed a bug in Lib3d where supplying a file path directly to a mesh would fail.
- Fixed a bug in Lib3d where certain .obj files would silenty fail to parse if they contained extra whitespace.
- Misc.resolveSoundFile will now prioritize the given filetype if one was passed in.
- Player:render now correctly draws to render targets if the player is Mega.
- Fix bug introduced by Patch 2 which prevented NPC() and Block() constructors from working in npc-n.lua and block-n.lua files.
- Fixed some bugs with achievements that prevented their locked icons from displaying correctly.
- Added Section.musicPath, allowing easier access to a sections custom music path.
- Added Section.music, which is the same as musicPath if custom music is playing, and otherwise equal to the music id number.
- Add layerSpeedX/Y and extraSpeedX/Y fields to blocks, which can see the speed assigned by layer movement, and add an extra speed component which will be summed with that.
- Fix bug where Misc.episodePath() could return the wrong value in a few scenarios. Most notably returning to the intro screen.
- Added lightSource field to BGOs/Blocks/NPCs, which accesses the objects's light source (if it has one).
- Adjusting block/npc/bgo config for lightoffsetx/y on the fly now updates light sources.
Patch 2 Hotfix (2020-05-14)
-
Engine
- Tweak GIF recorder frame skipping to be more sensible for modified engine speed.
- Improve warning when trying to load 38A level format. Also fix a case where a warp "enter event" string being set to [None] in .lvlx would falsely trip a warning.
- Fix some bugs (crash or coins not turning back to blocks) related to p-switch state ending.
-
Editor
- Include some translation updates for the editor.
-
Test Mode
- Test mode console commands are now saved between level tests, so you can repeat console commands from previous tests by using the arrow keys.
-
Costumes
- Fixed a bug that caused the SMW costumes to not function correctly in multiplayer.
-
Darkness
- Fixed a bug where Darkness would produce a warning when Blocks or BGOs changed their light settings via .txt files.
-
Scripting
- Added onBeatStateChange event, that runs when beat blocks switch states.
- Fixed a bug which caused the noblockcollision extended NPC field to not properly be tracked as NPCs get rearranged.
- Fixed a corner case where calling Misc.pause() from onCameraUpdate could cause one run of onDraw to be skipped after unpausing.
- Add an optional boolean "atFrameEnd" argument to Misc.pause() to allow a pause that is deferred to end of frame as that can give more consistent results in some cases.
- Fixed clearing of the "levelExitType" value passed to onExitLevel so it's always 0 when you don't beat the level even when restarting in test mode.
Patch 2 (2020-05-12)
-
Meta
- Fixed a bug where, when testing, lvlx file features randomly went missing.
- Eliminate a risk of alt-enter potentially causing a "form can't be moved or sized" error message.
- Fixed a bug where LunaTester would fail to load on some computers.
- The test mode pause menu now acts a little more sensible as far responding to pause button controls.
- Improved window focus behaviour for test mode.
- Dragging level files to LunaLoader.exe (or passing as a command line argument) now runs them in test mode.
- Dragging world files to LunaLoader.exe (or passing as a command line argument) now runs them.
- Fixed a bug where level-wide extra settings could carry over to a subsequently loaded level that had none.
- .ini and .txt files now support comments by starting lines with either ; or #.
- Fix test mode pause menu when player clone cheats are active ("player.rawKeys" was not reporting correctly in this case)
- Sound effects can now be replaced by drop-in regardless of their file type.
- The engine will now try to give proper errors for unsupported installation paths or episode paths, instead of crashing.
- Unsupported episode folders in the worlds folder no longer crashes the engine.
-
Launcher
- Fixed a bug where episodes with paths containing a period would not be correctly displayed in the launcher.
- Fixed a problem where the launcher could not distinguish episode of the same name when passing information to the engine for which to load
-
Controllers
- When a controller is recognized as a gamepad with known buttons, still allow unknown buttons to be used (Allows touchpad button on PS4 controllers to be usable)
- Allow 32 button indicies to be usable (up from 15)
- Add support for loading a "gamecontrollerdb.txt" file for supporting controllers where the built-in configuration is insufficiently flexible.
- Fixed a mistake that caused controller input to be delayed by 1 frame (could also cause issues with overworld warps)
- Added luna.ini configuration options to allow disabling controller battery reporting or rumble
- Add support for using "hat 0" as a d-pad for unrecognized controller types, which should improve out-of-the-box controller compatibility.
-
Blocks
- Added: Shared storage blocks for mounts and powerups (Misc -> Special)
- Added: Slopes and semisolid for NPC filter block (Misc -> NPC Filter)
- Added: Solid and semisolid passthrough blocks that let any player character through.
- Reserve powerup blocks will no longer crash the game when empty.
- Fixed a bug with synced switches.
- Fixed a crash when a nitro switch was triggered by an exploding nitro block.
- Make the NPC Pass-Through block less buggy when interacting with the player in some situations, such as when on a moving layer. (It has been switched from using "passthrough" whilst trying to recreate player collisions, to using the new "npcfilter" block config.)
- Fixed blocks spawned with Lua not having default extra-settings set properly
-
Block Config
- "playerfilter" block config flag is now configurable.
- "playerfilter" value of -1 creates a player block that lets any player through.
- Added "npcfilter" block config flag, which if set to -1 allows any NPC through, and any other non-zero value lets an NPC of the specified ID through.
-
NPCs
- Added a spot light source NPC.
- "Source"-NPCs like the light source NPC now have more precise grid snapping in the editor.
- Intangible NPCs no longer destroy Nitros.
- NPCs will no longer die when moving between moving ground layers. The fix to this SMBX 1.3 glitch can be disabled with "Misc.SetNPCDownwardClipFix(false)".
- Smacked some more Wiggler crashes.
- Stretches will now properly move down to the next viable ground when they find themselves stuck in midair.
- Grabbing a megashroom while an NPC is held no longer crashes.
- When loading .lvl files, NPCs are be shifted up by 0.01px to maintain compatibility with SMBX 1.3's level loading.
- Tantrunts now correctly bounce off walls and will not bounce off the top of slopes.
- Flurries now correctly bounce off walls and will not bounce off the top of slopes.
- Snake blocks will no longer cause random blocks to disappear when a P-switch is activated.
- Switch Platform generators no longer cause an error.
- NPCs attached to line guides are no longer affected by block/npc collision, line guide attached NPCs to coexist better.
- Fix handling default special data for some NPCs when reading very very old .lvl files.
- Eeries now have nogravity set again, like was the case before beta 4, which can affect corner case interactions with Lua.
- Score combos from NPCs killed by an explosion should be fixed, as well as relative order of explosion effect to any spawned score effects.
- Fixed Fire Snakes crashing occasionally.
- Fixed Skewers failing to extend at speeds of 8 or less.
- Fixed Torpedo Ted spawners crashing when grabbed.
- Fixed a bug where Reznor Fire aimed at the wrong place.
- Blocks can now be registered (by ID) for mutant vine heads to eat.