MUL Python Module

Here you can post about UO Tools not specific to POL, but to the UO Client. This includes map editors, custom clients, mul editors (except UOFiddler, use it's forum), and so on.

Moderator: POL Developer

Post Reply
melanius
Neophyte Poster
Posts: 39
Joined: Sat Jan 28, 2006 12:39 pm
Location: Greece
Contact:

MUL Python Module

Post by melanius » Fri Apr 14, 2006 12:09 pm

The last few days I've been working on a Python lib to allow access to UO's format (MUL files).

The code is in a private repository right now, but I will be uploading it to POL's repository soon, so you can check it out.

I'd like to hear some input on what kind of things you'd want the lib to allow you to do.

Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Post by Pierce » Sat Apr 15, 2006 11:02 am

That sounds great. Before i perhaps write a lot of useless stuff: What means "allow access to UO's format (MUL files)." exactly.
Does it mean some read/edit/write access?

melanius
Neophyte Poster
Posts: 39
Joined: Sat Jan 28, 2006 12:39 pm
Location: Greece
Contact:

Post by melanius » Sun Apr 16, 2006 10:47 am

It means that it will allow you to read the file contents.

From that point, one could write an actual app that would allow you to modify the files themselves, as the module allows you to access the file structure.

Danielle
Grandmaster Poster
Posts: 104
Joined: Tue Feb 07, 2006 3:32 pm
Location: Pittsburgh, Pennsylvania

Post by Danielle » Mon Apr 17, 2006 7:10 pm

Basically a python version of the C# UO SDK?

melanius
Neophyte Poster
Posts: 39
Joined: Sat Jan 28, 2006 12:39 pm
Location: Greece
Contact:

Post by melanius » Tue Apr 18, 2006 1:36 am

I don't actually like the way the Krrios' coded the SDK, so before that implementing the basic stuff of the module, I'd like to hear if people have any suggestions on what should be exposed by the MUL module.

Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Post by Pierce » Tue Apr 18, 2006 12:28 pm

I'am not quite sure if i understood you correctly.
I gave an example on how i think it could work. That's always the best way.
One of our scripters writes a tool to read/write multi.mul files.
This tool writes all multis into a readable text format or writes a new multi.mul from these text file/s.

With readable i mean:

Multi xxxx
{
Item1 color x y z objtype specialflags/options
Item2 color x y z objtype specialflags/options
.....
}

Just to give an example in this case of a multi mul.

So if i understand you right, it would be great if such a module can read e.g. staticN.mul and write it to a readable text format like above.
Every Pol scripter then has the opportunity to change these files with custom own written Pol commands like we do with the multis.
For statics this could be e.g. search all items of objtype xx in area nn to mm and delete them/set them 1z up/if(... do ...) and so on.
After changes made and a new text file is written the module should recompile it in this case to a new staticsN.mul and the staidxN.mul

I think this can be done for every mul. It perhaps sounds complicated, but the possibilities are wide open cause this way you can customize it. To stay at my first example, we can read a e.g. sphere .wsc file or a UO Architect File or whatever into Pol (custom scripts). Check that multi in this case single items, save or edit it and rebuild the multi.mul/idx.

Hard to explain, i hope it sounds not to weird :wink:

DevGIB
Grandmaster Poster
Posts: 247
Joined: Mon Feb 06, 2006 6:12 am

Post by DevGIB » Wed Apr 19, 2006 7:28 pm

you know what would be really good and id love to see... is a program that can make patches for mul files for example so you only need to send a small part of a mul file and it updates the mul file on the clients computer... just so you dont have to be transfering like 23mb everytime you make a change...

User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am
Location: Myrtle Beach, South Carolina

Post by MontuZ » Wed Apr 19, 2006 8:33 pm

DevGIB wrote:you know what would be really good and id love to see... is a program that can make patches for mul files for example so you only need to send a small part of a mul file and it updates the mul file on the clients computer... just so you dont have to be transfering like 23mb everytime you make a change...
Yeah, one that's also easy to use...

User avatar
CWO
POL Expert
Posts: 1154
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

Post by CWO » Thu Apr 20, 2006 12:40 am

thing is, what happens when the mul you wanna patch isnt the same one you were working with... Like if they patched to a future version with major changes. You end up with another UOPatch like thing where it fails all the time.

CrazyMan
Expert Poster
Posts: 71
Joined: Wed Apr 05, 2006 8:08 am
Contact:

Re: MUL Python Module

Post by CrazyMan » Thu Jan 08, 2009 1:21 pm

melanius, i hope your MUL Python Module can export images from mul. Its need for website ^)))
Where i can download it? Its now in SVN?

melanius
Neophyte Poster
Posts: 39
Joined: Sat Jan 28, 2006 12:39 pm
Location: Greece
Contact:

Re: MUL Python Module

Post by melanius » Fri Jan 09, 2009 9:30 am

I'll have to look around for it, it's in one of my local repos. I'll let you know, but not sure in what state it was left back then.

CrazyMan
Expert Poster
Posts: 71
Joined: Wed Apr 05, 2006 8:08 am
Contact:

Re: MUL Python Module

Post by CrazyMan » Fri Jan 09, 2009 1:45 pm

I can help you with the end of the development.
Just mail me : kaydannik.a AT gmail DOT com

Post Reply