Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO] Map Sizes


Ertzel
 Share

Recommended Posts

I want to make my maps bigger then 255/255 and before Robin said just change the MAX_BYTE and that will let you, but when you change the MAX_BYTE to anything above 255 it gives an Overflow error.

Is there a way I can have my maps bigger then 255/255 in EO?
Link to comment
Share on other sites

@Ertzel:

> I want to make my maps bigger then 255/255 and before Robin said just change the MAX_BYTE and that will let you, but when you change the MAX_BYTE to anything above 255 it gives an Overflow error.
>
> Is there a way I can have my maps bigger then 255/255 in EO?

… I didn't mean change the value of MAX_BYTE, I meant go through where MAX_BYTE is used in the map code and change it to something else. >_>
Link to comment
Share on other sites

ohhhhh ok that makes more sense…

So just change where it says MAX_BYTE in this code to the number I want?
```
    If Not IsNumeric(txtMaxX.text) Then txtMaxX.text = Map.MaxX
    If Val(txtMaxX.text) < MAX_MAPX Then txtMaxX.text = MAX_MAPX
    If Val(txtMaxX.text) > MAX_BYTE Then txtMaxX.text = MAX_BYTE
    If Not IsNumeric(txtMaxY.text) Then txtMaxY.text = Map.MaxY
    If Val(txtMaxY.text) < MAX_MAPY Then txtMaxY.text = MAX_MAPY
    If Val(txtMaxY.text) > MAX_BYTE Then txtMaxY.text = MAX_BYTE
```
Is there a max size the maps can be?
Link to comment
Share on other sites

I don't know about practical limitations, but an array is limited to 2,147,483,647 elements. I'd say you'd be able to resize it to whatever you need it to be. Your computer will crash before you even get close to overshooting the boundary.

As for that code, you'd not only change that, but wherever else the map size is handled. I'm sure there's several other places where the map size is limited, namely in the map's type structure in modTypes.
Link to comment
Share on other sites

@Stephan:

> Would be a way better idea to just use seamless maps instead.
>
> Regards,
>   Stephan.

Pretty much. If you're wanting maps over 255x255 then just do seamless. As far as I know, Lizzy is the only one to make maps _truly_ seamless.
Link to comment
Share on other sites

I guess ill keep it how it is for now. I just always hated the delay you would have when changing maps so I wanted to limit the amount of maps as much as I can, but I guess since EO is faster it wont be as noticeable.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...