Skip to content

LunaCore 0.13.0

Choose a tag to compare

@STBrian STBrian released this 13 Oct 04:07
· 156 commits to main since this release

Warning: Breaking changes

Changelog

  • Moved Game.Event to Core.Event
  • Events have been moved from the Event module, now events are grouped into submodules according to their functionality
  • Moved event OnKeyPressed to Game.Gamepad.OnKeyPressed
  • Moved event OnKeyDown to Game.Gamepad.OnKeyDown
  • Moved event OnKeyReleased to Game.Gamepad.OnKeyReleased
  • Moved event OnKeyReleased to Game.Gamepad.OnKeyReleased
  • Moved event OnGameRegisterItems to Game.Items.OnRegisterItems
  • Moved event OnGameRegisterItemsTextures to Game.Items.OnRegisterItemsTextures
  • Moved event OnGameRegisterCreativeItems to Game.Items.OnRegisterCreativeItems
  • Added Memory signed variants functions
  • Write memory functions for unsigned values now will write the raw data if a negative value is passed instead of rounding it to 0
  • Added Core.Memory.malloc and Core.Memory.free to allocate raw memory for advanced use
  • Added Core.Memory.call function that allows to define a C function and call it if its offset is known (check examples)
  • Added Core._VERSION that tells the current version of the core in a formated string MAJ.MIN.PAT
  • Added Game.LocalPlayer.Position.add, Game.LocalPlayer.Velocity.add functions
  • Fixed Game.LocalPlayer.Position.get, Game.LocalPlayer.Velocity.get functions, now they will return 3 values instead of just one
  • Globals Game and Core should now be more protected from being overwritten
  • Added option to the plugin menu to toggle Lua memory usage display information, now memory usage will be hidden by default every time you start the game

Note: Working on the repo wiki

Known bugs

High: May break scripts or crash the game
Mid: Can break scripts logic or have unwanted behavior
Low: Doesn't break scripts logic but can have unwanted behavior

  • Mid: Sometimes present.Game.LocalPlayer.CurrentHunger offset can change breaking functionality, changing the world can fix it
  • Low: Always present. Changing a block for an item (or vice versa) bugs the item render in hand
  • Mid: Sometimes present. Game.LocalPlayer.Camera.FOV offset can change breaking some functionality
  • Mid: On some consoles the plugin may not detect the buttons ZL and ZR. This does not affect the game, only the scripting system