Adding custom items and weapons to SoM (unsticky me please)

#1
We all use metasequioa because we know it has an export as x file in the save as.
You'l see SoM's tools as x2mdo, x2msm, and x2mhm. The tool x2mdo is simple - probably the easiest to work with.
I'll go through the process for adding custom weapons first. Its lengthy, so pay attention. ‎  Wink


Ill do this process with metaseq. Download LE if you want the free x exporter. The textures you made for you're model have to be 256x256 dimensions, and they need to be in you're metasequioa texture folder, and saved as a .bmp file. (windows bitmap.)
Make sure in metaseq you have selected the texture from the metasequioa texture folder, located in the install area.

You'l need the SoM Tools https://www.swordofmoonlight.com/SOMTool...MTools.exe
And the tool translation.
https://www.swordofmoonlight.com/SOMTool...20v1.1.exe
Get these setup, install you're tools to an easy location say c:\tools remember the directory.

Now for the kicker. Each time you export a model to this folder, you need the texture files in there, as they need be converted to a txr file. So make sure EVERY texture in you're model that you're converting goes there, or else the texture will not show.

Okay, next create you're model and save it as an x file in you're tools folder, with only four characters lets call you're first model swd1. As i mentioned, Metaseq has a x file exporter, Metaseq LE has it for free. So its saved in you're tools folder? Grand.
Next click on the "Search programs and files" in you're windows start menu. Type in cmd, hit enter.
Command prompt should be up. Type in cd\tools (assuming you installed it in the location i afore mentioned.)
Now type x2mdo.exe swd1.x
If you followed the process, you'l have no errors.
If you get a "texture could not be read" error, you have not selected the texture from the metasequioa folder properly.

So thats you're basic model. You'l also need the swing model. A weapon needs 2 parts, base model and swing model.
See attached to this post a download for the perfect swing model and size, you'l need it.
So once you have aligned you're weapon with my swing model (rotate, scale, move, etc.) you can save it, but pay heed as you will need to change the file name.
Each swing model needs to correspond to the standing model. So in this case you'l save it as swd1_0 (that is 0 as in the number.)
Again type cmd if you closed the window, if not type in x2mdo.exe swd1_0.x
You'l have the swing model.

Now then! Take these pieces, and place them into you're SoM/items/model folder. Make sure every texture is in there too.
You'l now need a hex editor. I use this. https://www.swordofmoonlight.com/SOMTool.../xvi32.zip
Okay open up you're hex editor. Go to open. Now locate you're SoM install location. Go to items, then prof.
Locate 003.prf and open it.
Now, click on the L of the Long Sword. Rename it. Use Tool Sword as i have wrote for this first time.
[Image: hex1.jpg]
Now click on the i of i003.mdo rename it to swd1.mdo
[Image: hex2ft.jpg]

Follow this last part carefully. ‎  Rainbow
Go to file. Save as. type in swd1.prf and save.
Do not forget the .prf at the end of the file you are saving as or it wont work.
Now go to parameter editor in SoM and look up Weapon: Tool Sword
Adjust the damage accordingly!

Some pointers.
If you are creating a longsword, dont extend the length past my swing model for the swing model.
Other items, such as helmets, armour, etc do not need the extra _0 file.
Here is the table of .prf for other pieces you may need.

(Taken from dmp design's tutorial)

035.prf : Head slot item.
044.prf : Body slot item.
060.prf : Arm slot item (more details on gloves in the weapon/glove section).
068.prf : Leg slot item.
080.prf : Shield slot item.
092.prf : Accessory slot item.

Any questions, just ask!


Attached Files
.mqo   exact sword side.mqo (Size: 141.75 KB / Downloads: 224)
Reply



Messages In This Thread
Adding custom items and weapons to SoM (unsticky me please) - by Verdite - 2011-05-11, 11:43 AM



Users browsing this thread:
1 Guest(s)