SRL Archive - OSR Help

How do I make my Bitmap string to 1-2 lines?


P1nky

2012-04-19 18:17:01

I remember there was a way to make a 100s of line of a bitmap string into 1-2 lines, can someone please help me here?

-Cheers

Brandon

2012-04-19 18:21:32

CompressString? You have to inflate or deflate the string.. I know Simba uses ZLib compression to do this without data loss. Pretty sure I'm spot on though but you should wait for another response to confirm or maybe not?

I'm sure simba has a compress string function as well.

Abu

2012-04-19 18:23:20

From: ggzz
CompressString? You have to inflate or deflate the string.. I know Simba uses ZLib compression to do this without data loss. Pretty sure I'm spot on though but you should wait for another response to confirm or maybe not?

I'm sure simba has a compress string function as well.


Wouldn't you still have to paste the entire string into CompressString? I've never used it before but I've seen the parameters…

YoHoJo

2012-04-19 18:33:01

When using the bitmap string maker on simba uncheck the 'padr output' box. Then when you paste the sting into simba it will be one line.

P1nky

2012-04-19 18:35:39

From: YoHoJo
When using the bitmap string maker on simba uncheck the 'padr output' box. Then when you paste the sting into simba it will be one line.


Love you.

Abu

2012-04-19 18:35:58

From: YoHoJo
When using the bitmap string maker on simba uncheck the 'padr output' box. Then when you paste the sting into simba it will be one line.


Are you fricking kidding me. That's what it does! Now I can get rid of ugly code.

Thanks

Sex

2012-04-19 18:37:44

From: YoHoJo
When using the bitmap string maker on simba uncheck the 'padr output' box. Then when you paste the sting into simba it will be one line.


This. Or Dgby's method.


Bitmap := BitmapFromString(w,h, DecompressString('v` xœíš¯Ïâ0ÇwŽ„ä‚DNžD^Na.AÎ\‚DN]æx ’?9‰x’?ƒ?a’kh®ïC÷m×vïFžO23º¶ÏgO¿~ÿ]'~Šë‡¸þˆ+×·dþ¸Ÿ‰Ï?¾Ëë?wÁ^0ìÃ^0ìÃ^0ìÃ^0ìÃ^0ìÃ^0ìÃ^0ìÃ^0½{9N‹Å"qc³ÙôÝGúò²Ûí] SM_^&“I˜A]×=õʝ¾¼Ìçò«Ó$MÓ¢(n·›½|UU³ÙL>’çyO½r§//"Î,ËŽÇ£û#‡ÃA¥LO½rçë{@a/ö‚a/ö‚a/ö‚a/ö‚a/ö‚±x‘ô—¶GãEÐ_Ô“×4ãˆÅË‹‡XH3ÛíVôoµZÅïÍx½\¯W{»L#ö’ç¹ìŸ)_ºL¦à뺺¶H\c‡ à³BÊr¹”÷EëðA‘ž "xýòî}kØ*DœëõZ @¤¡))Š¢P÷Å mVH‡¶†Éc{˜ÞXÃvIx'E%…ö¬ÊP1ßó,ƒ¦iêõEêS˜ÞXÃV1›^”ãï'Ž-Ò!–˜‡v ~^ìé@c† '/ŸŠ“ €:a6ãçÅž0f
µ /ËÒ× VâJ¹ûzQ‘Ãt0Å,¡a4ʼnL¤?×ÂjµòtZ‘Ó¶W,vü¼8¢æ§4 ÓtHŝN§æMZV”¯Xìxx±ït탈N–ÙQ•¹#ï4·‘šõÃfõ´íáÅ´ÓÕö#Í\pŸèû—w´m¤&EÖFÕ¸‡cÇ£"ÓN—îG`²P(èͳ—f†Â¨ªª¯ôÛ/Pù‚*u¡yÑ2Ô’wò¢íÐLksë96![Ñ2ÔRÕ ¼@Z7r.›QÍ‹*¥*U2Ö‚ÁËt:Ýï÷¦§ä¤èx~S3¨,¯y±¿J÷…)N¾Xö^„…Ó²¼æ…®;v‚ÑŸÁz}î¥èº î[²·(*µJérŒþl:¸—íÆU[|
]½4ßaÌ΍׋„î¬"žßFïåNTÄóÛ8¼¨È/—KóÓ¸ÿ¦Ô6Ý+ôÅ£Iõ*RY–¸®xaÐ9«û¢€G çóYvTt×Ï‹šÎ£,ºDû^êî¹µ81½üÇ{°ÄôòNøEøN#ÅŽŸ—w)vÞD„Á^0ìÃ^0ìÃ^0ìÃ^0ìÃ^0ìÃ^0ìÃ^0ìÃ^0ìÃ^0ìÃ^0ìÃ^0É?#T¢‡'));
Etc…that string is the string CompressString results.

Total

2012-04-19 18:39:31

Wow lol….Should probably do this for my agility script as the paint takes up like 3k lines or something rofl.

Brandon

2012-04-19 19:04:41

The Padr just adds the plus signs so that it doesn't go offscreen.. the length of the string is the exact same unless you compressed it :S

YoHoJo

2012-04-19 19:06:46

Yeah length is same, I think they just didn't want a zillion vertical lines of code uglying up their script.

:D THE MORE YOU KNOW!