I want to enable people to load strings into the map, which are pretty long. Banks has very limited size and this would also make it easily shareable.
So I used edit box to write out strings and I could write out strings even with 40k length!!! But when I string with edit box it only saves up to 256 length!
Has any body any idea how to work around?
(basically I wanted that players could save pictures in my pictionary map: http://www.sc2mapster.com/maps/pictionary/ )
Bank size limit is not very limited anymore, you should be able to save quite some huge string in it ;)
Other than that, I don't know, if you can extend the edit box limit, what about chat messages? Or using multiple fields and concatenate? Also, how much information would a pictionary picture be? You would need to save 3 * 4 bit of color information per "pixel", or position and color of all allowed dummy units (assuming you have a limit and use dummy units).
What resolution and dummy unit count are we talking about?
Banks over 8kb size bug with 10+ player, thats around 8k character.
I couldnt find anything about chat size limit in sc2layout and I think the mass character you can type there is 256 too.
I use text tags btw, I save points position into 2x14 character. I checked and points can even go up to 14 decimal precision (I loose 3 decimal with the current save). Text tags color and size saved only when you change it so its not much actually. The biggest picture I currently allow is 7000 character and 2000 in multi. So it could go up to even 130k character:D
Its not my first map where I have problems with even new bank size limit. so it would be a nice way to save stuff and it would be probably easier for people to share on forums for example.
Btw using multiple banks counts as 1 bank in size limit?
"Pictures" stored as large arrays of "pixels" would be very good candidates for a run of RLE (Run-Length Encoding) compression before saving. It's just the kind of pictures RLE excel at and it's extremely easy to implement.
Though how are you actually drawing and storing the pictures? I don't follow the part about text tags.
And reals/floats are fixed point math with a precision of 1/4096 in SC2, there's no point storing anything beyond the 4th decimal.
Well, the size and colors are kind of stored in RLE.
I think there is an actual point in storing points under 4th decimal as it has nothing to do with math. Probably not for 11 decimal, but that still wouldnt solve my problem.
I think I might add further compression and try to save it into multiple banks, if separate banks doesnt count as 1 to bank size limit, but I am not sure if it is so.
After all people can copy and paste stuff into unprotected banks.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I want to enable people to load strings into the map, which are pretty long. Banks has very limited size and this would also make it easily shareable. So I used edit box to write out strings and I could write out strings even with 40k length!!! But when I string with edit box it only saves up to 256 length! Has any body any idea how to work around? (basically I wanted that players could save pictures in my pictionary map: http://www.sc2mapster.com/maps/pictionary/ )
Bank size limit is not very limited anymore, you should be able to save quite some huge string in it ;)
Other than that, I don't know, if you can extend the edit box limit, what about chat messages? Or using multiple fields and concatenate? Also, how much information would a pictionary picture be? You would need to save 3 * 4 bit of color information per "pixel", or position and color of all allowed dummy units (assuming you have a limit and use dummy units).
What resolution and dummy unit count are we talking about?
Banks over 8kb size bug with 10+ player, thats around 8k character. I couldnt find anything about chat size limit in sc2layout and I think the mass character you can type there is 256 too.
I use text tags btw, I save points position into 2x14 character. I checked and points can even go up to 14 decimal precision (I loose 3 decimal with the current save). Text tags color and size saved only when you change it so its not much actually. The biggest picture I currently allow is 7000 character and 2000 in multi. So it could go up to even 130k character:D
Its not my first map where I have problems with even new bank size limit. so it would be a nice way to save stuff and it would be probably easier for people to share on forums for example.
Btw using multiple banks counts as 1 bank in size limit?
"Pictures" stored as large arrays of "pixels" would be very good candidates for a run of RLE (Run-Length Encoding) compression before saving. It's just the kind of pictures RLE excel at and it's extremely easy to implement.
Though how are you actually drawing and storing the pictures? I don't follow the part about text tags.
And reals/floats are fixed point math with a precision of 1/4096 in SC2, there's no point storing anything beyond the 4th decimal.
Well, the size and colors are kind of stored in RLE. I think there is an actual point in storing points under 4th decimal as it has nothing to do with math. Probably not for 11 decimal, but that still wouldnt solve my problem.
I think I might add further compression and try to save it into multiple banks, if separate banks doesnt count as 1 to bank size limit, but I am not sure if it is so. After all people can copy and paste stuff into unprotected banks.