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

Mondain's Legacy Map Support
https://ryandor.com/forum/viewtopic.php?f=2&t=2457
Page 1 of 2

Author:  Puck [ Mon Aug 29, 2005 9:23 am ]
Post subject:  Mondain's Legacy Map Support

Do any program have mondain's legacy map size support?

I'm running a free shard and am having a problem with players using the newest patched client and crashing upon entering the area predesignated as the dungeons (the black). I think it's because the client is now hard coded for the new map size and my custom map is the old size. So I'm hoping that I can make a blank map that is the new size and copy my old map onto it.

Author:  Sydius [ Mon Aug 29, 2005 11:05 am ]
Post subject: 

If you do not care about using the additional space, you could just pad the file with 0?s until it is the appropriate size. That should work just fine as far as the client is concerned?

Author:  Puck [ Mon Aug 29, 2005 2:50 pm ]
Post subject: 

Oooh, sounds like a plan.... How do I do it? I know how, just testing you... <_< Honestly...

Author:  Sydius [ Tue Aug 30, 2005 8:37 am ]
Post subject: 

Erm? I bet there are a million programs available to do it, but I will write a simple one when I get home if no one else has a solution by then. It should only take 5 minutes or so?

Something like:

#include <stdio.h>

#define AMOUNT_TO_PAD (new size - old size goes here)

int main(void) {
char data[AMOUNT_TO_PAD];
for(int i = 0; i < AMOUNT_TO_PAD; i++) {
data[i] = 0;
}

FILE *fo = fopen("map0.mul", "ab");
fwrite(data, AMOUNT_TO_PAD, 1, fo);
fclose(fo);

return 0;
}

?.

That is horrible off-the-top-of-my-head code? It should, with a few minor fixes I am sure, work, though. You should use streams, the memset function (which I am too lazy to look up which header it is in atm), and add the ability to specify the amount to and file to pad. But hell, the above is a quick solution which should work just fine.

Author:  punt1959 [ Tue Aug 30, 2005 9:54 am ]
Post subject:  dont forget staidx0.mul

dont forget staidx0.mul

That should be padded with -1

Author:  Sydius [ Tue Aug 30, 2005 1:22 pm ]
Post subject: 

Yes, yes, good point.

Author:  Sydius [ Tue Aug 30, 2005 1:28 pm ]
Post subject: 

I think the best solution for this particular problem (besides modifying the map-creation tools to support the new size) would actually be two programs:

First would be a file-generation tool, which simply generates a file by repeating a given byte for a given number of times. This could have other (obscure) uses besides UO emulation.

The second program would simply be a file merging program that merges two files together (many such programs already exist, I am sure).

Both programs would be easily configurable via command-line arguments.

Then, you could easily just create a batch file that executes on both map0.mul and staidx0.mul, giving the proper parameters.

That way, it is a generalized solution comprised of programs that could potentially be useful on their own in other applications.

I will write both tonight, perhaps.

Author:  Puck [ Tue Aug 30, 2005 2:03 pm ]
Post subject: 

I love this place and you guys. lol. So helpful.

Author:  Sydius [ Thu Sep 01, 2005 8:24 am ]
Post subject: 

I made the file generation tool in Java since everybody is telling me I should know Java. I do not like Java, and got distracted by the Battlefield 2 demo before making the merging program.

I think the BF2 demo is so damn good that you really do not need to buy the game! :-)

Author:  Hawkens [ Thu Sep 01, 2005 4:22 pm ]
Post subject: 

Sydius wrote:
I made the file generation tool in Java since everybody is telling me I should know Java.


They should be drawn and quartered!

Author:  Sydius [ Thu Sep 01, 2005 4:47 pm ]
Post subject: 

My thoughts exactly. However, that said, my cousin just became one of the head-honchos over at Yahoo! Games? and I could tolerate a sacrifice in morals in exchange for being able to develop stupid little Java games and get paid to do so.

Author:  Puck [ Sun Sep 04, 2005 8:02 pm ]
Post subject: 

Now with the newest patch I can't log in at all withouit 3d crashing. I wonder if it's the custom mpa size doing that too. Can't wait to get this all fixed.

Author:  punt1959 [ Sun Sep 04, 2005 8:35 pm ]
Post subject:  Map editor

WorldMaker Map EDitor does support the ML size (and older size as well). But it is a map editor, not a generator.

Author:  Puck [ Mon Sep 05, 2005 1:50 am ]
Post subject: 

Will it allow for copying my old map over the ML map or perhaps resizing?

Author:  punt1959 [ Mon Sep 05, 2005 6:04 am ]
Post subject:  This will

No, it only edits the current map.

However, this thread

http://www.orbsydia.ca/forum/showthread ... #post17726

Has a utility that will extend your statics and map to ML size. Beware, it is untested!!!!!!

Author:  Puck [ Mon Sep 05, 2005 10:24 am ]
Post subject: 

Well, I tested the tool out telling it to extend it using black tiles. But it turned out to be random tiles like coast and nodraw in a repeating pattern. And 3D still crashes on startup with the patch. =o/

EDIT:
Never mind, it's crashing even when opening it up as normal. Been doing that since the latest patch. It hates me. And I swore it just muttered something about my weight....

EDIT: Fixed the problem with crashing on certain areas with the expanded map

Author:  punt1959 [ Tue Sep 06, 2005 3:40 am ]
Post subject:  Updated

Puck wrote:
Well, I tested the tool out telling it to extend it using black tiles. But it turned out to be random tiles like coast and nodraw in a repeating pattern.



Sorry about the random data. I made a small update for others,hopefully it wont be random anymore

Author:  Sydius [ Wed Sep 07, 2005 9:26 am ]
Post subject: 

I thought you were likely to write it, punt, if I procrastinated long enough. Sorry everyone, I got distracted. Like usual, right?

Author:  Stormcrow [ Wed Sep 07, 2005 5:25 pm ]
Post subject: 

So great to know punt is trying to keep the tools up to date, but do the emulators support the new client? I've downloaded it (thanks EA) and since I don't have SE either it kills 2 birds with 1 stone for me but I haven't wanted to install it yet. What issues besides our map generators not working anymore are we facing?

Author:  Darien Dragon [ Thu Sep 08, 2005 1:59 pm ]
Post subject: 

I'm a bit curious about this myself. I'm running AOS patched up to the most recent client and I haven't had a single issue anywhere on the map.

Their new patching system allows people to simply input a code that'll allow them to go to the new areas (SE and ML) so I would assume I should have the issue even without running the ML client? I can visit Tokuno since it is coded into the emulator, at any rate. I should assume that ML would be available too.

Perhaps this is just a 3D issue?

Author:  Sydius [ Thu Sep 08, 2005 2:33 pm ]
Post subject: 

The ML map is just an extension of the original. They cleverly put it off to the right, so the original portion of the map is the same in the file ? the file is just bigger. So long as the emulator does not care whether or not there is leftover data, it should load the ML version of Brittania fine ? it just will not have the ML part.

Author:  Darien Dragon [ Thu Sep 08, 2005 2:44 pm ]
Post subject: 

I was just curious as he was using a custom map as am I. I do have one issue with unused tiles, but that's a different story. :)

Author:  punt1959 [ Thu Sep 08, 2005 2:47 pm ]
Post subject:  I guess the question was

I thought the question was, once patched (client) to ML level (which latest patch brings all clients to), the map0.mul is larger. If you have a custom map0 , made under the older size, will the new client work with the old size (not emu)? I thought that was the original question, and issue that was being addressed. For custom maps, it "seemed" (based on this thread) that the new clients wouldn't handle the old size, and thus the custom maps needed to be extended.

No idea if that is true or false.

Author:  Darien Dragon [ Thu Sep 08, 2005 3:00 pm ]
Post subject: 

Well my custom map is of the old map0 size. Patched up to 5.0.0b nobody has had any issues entering the dungeon regions. Though one user running SE is seeing unused tiles instead of black tiles out there... but I think it's a different issue.

As of right now I don't think custom maps of the old size running on 5.0.0b clients is a guaranteed problem since it obviously isn't happening 100% of the time. Albeit I am slightly concerned by the possibility.

Author:  punt1959 [ Thu Sep 08, 2005 3:17 pm ]
Post subject:  Neat

Good to know. yea, it seemed he had other issues anyway, with his client crashing.

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