Descriptive Problem Summary:
I used a tag/ref teleporting system to goto a separate map file that was 25x25 and yet i can run off the map and out of bounds even though there shouldn't be anything there as the full 25x25 is mapped yet im able to wander off into some void
Numbered Steps to Reproduce Problem:
use tag/ref teleporting to a 25x25 map
ID:2002381
Dec 21 2015, 6:33 pm
|
|||||||||||||
Not a bug
| |||||||||||||
Dec 21 2015, 6:45 pm (Edited on Dec 21 2015, 6:52 pm)
|
|
Do you have any other included map files that are larger than 25x25? At runtime, world.maxx and world.maxy will be set to the width and height of the largest map file in your project.
|
ohh cause i was hoping i could just make individual maps of diffrent sizes but i guess the largest oen still make need a special boundary needed right?
|
In response to Mastergamerxxx
|
|
Mastergamerxxx wrote:
ohh cause i was hoping i could just make individual maps of diffrent sizes but i guess the largest oen still make need a special boundary needed right? Just to clarify how the map works, BYOND loads all maps into memory as separate Z levels, but the global map is a cube-like shape. If one map is smaller than the others, the excess X and Y space will be filled in with the default turf type. You have multiple options for dealing with situations like this. If you use EDGE_PERSPECTIVE on your maps, you can apply client.edge_limit when a player is within the bounds of a small map, so that their view won't look beyond them. Another common technique is to bunch all small mini-maps onto one single Z level, or only a few Z levels, and have enough boundary turfs that there isn't really a chance of seeing one of the other maps. These techniques can actually be combined. |