Page 1 of 1
Hardon Collider Funkyness
Posted: Mon Aug 15, 2022 8:19 pm
by carvii-
So I'm a little confused because I don't know which file of the Hardon Require libarary to require:
https://github.com/vrld/HC
Re: Hardon Collider Funkyness
Posted: Mon Aug 15, 2022 9:48 pm
by MrFariator
Basically, there are a couple of main ways to make libraries and modules in lua:
1. You require a single, specific file. If the library needs other files to function, it handles requiring them on its own.
2. You have a folder with init.lua in it. The init.lua basically initializes and returns the library, if the folder is passed to require().
Hardon Collider uses the second approach. So, if you grab HC's files, and place them into a folder named "HC" next to your main.lua, you can just require it with: