PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
MUL Python Module

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> POL Tools
Display posts from previous:   

Author Message
melanius
Site Admin


Joined: 28 Jan 2006
Posts: 37
Location: Greece

PostPosted: Fri Apr 14, 2006 4:09 pm    Post subject: MUL Python Module Reply with quote

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.

Author Message
Pierce



Joined: 02 Feb 2006
Posts: 256

PostPosted: Sat Apr 15, 2006 3:02 pm    Post subject: Reply with quote

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?

Author Message
melanius
Site Admin


Joined: 28 Jan 2006
Posts: 37
Location: Greece

PostPosted: Sun Apr 16, 2006 2:47 pm    Post subject: Reply with quote

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.

Author Message
Danielle



Joined: 07 Feb 2006
Posts: 97
Location: Pittsburgh, Pennsylvania

PostPosted: Mon Apr 17, 2006 11:10 pm    Post subject: Reply with quote

Basically a python version of the C# UO SDK?

Author Message
melanius
Site Admin


Joined: 28 Jan 2006
Posts: 37
Location: Greece

PostPosted: Tue Apr 18, 2006 5:36 am    Post subject: Reply with quote

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.

Author Message
Pierce



Joined: 02 Feb 2006
Posts: 256

PostPosted: Tue Apr 18, 2006 4:28 pm    Post subject: Reply with quote

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

Author Message
DevGIB



Joined: 06 Feb 2006
Posts: 93

PostPosted: Wed Apr 19, 2006 11:28 pm    Post subject: Reply with quote

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...

Author Message
MontuZ
Distro Developer


Joined: 10 Feb 2006
Posts: 293
Location: Myrtle Beach, South Carolina

PostPosted: Thu Apr 20, 2006 12:33 am    Post subject: Reply with quote

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...

Author Message
CWO



Joined: 04 Feb 2006
Posts: 691
Location: Chicago, IL USA

PostPosted: Thu Apr 20, 2006 4:40 am    Post subject: Reply with quote

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.

Post new topic   Reply to topic    PenUltima Online Forum Index -> POL Tools All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty