Ohai!
Scenario:
1. I make a map. When finished, the file size is 20 KB.
2. I upload it to my webspace (FTP binary). Still 20 KB.
3. A client needs to download the map in-game.
4. The downloaded file has now 22 (23, 25, ...) KB, though the code has not changed. (except for the CR/LF, which now are visible in *most* lines)
Why?
My guess is it has to do with the character encoding/processing of AA. Another explanation?
map file size when up-/downloaded
Re: map file size when up-/downloaded
File sizes given can be the true file size or the actual space used on the hard disk, which is essentially the true file size rounded up to a multiple of the block size (which varies). A small size increase due to trivial modifications to whitespace can bump the size up. To say more we'd need to see the files.
Re: map file size when up-/downloaded
Real file size.
The .rar attached contains a design study, before upload/after download to/from my repository. Their difference is 324 bytes, but the only (to me) visible thing are five additional CR in the "new" one.
I can reproduce this with every map; degree of inflation varies from around 50 Bytes to several KB so far.
The .rar attached contains a design study, before upload/after download to/from my repository. Their difference is 324 bytes, but the only (to me) visible thing are five additional CR in the "new" one.
I can reproduce this with every map; degree of inflation varies from around 50 Bytes to several KB so far.
Re: map file size when up-/downloaded
What's the link for the map served by your web-server? Maybe it's some strange Content-Type issue or a strange Apache mod that is messing with the response.
Also, are you opening the downloaded file in a text-editor (perhaps one that converts line-endings) before you check its size?
Also, are you opening the downloaded file in a text-editor (perhaps one that converts line-endings) before you check its size?
Re: map file size when up-/downloaded
I see additional CRs in every line, using 'less'. The file has 324 lines:
So there, mystery solved.
Code: Select all
moos@l$ wc -l after/x-0.aamap.xml
324 after/x-0.aamap.xml
moos@l$ wc -l before/x-0.aamap.xml
324 before/x-0.aamap.xml
Re: map file size when up-/downloaded
Hm. One in every line, ok. But additional... why? Strange.
I'm using notepad.exe, which is not known to convert anything.
EDIT: dlh might be right. Text-based files (html/php) fetched from my webspace seem to share this disease. Must be sort of normal then, and /me just didn't notice before.
PS: any tips to reduce flickering/fps dropping on a map?
I'm using notepad.exe, which is not known to convert anything.
EDIT: dlh might be right. Text-based files (html/php) fetched from my webspace seem to share this disease. Must be sort of normal then, and /me just didn't notice before.
PS: any tips to reduce flickering/fps dropping on a map?
Re: map file size when up-/downloaded
Reduce round lengths. Turn alpha_blend to 0.
Just a few quick solutions
Just a few quick solutions
"Dream as if you'll live forever,
Live as if you'll die today." -James Dean