Ryandor.com

Forums
It is currently Sat Jul 05, 2025 3:20 pm

All times are UTC - 7 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: UO Library of functions?
PostPosted: Tue Feb 01, 2005 10:28 am 
Offline
Peanut Gallery
Peanut Gallery
User avatar

Joined: Sun Jun 02, 2002 8:53 pm
Posts: 1864
Location: Hayward, CA
Would anybody be interested in a library of functions that make loading/manipulating the UO data files super easy?

I would leave out classes so that you could link it to any language. They would also take advantage of file-mapping and assembly optimizations.

_________________
Blog: http://www.sydius.org
Web: http://www.sydius.net


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 02, 2005 3:06 am 
Offline
Not your daddy
Not your daddy

Joined: Mon Nov 18, 2002 2:18 am
Posts: 1224
Location: Oregon State
That sounds very usefull for sure man, Id be interested at least :)

_________________
Forget what you know, know what you forget.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 02, 2005 10:50 am 
Offline
Peanut Gallery
Peanut Gallery
User avatar

Joined: Sun Jun 02, 2002 8:53 pm
Posts: 1864
Location: Hayward, CA
What functions do you want to see included?

For map-altering purposes, I think I?ll include two versions of every function, one which loads the map initially into RAM, and one that does not. That way, if you need to make a ton of changes, it would be super-fast while in RAM, but if you don?t, then you can save the load time and the RAM requirement by only grabbing the stuff you need.

I can write the code if you guys can tell me what you would like.

_________________
Blog: http://www.sydius.org
Web: http://www.sydius.net


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 02, 2005 10:56 am 
Offline
Peanut Gallery
Peanut Gallery
User avatar

Joined: Sun Jun 02, 2002 8:53 pm
Posts: 1864
Location: Hayward, CA
Some ideas:

For mapx.mul:

A function to get/write a block (8x8) of tiles.

A function to get/write a single tile (ID, alt, or both).

A function to load/write and convert the entire map into the standard ?X by Y? form (like an image, without the blocks).

Functions to load/write the map from RAM, and give you raw access to the data while in RAM.

For statics:

A function that gives you/writes a list of items within a (8x8) block.

A function that gives you/writes a list of items at a particular x/y (and x/y/z) location.

A function that gives you/writes the corresponding ?radar? color for an item id.

_________________
Blog: http://www.sydius.org
Web: http://www.sydius.net


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 06, 2005 9:53 am 
Offline
Grand Master
Grand Master

Joined: Thu Jul 17, 2003 8:54 am
Posts: 971
Very interested in this!

How about:

Copy functions for both map and statics (provide x/y/offset info and off it goes)

A function to generate multimap.rle automatically.

Search and replace functions.

_________________
-= HellRazor =-
Shattered Sosaria is coming!
http://www.shatteredsosaria.com


Top
 Profile  
 
 Post subject: similar
PostPosted: Sun Feb 27, 2005 12:13 pm 
There is a similar libarary (valley) over on the worldmaker site. Although it is c++ class based (so not meeting the same objectives as what you describe), it is a library class for manipulation of most of the mul's. This library is only c++, and is used by Worldforge.


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group