Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

how come most ai scripts are written in one long line of code?

Asked by
quinzt 201 Moderation Voter
4 years ago

This isn't really asking for help with a script, but I'm just kinda curious. I've found myself messing around with a lot of free models and looking at their scripts, and whenever i look at ai scripts, a lot of the time it's written in one long line of code. I tried searching the internet for an answer to this, but that came to no avail. I just wanna get an answer from an experienced lua programmer, so that i can know for future preference. Thanks

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Usually, this is done for one of two reasons:

  • They want to make it harder for others to read their code and figure out how it works. They write the code normally, then they pass it through a minifier that compacts it down into one line to make it harder to read. This can help against skids, that modify the code and then try to pass off the model as their own.
  • They are hiding something malicious and don't want people to find it. Backdoors and other bad stuff. I would avoid free models in general if at all possible.
0
Make sure to always check the author of that free model to see if they are trustworthy. cruizer_snowman 117 — 4y
0
thanks i was just curious quinzt 201 — 4y
Ad

Answer this question