Skip to content

Lua optimizer that replaces calls to globals with locals (client.log -> client_log)

Notifications You must be signed in to change notification settings

gamesensical/gamesensical.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GameSensical Lua optimizer

Simple web tool that replaces calls to global functions with calls to local functions and generates a single line of local variable assignments at the top

preview

How it works:

It properly parses the source code (using luaparse) and traverses the AST, detects calls, checks if they're not already defined in the script somewhere and generates that localization line based on that. It also finds calls to already localized functions that aren't defined in the script.

Then it also replaces the 'dot-syntax' with the 'underscore-syntax'. you can just give it a already optimized script and remove that massive header and make it only generate the localization line

Technologies used:

About

Lua optimizer that replaces calls to globals with locals (client.log -> client_log)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published