What happened to OC? - CLOSED Carnage?!
Sign in to follow this  
Followers 0
Nickster5000

Lua Bundler for SAPP Projects

This is a follow-up to:

However, this is brand new enough to warrant its own thread.

 

Now if you're a fellow Software Developer / Software Engineer like myself, you will quickly come to realize that maintaining thousand line long LUA scripts for SAPP is a pain in the you-know-what. Using LUA's built in module system is also a pain in the you-know-what, as you have to ship all of the dependency files. Basically, there is no good way to create your own project file structure, and bundle the files down to a single file.

 

Well, I'm here today to end that misery for you. Look no further than the BRAND NEW Lua Bundler for SAPP. This bundler allows you to use new statements to modularize your lua projects:

-- BEGIN_IMPORT
 -- END_IMPORT
-- BEGIN_IGNORE 
-- END_IGNORE
import ... end 

To automate the creation of a single output file, and avoid issues like these:

myCustomPrintFunction()

function myCustomPrintFunction()

  print("My Custom Print Function!")

end

 

More info about what the statements mean, and how to use them here: https://github.com/Nickzster/Lua-Bundler-For-SAPP

 

I literally just created this in a day so that I can start using it immediately, but thought others could put it to good use. It's kinda primitive, and untested, so I plan on iterating and making it better as I use it more. If you find any issues, feel free to post an issue on the Github repo. 

 

I hope this helps someone! 

Takka and Enclusion like this

Share this post


Link to post
Share on other sites

Tiddy-bits:

Right now I don't see the need for this as I've only just recently began working on Sapp scripts but I'll keep this in the back of my mind. Thanks, this looks great! 

Nickster5000 likes this

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.