Ertzel Posted June 11, 2010 Author Share Posted June 11, 2010 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 More sharing options...
Robin Posted June 11, 2010 Share Posted June 11, 2010 @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 More sharing options...
Ertzel Posted June 11, 2010 Author Share Posted June 11, 2010 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 More sharing options...
balliztik1 Posted June 12, 2010 Share Posted June 12, 2010 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 More sharing options...
Godlord Posted June 12, 2010 Share Posted June 12, 2010 Would be a way better idea to just use seamless maps instead.Regards, Stephan. Link to comment Share on other sites More sharing options...
Robin Posted June 12, 2010 Share Posted June 12, 2010 @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 More sharing options...
Ertzel Posted June 12, 2010 Author Share Posted June 12, 2010 Would it work if I changed everything to do with the max map's X/Y from a Byte to a Long since Long can be a lot higher of a number? Link to comment Share on other sites More sharing options...
balliztik1 Posted June 12, 2010 Share Posted June 12, 2010 Remember, even with high values, you'd be limited to the amount of map NPCs, item drops, etc.But yes, changing to integer or long would expand the size limits. Link to comment Share on other sites More sharing options...
Ertzel Posted June 12, 2010 Author Share Posted June 12, 2010 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now