|
||
|
|
#1 (permalink) |
|
Hey all, hopefully someone can help me. I am planning on writing a script for runUO that can export character info, and then render an image from the 2d clients art for that char to be used for forum sigs and other web related stuff.
I am having some trouble figuring out the whole ItemID to art id relationship. I want to use the Ultima SDK to retrieve the animations from the mul's, but I am a little confused. It seemed that the GetAnimation is what I am looking for, but one of its args is bodyID. This seems to work fine for getting the body graphic, but I am not sure how to go about getting the item graphics. A robe for example, does not seem to work when I pass in its ID. Am I missing something? Any help is greatly appreciated. |
|
|
|
|
|
|
#2 (permalink) | |
|
Forum Novice
Join Date: Jan 2004
Posts: 143
|
Quote:
Do you mean like Uogamers myUOG? Where you can search for a character and see what they are wearing? I dont see why you need animations for that? Like the pic of the player standing there in the profile? |
|
|
|
|
|
|
#3 (permalink) |
|
Forum Novice
Join Date: Jan 2004
Posts: 143
|
Ok, I can only think of 2 ways you mean.
Way 1: The actual gump of the character would be pictureBox1.Image = Ultima.Gumps.GetGump(12); Way 2: The Char standing there. Frame[] frames = Ultima.Animations.GetAnimation(400, 4, 0, 0, true); pictureBox1.Image = frames[0].Bitmap; After that you should just beable to overlay a bitmap to put clothes on it and hue them. Not sure about this whole modify the code thing. |
|
|
|
|
|
#4 (permalink) | |
|
Quote:
(Way #2) Thats almost exactly what I want to do. I am able to get the bitmap for the char (just as you have shown), but the second part is where I am stuck. I was planning on rendering each layer of clothing (and weapons) once I have the first frame of the body. Im guessing the method I am using is strictly for retrieving the body frames. As far as why I am using animations, I was thinking at some point that I may want to render out an animated gif for each char. I probably will not do this right away, but would like to keep the option open. And thanks for the gump info, I may want to also render that out somewhere as well. |
||
|
|
|
|
|
#5 (permalink) | |
|
Quote:
What are you using for reference in your code? |
||
|
|
|
|
|
#6 (permalink) | |
|
Quote:
Last edited by astrocreep2k; 02-27-2006 at 01:32 PM. |
||
|
|
|
|
|
#7 (permalink) |
|
Forum Expert
Join Date: Mar 2004
Location: Germany
Age: 22
Posts: 300
|
For every ItemID there's a Tiledata entry. That holds the AnimID for that item. Warning: that can be overridden by the body.def file!
__________________
RunUO RemoteAdmin - Control your shard remotely and keep an eye on the page queue MulEditor - Modify gump, art, tiledata, multimap, localization files and map/statics. CentrED - A Client/Server based multi-user map editor. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|