ID:155758
Mar 25 2011, 9:20 am
|
|
Can someone give me an example of compressing, say, a verb or whatever that goes out to five different tabs of code? I really want to compress all of my Byond code into one single line. My cartridge classic entry is a little too big, and I need to compress it. Thank-you!
|
Mar 25 2011, 10:51 am
|
|
What you mean by "compressing" your code?
|
Take a look at http://www.byond.com/developer/LummoxJR/RuntSource
|
In response to Ocean King
|
|
Ocean King wrote:
What you mean by "compressing" your code? Removing white-space and using #define to shorthand basically any proc you call multiple times. |
In response to Metamorphman
|
|
Linkin' me to a dead link bro...what is this? XD Jk, but it really is dead.
|
Save yourself the trouble and write a script to do this. First convert tabs to { } structure. Then tokenize the code, find the var and proc names that take the biggest character count (and can be replaced w/ a macro), and replace them if it's cost-effective.
|
In response to Toadfish
|
|
Maybe I could...if I knew what to do =(
I don't know how this works in general... I BEG OF SOMEONE TO WRITE ONE! Lol...hmm, I should search around. 5 entries to the 8kb contest...someone has to have written one. |
In response to OrangeWeapons
|
|
You can still manually open the code downloaded into the BYOND directory.
|