Largest lua script?

  • TuDoR2007
    12th Dec 2019 Member 0 Permalink

    I wonder what the largest lua script on the script manager is...

    My own mod right now is at 110.23KB, is that big or small compared to other mods?

    I've heard the TPTMod is "the largest" but how large exactly is it?

  • LBPHacker
    12th Dec 2019 Developer 1 Permalink
    $ for i in $( seq 1 200 ); do echo $i $( curl --head$i 2>/dev/null | grep Content-Length | cut -d ':' -f 2 ) ; done | sort -nrk 2 | head -n 1

    This yields "129 182528", meaning it's #129 CHEM-MOD_v1.2.2b, which is more than 182KB.


    Side note: don't crawl starcatcher too much, or jacob1 will get mad.

    Another one: the editor got me again, it's so difficult to post code here :(

    Edited 5 times by LBPHacker. Last: 12th Dec 2019
  • Alexwall
    13th Dec 2019 Member 2 Permalink

    @LBPHacker (View Post)


    for i in {1..200}

  • Lockheedmartin
    13th Dec 2019 Moderator 0 Permalink

    To be honest, if you write a very long Lua script as a modded client type of situation for TPT, you shouldn't rely on Lua scripting. It's certainty possible and can be done, but the long-term maintenance isn't going to be a breeze if we change something in the future with Lua.

  • therocketeer
    13th Dec 2019 Banned 0 Permalink
    This post is hidden because the user is banned
    Edited once by therocketeer. Last: 13th Dec 2019