Adding map pieces to SoM

#1
To add custom map pieces to SoM you'l need to follow these instructions.
Please follow my tutorial on adding custom items to SoM. This process is exactly the same except for the tool commands you type into the command prompt.

The tools are:

x2msm : creates visible data.

x2mhm : creates collision data (this one isnt so easy to figure out.)

prtsedit : the parts editor that adds the map pieces to the map editor.

Okay... So basically if you wanted to create a map piece, save it as an x file as before.
However this time, type in any of the tools listed here for whatever function you wish to use that .x file for.

So lets just say you created a pillar in meta. Saved it as an x file called, say... buns.x in your tools folder, and you've got the command prompt up with your tools folder location.
You'd type x2msm.exe ‎  buns.x

Take your files and place them in the corresponding folders in your data/map folders.
So say if you made an .msm piece it'd go into the msm folder.
Next, you'd open your prtsedit, not in the command editor. Wink

(You might need to follow the attached picture file to follow this properly.)
Look for buns.msm in the msm dropdown list.
Assuming you've downloaded my mhm pack and placed the files in the correct location, select hightem.mhm in the collision data dropdown menu.
Assuming you've downloaded my icons pack, select a random icon of mine.
If you want to overwrite part 0, go ahead. Want to overwrite another? Type a different number, but you cant exceed the maximum. (The number being 1023)

Okay your piece should be available in the map editor.

Important notes

Dont exceed 2000 vertices for a single piece or the editor will crash, and possibly not be able to show in the runtime.
Be careful when creating faces. SoM has given me jip over this, but by copying and pasting the model it seems to negate this.
Creating full blocks are much better for maps. Creating half a block would require creating a corner to join it. Go easy on yourself. Smug
Ive attached a door height template for meta which works with SoM's door stock objects.
The file castlegrass.mhm is for floors.
The file hightem.mhm is for pillars. It can be used for water too as the collision goes further down than normal.

Cheers.
Verdite


NEW: MHM tutorial

So i saw that there wasnt enough info on MHM pieces so ill do a quick guide on how to get it right the first time.

Flat mhm pieces

Providing the outer sections of the mhm piece are untouched (they dont dip, and they dont deviate from the other lines around them) then you can dip the central section easily, but creating a simple plane in the create primitive tab, then go to object > mesh smoothing > and select 2. You can dip the central vertice.
Make sure your sets have this setup. A simple, flat plane. This means that if you follow the rest of this section you'l have no problems.

Elevated pieces

Create a plane, click on move and select the far edge closest to the blue line (the z axis) when loading a piece into SOM the map piece will be facing towards the z axis. (north.) Remember this z axis rule for SOM or you'l have alot more work.
Go to the Y axis in the move panel. Input 45. This is 45 degrees. ‎  Smile

Create a new primitive. Click on the face (the gray bit) and move it up on the Y by inputting 45 again.
The plane will be at the right level.

[Image: elevate.jpg]

Corners

Creating corners was a pain for me, until i realised how simple it was.
> Elevated corners
Create a plane, and divide it by four by using the object > mesh smoothing > and select 2 method.
Click the vertice on the top right, and the vertice in the center. Move them up by inputting 45.

> Corridor corners

This ones probably the hardest for anyone new to metaseq.
Create your corridor. If you want to practice, create a plane and extrude (use extrd) it upwards a good way.
Remove both faces (gray areas) on the z axis. (see pic 1)
[Image: facecreation.jpg]

Use create, and click on face in the create box. Lower your view so you are click on the four corners of the lowest sections of the box. (red squares in pic)
You'l create a bottom for your box. Now select all, go to selected and click invert.
If your created face isnt there it means you havent clicked on the right object in the obj panel.
Now its quite simple. Simply delete the face on the X axis. Then create a face on the Z axis. (see pic.)

[Image: cornerip.jpg]

You'l need to manually project your texture onto the faces.


Attached Files Thumbnail(s)
   

.zip   Mhm.zip (Size: 2.35 KB / Downloads: 211)
.zip   Icons.zip (Size: 48.02 KB / Downloads: 202)
.mqo   door height template.mqo (Size: 1.3 KB / Downloads: 207)
Reply

#2
Good simple explanation.
The swapper tool here might work well with your directions. Wink
Reply

#3
Updated this tutorial.

Whats the swapper tool for?
Reply

#4
It lets you auto-swap out map Pieces rather than overwrite the old ones, so you can use either the new or the old.
Reply

#5
Does anyone know what the optimise flag means?
Reply

#6
The settings have to do with when a map piece 'pops' invisible as it goes out of view behind a wall etc. So it 'optimizes' a map by drawing as few Pieces on screen as possible- not a good thing since modern hardware can easily handle drawing all map Pieces. I would just leave the flags unchecked or leave 'Optimize Map' unchecked when you compile your map in the Map editor. Then they won't blink out when they go behind stuff.


Attached Files Thumbnail(s)
   
Reply

#7
Oh I wanted to ask you this long before but every time I logged in the forum I forgot it. ‎  Sweatdrop


So I don't like the water tile in the editor because it is too unrealistic.
I can make transparent water tile but can I make it move?
Reply

#8
Done a quick update on mhm creation.
Reply

#9
I would like to redo this tutorial and finalise it. If anyone has any new findings please let me know so I can add it in.

Would people prefer an image tutorial or a video tutorial? Do ya like mah sekhsay voice?! ‎  Drool
Reply

#10
I found the video tutorials you sent me very informative, just make sure you record the mouse. Tongue
~ ‎® Indie RPG developer.

Twitter: twitter.com/JC_Bailey1112
Reply





Users browsing this thread:
2 Guest(s)