| Blockland Forums > Modification Help |
| eggscript -- torquescript extension (v0.2) |
| << < (3/3) |
| Trogtor:
--- Quote from: Gytyyhgfffff on August 31, 2020, 12:04:08 AM ---- minification https://bansheerubber.com/i/f/GeuGv.png --- End quote --- excuse me for being naive but whats the point of doing this? i know so many people who did this with their code and it made it so annoying trying to find stuff to reference from it. |
| Gytyyhgfffff:
--- Quote from: Trogtor on September 19, 2020, 09:52:00 PM ---excuse me for being naive but whats the point of doing this? i know so many people who did this with their code and it made it so annoying trying to find stuff to reference from it. --- End quote --- minification is a concept that requires your parser to have basically a complete knowledge of what is going on in the code. the minification aspect was more sort of a proof of concept and also proof to show that what i had was the real deal. additionally, eggscript can read minified code and export it back out to a readable format. this was an important test for the parser, since it showed that you could throw actual junk code at it and it'll still handle it perfectly. if you know about any mods that use minified code, you can take their script files and plug them into https://bansheerubber.com/eggscript to get back a readable version (like gcat's weapons). honestly, i don't expect anyone to use the minification for the reason you mentioned. places like blockland glass certainly wouldn't accept that sort of code |
| Foxscotch:
--- Quote from: Trogtor on September 19, 2020, 09:52:00 PM ---excuse me for being naive but whats the point of doing this? i know so many people who did this with their code and it made it so annoying trying to find stuff to reference from it. --- End quote --- generally to make javascript files smaller for sending over the internet by removing any unnecessary whitespace and shortening variable names. it is also used to obfuscate, meaning literally causing the problem that you just described, but if you ask me deliberately obfuscating code that you're giving someone else to run on their machine is a dweeb attribute. outside of javascript (and css I guess) for a website it serves no purpose aside from obfuscation so if anyone uses it in any other context you can rest assured they're a dweeb |
| Navigation |
| Message Index |
| Previous page |