Author |
Message |
Ag Guest
Offline
|
Posted: Tue Jan 04, 2005 9:57 pm Post subject: Bak LVZ ImagePlacer Compresion (bak read) |
 |
|
|
|
I was using Bak’s LVZ Image placer, and I found that HIS lvz image placer compresses images tighter compared to the normal LVZ BUILDER, I was wondering if any one (or Bak) spent some time to edit the current lvz builder, because his, builds much tighter compared to others. |
|
Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:41 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
Posted: Tue Jan 04, 2005 10:30 pm Post subject: |
 |
|
|
|
From zlib.h
ZEXTERN int ZEXPORT compress OF((Bytef *dest, uLongf *destLen,
const Bytef *source, uLong sourceLen));
/*
Compresses the source buffer into the destination buffer. sourceLen is
the byte length of the source buffer. Upon entry, destLen is the total
size of the destination buffer, which must be at least 0.1% larger than
sourceLen plus 12 bytes. Upon exit, destLen is the actual size of the
compressed buffer.
This function can be used to compress a whole file at once if the
input file is mmap'ed.
compress returns Z_OK if success, Z_MEM_ERROR if there was not
enough memory, Z_BUF_ERROR if there was not enough room in the output
buffer.
*/
ZEXTERN int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen,
const Bytef *source, uLong sourceLen,
int level));
/*
Compresses the source buffer into the destination buffer. The level
parameter has the same meaning as in deflateInit. sourceLen is the byte
length of the source buffer. Upon entry, destLen is the total size of the
destination buffer, which must be at least 0.1% larger than sourceLen plus
12 bytes. Upon exit, destLen is the actual size of the compressed buffer.
compress2 returns Z_OK if success, Z_MEM_ERROR if there was not enough
memory, Z_BUF_ERROR if there was not enough room in the output buffer,
Z_STREAM_ERROR if the level parameter is invalid.
*/ |
#define Z_NO_COMPRESSION 0
#define Z_BEST_SPEED 1
#define Z_BEST_COMPRESSION 9
#define Z_DEFAULT_COMPRESSION (-1)
/* compression levels */ |
Mine orignally used compress, which is why mine wasn't the smallest. With compress2, can set compression level. |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Wed Jan 05, 2005 6:22 pm Post subject: |
 |
|
|
|
update your version of buildlevel to the newest version. CLIT (the current version anyways) actually uses buildlevel to make the lvz files (which is why at this point it's not platform independent).
Last edited by Bak on Wed Jan 05, 2005 8:43 pm, edited 1 time in total |
|
Back to top |
|
 |
Assassin2684 Server Help Squatter

Age:34 Gender: Joined: Jul 27 2004 Posts: 990 Location: Florida Offline
|
Posted: Wed Jan 05, 2005 7:45 pm Post subject: |
 |
|
|
|
lol clit  |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Wed Jan 05, 2005 8:53 pm Post subject: |
 |
|
|
|
HAHAHAHA LOLOLOL HE SAID "CLIT" OMFG ROFLMAO LOLOLOL!
How old are you again, Assassin?  |
|
Back to top |
|
 |
Purge Episode I > Eposide III Jar-Jar is kool

Age:35 Gender: Joined: Sep 08 2004 Posts: 2019 Offline
|
Posted: Wed Jan 05, 2005 10:22 pm Post subject: |
 |
|
|
|
My CLIT usually crashes when saving a .lvz  |
|
Back to top |
|
 |
Assassin2684 Server Help Squatter

Age:34 Gender: Joined: Jul 27 2004 Posts: 990 Location: Florida Offline
|
Posted: Thu Jan 06, 2005 3:12 pm Post subject: |
 |
|
|
|
LMAO, o and btw solo im not telling you  |
|
Back to top |
|
 |
Purge Episode I > Eposide III Jar-Jar is kool

Age:35 Gender: Joined: Sep 08 2004 Posts: 2019 Offline
|
Posted: Thu Jan 06, 2005 3:17 pm Post subject: |
 |
|
|
|
I'll take a wild guess and say that he's 15 years old.  |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Thu Jan 06, 2005 5:27 pm Post subject: |
 |
|
|
|
what error does your CLIT give you? (open the java console if nothing pops up) |
|
Back to top |
|
 |
Purge Episode I > Eposide III Jar-Jar is kool

Age:35 Gender: Joined: Sep 08 2004 Posts: 2019 Offline
|
Posted: Thu Jan 06, 2005 6:41 pm Post subject: |
 |
|
|
|
Bak wrote: | what error does your CLIT give you? (open the java console if nothing pops up) |
No error actually. Just when I save the .lvz, it stays on "Saving blah.lvz" forever. And after this happens, I can't save anything else on CLIT unless I reboot the Java console. However, this happens sometimes and not all the time. |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Thu Jan 06, 2005 7:42 pm Post subject: |
 |
|
|
|
open the java console. Chances are there's an exception raised. I would be very grateful if you could copy the exception from the java console and paste it here. |
|
Back to top |
|
 |
Purge Episode I > Eposide III Jar-Jar is kool

Age:35 Gender: Joined: Sep 08 2004 Posts: 2019 Offline
|
Posted: Thu Jan 06, 2005 7:47 pm Post subject: |
 |
|
|
|
I'll see to it. Will Edit this post when done. |
|
Back to top |
|
 |
Blindmonkey21 Server Help Squatter

Age:36 Gender: Joined: Jul 08 2004 Posts: 252 Location: Arizona Offline
|
Posted: Fri Jan 07, 2005 5:42 pm Post subject: |
 |
|
|
|
Clit takes up a crazy amount of CPU Usage. I was using the .lvz placer and my computer was REALLY lagging up. So I checked my usage and CLIT was hovering around 99-100 for a while, since then I just use SSME |
|
Back to top |
|
 |
Purge Episode I > Eposide III Jar-Jar is kool

Age:35 Gender: Joined: Sep 08 2004 Posts: 2019 Offline
|
Posted: Fri Jan 07, 2005 6:02 pm Post subject: |
 |
|
|
|
My CLIT only has a 2% usage.  |
|
Back to top |
|
 |
Blindmonkey21 Server Help Squatter

Age:36 Gender: Joined: Jul 08 2004 Posts: 252 Location: Arizona Offline
|
Posted: Sat Jan 08, 2005 5:02 pm Post subject: |
 |
|
|
|
Well I know that it happened to me and I asked 2K+ if he got the same thing and he said his hogged CPU Usage like mad as well. |
|
Back to top |
|
 |
Purge Episode I > Eposide III Jar-Jar is kool

Age:35 Gender: Joined: Sep 08 2004 Posts: 2019 Offline
|
Posted: Sat Jan 08, 2005 7:27 pm Post subject: |
 |
|
|
|
Well, then I guess my CPU is special.  |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Sun Jan 09, 2005 1:53 pm Post subject: |
 |
|
|
|
Before it used to do that all the time... which was terrible. I traced it to a part of the code where the main window draws itself then tells the radar to refresh... and when the radar refreshes it would tell the main window to refresh.... you see where this is going. It's shown up occasionally when I have multiple maps open, but I've yet to figure out the cause. You could try to use the newest beta (just out last week), as the radar drawing is redone to speed up scrolling. |
|
Back to top |
|
 |
Purge Episode I > Eposide III Jar-Jar is kool

Age:35 Gender: Joined: Sep 08 2004 Posts: 2019 Offline
|
Posted: Sun Jan 09, 2005 3:17 pm Post subject: |
 |
|
|
|
Bak: As for the exception that was raised in CLIT, it seems to work fine now after me re-downloading it from your site. The Java console looked fine from what you asked, so I decided to reinstall it. Now it works fine.  |
|
Back to top |
|
 |
|