News:

Huge spam cleanup. I hope, everything important is still in place. :-)

Main Menu

Not working with our custom map - question to developers

Started by Contortionist, March 11, 2008, 11:44:41 AM

Previous topic - Next topic

Hitman

I wrote a little tool to adjust the size.
Warning! It does not move any blocks, so it is NOT intended to resize working maps ... it should only fill little gaps at the end of the file or remove overhead. The 7z archive contains the executable for linux i386, win32 and also the source code in case you want to compile it yourself or just see what exactly it does (which isn't much ;-))

Contortionist

I tried it, I set dimensions 7168 and 4096 as they are in the map, but nothing changed. The map is still unregognized by radmapcopy. I then tried to set like you gave 768 and the other one, but still no result. Shows up in radmapcopy - Map info: unknown. Maybe it has something to do that this is a ML extended map (7168x4096)?

Hitman


Contortionist

Okay, the map copy works now and everything is ok. But the program shows an error when going 100% with "Reading destenation file: Staidx0.mul". The error is "Read beyond end of file." It's by trying the statics on my site. Maybe I have to hex edit them too?

Hitman

Probably it would be the easiest way if you create the maps with MulEditor or something similar. At least MulEditor has a "Generate Map" feature which will give you a valid (but empty) map0.mul, statics0.mul and staidx0.mul.

Contortionist

No, you see. The old statics from my Lorien map don't work. Radmapcopy can not read them. I guess there is a similiar problem with them as with the map before it got fixed. I need those statics copied to my new map. Help if you can, please.

Edit: Here's what Radstar said: Staidx0.mul file size for map0 6144x4096 must be 4 718 592 bytes.

Hitman

The one on the download site had the correct size - maybe the problem raised later, so a redownload should fix your problem.

Contortionist

Apparently, the problem persists in the staidx file, as was mentioned by radstar. He also downloaded from our site. Is there a way to fix this with hex editor?

Hitman

I don't know what to fix - the size of that file is perfectly fine - it's exactly 4 718 592 byte.

nazghul

echo @@@@@@@@@ >> map0.mul

with the appropriate number of "@" (minus two - echo adds CR/LF).

worked perfectly with the damaged map from above

Nobby

Could you explain that a bit? I'm not too good with dabbling with files ;P Yeah... I'm a noob ;P

Nobby

Ok... Tried to take a peek at the UO-ME map lately (need a little bit of info from there) and it's not working.

Tried it "raw", freshly downloaded - failed
Tried it modified with the mapsizefix tool - fixed the size but it still won't start
Checked the statics - same story as above.

Any ideas ?

Hitman

But you *did* specify the correct map size? (896x512)

Nobby

Aye, this is my ini:

map=F:UOToolboxCEDsvrWyspy0map0.mul
statics=F:UOToolboxCEDsvrWyspy0statics0.mul
staidx=F:UOToolboxCEDsvrWyspy0staidx0.mul
tiledata=F:UOToolboxCEDsvrWyspy0tiledata.mul
radarcol=F:UOToolboxCEDsvrWyspy0radarcol.mul

[Parameters]
Width=896
Height=512

Edit:

Just had a few words with Eri and she says that it could be a matter of the lack of 0xffff support.

Hitman

If you talk about the "invalid map size" error, then no: cedserver doesn't even open these files if the file size is incorrect.