Skip to content

KH2FM-Mods-equations19/KH2-Lua-Library

 
 

Repository files navigation

KH2-Lua-Library

A library of Lua code that can be imported by Kingdom Hearts 2 Lua scripts.

Library Philosophy

One of the most apparent benefits to using a Lua Library for KH2 is that Lua scripts correctly utilizing the library shouldn't have to be individually updated after the game receives a patch.

For example, let's say we have memory addresses collected in the library for each game version that is managed and updated by the community. After the game receives a patch, all the library needs to do is update its collection of addresses and values. Once the library is updated, all a user needs to do is get the updated library files and all Lua scripts should work again.

A well-organized/documented library also makes it easier for new developers to jump in and make their own mods, AND it makes all those mods immediately compatible with every version of the game. You don't need to own every version of the game if the address/value you're using is already in the library!

Including the library also won’t interfere with any mods that choose not to use it.

Setup

The preferred method is to install this mod via OpenKH Mods Manager, which allows for easy updating of the mod in the future. Enter KH2FM-Mods-equations19/KH2-Lua-Library into the text box for Add a new mod from GitHub and then click Install.

If you do not use OpenKH Mods Manager, copy the entire io_packages folder into the folder that contains your other Lua scripts.

Developer Docs

See Developer Docs.

Contributing

Community participation is key to the success of a project such as this one. If you have found memory addresses for KH2, please consider contributing them to the library.

Acknowledgements

About

A repo for the KH2 Lua Library references and documentation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages

  • Lua 100.0%