Ryandor.com
https://ryandor.com/forum/

Getting New Map0.mul Size
https://ryandor.com/forum/viewtopic.php?f=2&t=2400
Page 1 of 2

Author:  Guest [ Fri Jul 15, 2005 3:45 am ]
Post subject:  Getting New Map0.mul Size

Hi People,

Im trying to gather as much information on Mondains Legacy as possible to assist RunUO. I have Mondains Legacy Enabled (Feature and Char Creation Flags) I also have the correct bytes for the race selection.

However, in the new client, the Map Size for map0.mul has changed, its gotten bigger. Anyone know exactly how I can get the size of Map0.mul for RunUO/Other apps such as Inside UO.

Cheers,
Belzemus

Author:  Bmzx007 [ Fri Jul 15, 2005 3:46 am ]
Post subject: 

The above was me, Wasnt logged in Sorry :)

*Addition to the above*
I spent a few hours on it, but have exhausted my options, any help would be great, You can get the ML beta client from fileplanet freely. I can provide any information required to help.

Author:  Dev Viperrious [ Fri Jul 15, 2005 5:52 am ]
Post subject: 

If you use Worldforge it should show you the size.

Dev

Author:  Bmzx007 [ Fri Jul 15, 2005 6:37 am ]
Post subject: 

Just tried Worldforge, 2 different versions, both capped the map at the standard sizes, the rest is still missing. Im assuming the programs have the mapsize hard-coded into them.

Any other methods, Or perhaps a specific version of worldforge?

Author:  Sydius [ Fri Jul 15, 2005 8:19 am ]
Post subject: 

Divide the file size by 196 ? if it comes out to be an integer (no decimal), then the format itself has not changed, just the size. The number you get is the number of 8x8 blocks of cells. Next, the height (in blocks) you must figure out manually ? but it is probably still 512, so divide the number you got before by 512, and what is left is the width in blocks. Now multiply the width in blocks by eight, and that is the width in tiles.

If the height is different, you will have to guess it too, but I imagine it is still a power of two (in block size).

Author:  Bmzx007 [ Fri Jul 15, 2005 8:29 am ]
Post subject: 

Sorry Syd, File size in Bytes, Kilobytes, Megabytes or ? :)

And would it be possible for you to show the calculations in an example of say, the standard map0.mul so I have a reasonable idea of what I should get.

Im ok at math, but not superb, a little rusty we'll say, heh.

Author:  Sydius [ Fri Jul 15, 2005 11:08 am ]
Post subject: 

It is very basic algebra:

NumBlocks = FileSizeInBytes / 196

If NumBlocks is not an integer, then the format has changed, and you should quit this procedure.

WidthBlocks = NumBlocks / HeightBlocks

Width = WidthBlocks * 8

Height = HeightBlocks * 8

The only unknown is HeightBlocks, but you can try 512 to see if it is the same as the original map. If that does not work, try guessing ? powers of two are more likely.

Author:  Bmzx007 [ Fri Jul 15, 2005 5:35 pm ]
Post subject: 

Thanks Syd, Seems to have worked correctly, looks like they only added an extention to the size by 1000 tiles approx.

Thanks for the help :)

For those interested it turned out...

89915392 / 196 = 458752
458752 / 512 = 896

896 * 8 = 7168 (Width)
512 * 8 = 4096 (Height)

Tested these settings in InsideUO, and was able to see the extention (No matter how horrid it was) of the new map. I did tinker with InsideUO trying to get more of the map (Incase the height had changed) but it didnt like it, So I will assume for now, that only the width changed.

Again, thanks Syd.

Author:  Sydius [ Fri Jul 15, 2005 6:00 pm ]
Post subject: 

Bmzx007 wrote:
89915392 / 196 = 458752 (Not an integer, as they stop at 32,000 approx, but a whole number, so I continued anyway)


Huh?

Any whole number = integer.

Integer = any whole number.

Author:  Bmzx007 [ Fri Jul 15, 2005 6:12 pm ]
Post subject: 

Apologies Syd, I was thinking of a short. Still a bit tired, was thinking back to an old program I used which called shorts, integers, quite confusing still after a few years of use :P

Author:  Sydius [ Fri Jul 15, 2005 6:19 pm ]
Post subject: 

A short is 2^16 (two bytes, or 16 bits) = 65,536.

An integer is 2^32 (four bytes, or 32 bits) = 4,294,967,296.

Of course, this assumes you are using a PC.

Author:  Bmzx007 [ Fri Jul 15, 2005 6:42 pm ]
Post subject: 

Yep, I know the sizes, The programmers of the program I used didnt :P, Although this was many many years ago.

Its a long story. Thanks all the same.

Author:  CMS [ Fri Jul 15, 2005 7:35 pm ]
Post subject: 

*raises hand*

Umm...so, does this mean the new section containing the ML landmass is just pinned onto the side of the Britannia map and can't be seen in InsideUO?

There isn't a map5.mul so I thought they might've just changed Britannia somehow. I tricked InsideUO into showing me the new graphics but I don't know how to see the map without editing the InsideUO .xml document. And, I don't want to mess with that and screw up the program. ::shrug::

-CMS
*******

Author:  Sydius [ Fri Jul 15, 2005 8:18 pm ]
Post subject: 

Just change the map width in the XML -- not hard. Just back it up.

Author:  CMS [ Sat Jul 16, 2005 1:08 am ]
Post subject: 

Apparently, you have to be a programmer or have a programming...umm...program to change the .xml file? I can open it but it won't let me change anything. Unless, of course, since I'm no programmer I just don't know HOW to. ::shrug::

-CMS
*******

Author:  Sydius [ Sat Jul 16, 2005 12:00 pm ]
Post subject: 

Open it in notepad.

Author:  CMS [ Sat Jul 16, 2005 1:24 pm ]
Post subject: 

*slaps self* I thought for SURE I tried opening it in Notepad. That's what I use to edit most files.

Thanks :)

-CMS
*******

Author:  Guest [ Sun Jul 24, 2005 2:40 am ]
Post subject:  Increased Map Sizes

Has anyone discovered a way to increase Map0.mul in width or height without problems? I am looking for a map 9000 by 16000 for my shard. I am also having a weak moment with Photoshop... What must I do to get Photoshop from bleeding colors together. I remeber a Tutorial Ryandor created said how but can't find that one now.

Author:  CMS [ Sun Jul 24, 2005 9:52 am ]
Post subject: 

IF the edges or your colors are "blurred", turn off anti-aliasing. That keeps the edges from being "soft" and fading into other colors.

-CMS
*******

Author:  Guest [ Sun Jul 24, 2005 10:42 pm ]
Post subject:  Thanks

Thank you CMS... now how about that map lol.
by the way... I am RavenCBMcloud but the forum
won't let me log in. Go figure.

Author:  Sydius [ Mon Jul 25, 2005 10:24 am ]
Post subject: 

The width and height of map0.mul is hard-coded into the official client and not (by standard) stored within the file. The only way you can support a custom map size is if you use a third-party client with that feature and follow their guidelines for specifying map dimensions.

Author:  Guest [ Mon Jul 25, 2005 9:30 pm ]
Post subject:  Reply to Sydius

Sydius,

If you can find someone who can make a clone of the original client, or one that will work with any mojor emu like Pol, runuo, or sphere. However with this cloned client, devise a way to have a map of that magnitude. I will pay money. Perhaps even include a way that one can add music and additional graphics easily. That would be worth the money spent in the end. Plus hundreds, perhaps thousands of shard owners would benifit from this project.

Author:  Dev Viperrious [ Tue Jul 26, 2005 6:48 am ]
Post subject: 

Thats what Syd said.

Dev

Author:  Sydius [ Tue Jul 26, 2005 11:45 am ]
Post subject: 

There are already a few projects trying to do that.

I would not bother, since if I made a client as good as the original UO client, I would just come up with an entirely new game and detach all association with UO. As it stands, unless you want to pay me about $2,000/mo, so that I can quit my job and support myself, I do not have the time.

Author:  Darien Dragon [ Tue Jul 26, 2005 2:17 pm ]
Post subject: 

Slacker. Can't you just sue over the acid in the eye? *grins* Yeah yeah. Just kidding.

Page 1 of 2 All times are UTC - 7 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/