Thank you for visiting SotAwiki, a Shroud of the Avatar Wiki Encyclopedia. If you see any information that is outdated, please take the time to update it, or if you prefer, leave a message for other editors. This community wiki is for the benefit of all Avatars!

Community:LibSotA

From Shroud of the Avatar Wiki - SotA
Jump to navigation Jump to search

libsota is a helper library in Lua for Shroud of the Avatar. It was created by CatweazleX, with additional feedback, examples, and recommendations from the community.

libsota was made to help other to create their own mods for Shroud. It contains some workarounds to take away some headache from working with the Shroud API. libsota is object oriented and provides events and some additional data produced from data that is coming from Shroud API. It does data polling and generate additional events from them and caches these data, so that calls to the client are reduced. All the mods that are using libsota sharing the data already retrieved.

It is also carefully with callbacks coming from the Shroud API that may produce lag on the client or may causes trouble with user input or system messages. Some counter measures are taken to not block/hindering the player from playing the game because of LUA.

libsota is still in development and when finished it is made from 3 files:
- libsota.lua - the core library interacting directly with the Shroud API
- libsota.util.lua - helper functions for the global namespace; procedure style
- libsota.ui.lua - UI controls like windows, labels, window manager, images, buttons, etc

References[edit]