Seen a few people and had a few questions about the requires etc... No do not put them inside lua in the riot folder...
Example: this is one of my scripts, uses 2 lua files and a dll.
require "lfs" require "DevCore" require "Utils"
Above these 3 lines I can tell Lua where these files are:
package.path = package.path .. ';C:/DevCore/?.lua' package.path = package.path .. ';C:/DevCore/?.dll'
I use C:/DevCore for ease of use.
So how can this help developers?
What you can do is call functions from other scripts or if your modifying your script but your getting annoyed with having to Alt+F4..,
You can put the function code you are trying to modify and place that into a seperate lua file, then changes will be updated in game.
You can force a refresh of a required lua or stop it, not sure if it works 100% all of the time:
if ReloadPressed then reloading=1 else if (reloading==1) then package.loaded[ 'DevLoad' ] = nil require('DevLoad') reloading=0 end end
Stopping you simple do not call the require again.
Just a few simple points for now, I've successfully managed to include lua 5.1 compatible dll's including Lua File System and other lua features.
Final notes...
Try not to get too distracted, I ended up replacing Minion Graphics with Poro ones... Amusing but lost a fair amount of time