Skip to content

LunaCore 0.12.0

Choose a tag to compare

@STBrian STBrian released this 10 Aug 03:22
· 178 commits to main since this release

Changelog

  • Added mods system (check examples/mods)
  • LunaCore is now splitted into LunaCoreRuntime and LunaCoreAPI. Runtime contains low level functionality and other essential things, API contains more complex and user-friendly functionality. API works as a mod so users can decide to not use it
  • Added Core.getTitleId and Core.getModpath
  • Added custom crash handler
  • Added OnGameLoad, OnGameItemsRegister, OnGameItemsRegisterTexture, OnGameCreativeItemsRegister events to Game.Event module
  • Functions for events OnKeyPressed, OnKeyReleased and OnKeyDown now can take the keycode value as first argument
  • Added instance GameItem that allows to handle some items functions. Methods: setTexture. Fields: StackSize, ID, NameID, DescriptionID
  • Added Game.Items.registerItem, Game.Items.getCreativePosition, Game.Items.registerCreativeItem, Game.Items.findItemByName and Game.Items.findItemByID
  • Added traceback when a script fails to load
  • Removed Games.Items.findItemIDByName and Games.Items.findItemNameByID (use findItemByName or findItemByID to get an item; to get ID or name use the fields ID or NameID of the result of the functions)
  • Removed fields ItemID and ItemName from InventorySlot instance and added field Item which will be either a GameIteminstance or nil
  • Removed preloaded json module, moved to API
  • Removed Bits module due to inaccuracy, same functionality can be found in the API
  • Fix: dofile function to use current script environment
  • Fix: Async.wait function
  • Fix: attempt to call a nil value when an Async task ended successfully
  • Fix: Create scripts folder if it doesn't already exists when loading script from network
  • Fix: File handler seek method
  • Fix: File size truncating when writing mid-file
  • Improved Core.Filesystem functions
  • Improved Game.LocalPlayer.Inventory module
  • Improved stability

Known bugs

If you want to report a bug and you are using an emulator, please check first if the bug also happens on a real console as LunaCore can have a different behavior on emulator
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