Jump to content
  • 0
Ind

[MAP] Size restrictions?

Question

I failed to figure on my own, does the client display any issues when utilizing a map greater than 512*512? I understand map server poses a restriction (which can be increased) for size purposes, but does the client impose any? knowing this would help me work on a feature for the herc.

Thanks

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
Short answer is : yes, the client supports larger maps, but you have to be careful when you make them!
 
2013-07-08 :
Maximum map size : 1500 x 1500
 
2010-07-30 :
Maximum map size : 1350 x 1350
 
These large maps take about 300 MB of memory, but I doubt people will go that high.
 
Apart from the client version, maps also have a limit on the number of "lightmap" references, which is 65536 (ushort). Each tile is associated with a lightmap. Let's assume you have a map of size 512 by 512, that would mean...
Tiles Up = Width/2 * Height/2 = 256 * 256 = 65536
Maximum Tiles = 3 * Width/2 * Height/2 = 196608 (up, left and right)
Lightmaps to fill = Maximum Tiles = 196608
 
That means that even a map of 512 by 512 can "break". If you don't use walls, then you only have 65536 max tiles and there are no issues in that case. You can reuse an existing lightmap (which gives you a much bigger margin to play with), but BrowEdit doesn't seem to support this when you recalculate the lightmaps (this is the common "Sanity error: lightmaps out of bounds" error people get).
 
Just for a quick comparison, the map schg_dun01 has 63854 lightmaps and it is 400 by 400 in size. The map has many lighting effects though and the complex background is what increases the amount so much.
 
Also, maps larger than 1350 require a minimal size of 80 MB (this is without lightmaps), which is unfortunately too much for cps.dll (the limit is around ~75 MB). I doubt this will be needed anyhow.
 
For further reference, these are the maps I've used to do my tests ingame (they do not have lightmaps for the reasons mentionned above) :
 
You could have maps of 2500 by 20, there are no problems with these for the client. I don't think BrowEdit is able to calculate quad trees which aren't in a square shape (I may be wrong on BrowEdit's capabilities though! I haven't tested with non-squared maps).

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.