NMP Viewer / Editor

Tikky

Tikky
VIP
Jun 30, 2011
213
114
110
Gone missing

Attachments

  • MapEditor [v2026.03.13].zip
    1.5 MB · Views: 20
  • Screenshot From 2026-03-13 12-37-58.png
    Screenshot From 2026-03-13 12-37-58.png
    1.6 MB · Views: 171
  • MapEditor [v2026.03.15].zip
    1.7 MB · Views: 16
  • MapEditor [v2026.03.16].zip
    1.8 MB · Views: 25
  • MapEditor [v2026.03.17-RC-1].zip
    1.8 MB · Views: 7
  • MapEditor [v2026.03.18-RC2].zip
    2 MB · Views: 36
Last edited:

Jev

Mir 4 Incoming!
VIP
May 16, 2017
5,025
34
3,233
330
Worthing, West Sussex
Back at it again, well done dude.

Quick question, does this support converting them over to zircon’s map format? If so this could be even more beneficial to the Onyx project.
 

Tikky

Tikky
VIP
Jun 30, 2011
213
114
110
Gone missing
Back at it again, well done dude.

Quick question, does this support converting them over to zircon’s map format? If so this could be even more beneficial to the Onyx project.
I have been working on a shared library that takes any Mir / WoOOL file and converts it to another format, however I feel native support would be better in the long run.

My tools and libraries are written in C++, but expose C API exports so they can be used via P/Invoke in C# projects (or the functionality could be ported to native C# if someone wanted to).

The library viewer and map editor are just snippest as I wanted a clean way of viewing and editing WoOOL stuff without a bunch of code:
if mir do this, if woool do that.

I will clean up the code and fix some issues and release that soon.
 
  • Like
Reactions: Jev

Sanity

LOMCN VIP
VIP
Nov 7, 2007
3,881
186
280
Where dose saved paths get stored? I linked data folder but it crashed, now when i try to open it, it just closes.

Nevermind, found it. very nice release, woool needed this for a long time
 
  • Haha
Reactions: Jev

Tikky

Tikky
VIP
Jun 30, 2011
213
114
110
Gone missing
Where dose saved paths get stored? I linked data folder but it crashed, now when i try to open it, it just closes.

Nevermind, found it. very nice release, woool needed this for a long time
Do you know why it crashed? Malformed path or what not? Just so I can handle the exception in code.
 

Sanity

LOMCN VIP
VIP
Nov 7, 2007
3,881
186
280
I linked the Remastered data folder, although the wpf files are the same, for some reason the map editor don't like something and crashes.
 
  • Like
Reactions: Tikky

Tikky

Tikky
VIP
Jun 30, 2011
213
114
110
Gone missing
I linked the Remastered data folder, although the wpf files are the same, for some reason the map editor don't like something and crashes.
Is this client something you can share for me to look at and maybe get working within these tools?
 

Sanity

LOMCN VIP
VIP
Nov 7, 2007
3,881
186
280
Are you supporting WPF libs or is it just SGL? i don't think its reading from wpf at the moment which might be the reason for the crash, remaster is only using wpf. The wpf are the same as normal woool.

Only map versions 11 and 12 i have problems with at the moment, could be like i said above that wpf not reading properly.
 
Last edited:

Tikky

Tikky
VIP
Jun 30, 2011
213
114
110
Gone missing
Uploaded MapEditor [v2026.03.15] to main post.

Changes:
  • Map version 1 - 12 now render a lot better.
  • Maps load a load faster, but L->A maps still require a lot of processing.
  • Maps can now use WPF, SGL or WPF + SGL.
  • Maps can have their data set ad-hoc in the map information panel
  • Added luminance to alpha to remove black background in certain libraries.
    • Settings are available in Settings window to customise this.
  • Added an export to minimap feature.
  • Added QOL features in settings
  • Added persistant state to restore opened maps when loading the tool.
  • Settings file should now save next to the tool.
  • Added a console for error reporting and map debugging
Big thank you to @Sanity @Lilcooldoode and @hectospark for supporting with this update.
To get a good client to use please see: https://www.lomcn.net/forum/threads/woool-2-9-6-6-data-158-maps-all-the-data.114586/#post-1220348
 
Last edited:

Tikky

Tikky
VIP
Jun 30, 2011
213
114
110
Gone missing
Update: v2026.03.16 (See original post attachment)
  • Improved loading by prefetching textures and processing them.
  • Improved rendering of tile grid to stop slowdowns
  • Added safeguard to unload unfocused maps preventing out of memory issues
    • Can be disabled in settings
  • Cell inspector fixed to show selected cell
  • Browse WPF files for NMP files. These are readonly but can Save as.
  • When selecting a Stamp, the menu now closes automatically.
  • Right click contect menu moved to middle mouse button, keeping right click for movement.
  • Added a Miniview map (top right) to quickly navigate through the map.
 

NightDance

Dedicated Member
Dedicated Member
Jun 21, 2013
89
3
35
更新:v2026.03.16(见原帖附件)
  • 通过预取纹理并进行处理来提高加载速度。
  • 改进了瓦片网格的渲染,以防止出现卡顿现象
  • 增加了安全措施,用于卸载未聚焦的地图,防止内存不足问题。
    • 可在设置中禁用
  • 单元格检查器已修复,显示选定的单元格
  • 浏览 WPF 文件以查找 NMP 文件。这些文件是只读的,但可以另存为。
  • 选择印章后,菜单现在会自动关闭。
  • 右键菜单已移至鼠标中键,右键单击仍可进行移动。
  • 添加了迷你地图(右上角),以便快速浏览地图。
Really appreciate your great work and sharing! @Tikky , but I found the latest 0316version will crash once reading v2 0.nmp, file attached. OS: Win10 21H2
 

Attachments

  • 0.zip
    201.9 KB · Views: 2

mir2pion

TL;DR
Veteran
Feb 21, 2013
3,591
2
679
265
I gave it a spin and it will need time to polish details to make it efficient map editor - it will need keyboard shortcuts like those I made for Crystal map editor (F keys to hide/show layers and many such like). I suppose for now, you have more important fixes to do, besides it requires doing actual map editing project to make good intuitive shortcut choices.

I tried to make prefab of just the bridge, switching off view of those other layers besides back layer seems to have worked (it is a tedious mouse work repeatedly opening menu to disable view of those other layers and I don't know what works - either switching off those Move and or Copy selection or switching off layer views in context menu.
1773623430654.png
I don't really know what am I doing here :D

The sand and the bridge are not on the same back layer but it 'catches' those sand tiles anyway. Stamping the prefab on map suffers from the same back layer 'ills' as in Crystal editor - depending on mouse position when you stamp, it includes only partial ground strips unless the mouse is on the 'right' tile when stamped as you see in this screenshot.

Only the leftmost bridge stamp paints the ground tiles correctly. I don't know yet if there is a mouse coordinate readout since if that is like in Crystal editor, you need to click even xy tile coordinate when stamping to place those sand tiles correctly. In Crystal editor I made little info panel that follows mouse cursor and displays current tile coordinates, so you know where to stamp.

But as I said, these things are best left for later, after more important fixes are done, like those you have just done in the post above.

Amazing how some map layouts and even technical map details are the same in Woool as in Mir. I don't have any idea of the history of these two games, how related they are, but related they are for sure.


1773619934730.png
Post automatically merged:

Right click contect menu moved to middle mouse button
How hum, middle mouse button... I have a three button mouse somewhere from the nineties but I think it has some weird connector, I think DB9 or was it called serial port or something :geek:
 
Last edited:

Tikky

Tikky
VIP
Jun 30, 2011
213
114
110
Gone missing
Really appreciate your great work and sharing! @Tikky , but I found the latest 0316version will crash once reading v2 0.nmp, file attached. OS: Win10 21H2
Screenshot From 2026-03-16 00-59-36.png

It loads for me, however, if I use older SGL data files the crash is there.
I will look into this to figure out why.
Post automatically merged:

I gave it a spin and it will need time to polish details to make it efficient map editor - it will need keyboard shortcuts like those I made for Crystal map editor (F keys to hide/show layers and many such like). I suppose for now, you have more important fixes to do, besides it requires doing actual map editing project to make good intuitive shortcut choices.

I tried to make prefab of just the bridge, switching off view of those other layers besides back layer seems to have worked (it is a tedious mouse work repeatedly opening menu to disable view of those other layers and I don't know what works - either switching off those Move and or Copy selection or switching off layer views in context menu). I don't really know what am I doing here :D

The sand and the bridge are not on the same back layer but it 'catches' those sand tiles anyway. Stamping the prefab on map suffers from the same back layer 'ills' as in Crystal editor - depending on mouse position when you stamp, it includes only partial ground strips unless the mouse is on the 'right' tile when stamped as you see in this screenshot.

Only the leftmost bridge stamp paints the ground tiles correctly. I don't know yet if there is a mouse coordinate readout since if that is like in Crystal editor, you need to click even xy tile coordinate when stamping to place those sand tiles correctly. In Crystal editor I made little info panel that follows mouse cursor and displays current tile coordinates, so you know where to stamp.

But as I said, these things are best left for later, after more important fixes are done, like those you have just done in the post above.

Amazing how some map layouts and even technical map details are the same in Woool as in Mir. I don't have any idea of the history of these two games, how related they are, but related they are for sure.


View attachment 39101
Post automatically merged:


How hum, middle mouse button... I have a three button mouse somewhere from the nineties but I think it has some weird connector, I think DB9 or was it called serial port or something :geek:

Appreaciate the feed back, I will see what I can do, however im not a UI/UX person :P
If you lack a middle mouse button, the same features are available in the menu at the top of the map area =]
 

NightDance

Dedicated Member
Dedicated Member
Jun 21, 2013
89
3
35
@Tikky yep, the nmp is from 2003 year client along with oringal SGL files.Attached one SGL file sample.
 

Attachments

  • stateitem.zip
    374.7 KB · Views: 2

mir2pion

TL;DR
Veteran
Feb 21, 2013
3,591
2
679
265
however im not a UI/UX person :P

Likely the editor won't be used for heavy map editing but if it should be, then some fine adjustments would be nice for smoother workflow. I don't know if I might be able to help with it, I only dabble with C# plus don't know if you plan to release the code (probably C++ ?)

But I only had a short look and don't know my way around it yet so take my comments with a grain, nay, a load of salt LOL.

Maybe one thing you might want to change - maps open with grid overlay showing and if you uncheck it (in menu Overlays - Show Grid), the next map you open again has grid overlay. Grid should be showing only when you select it on purpose, not be default.

Also the minimap format, instead of saving in png, could it be jpg? Maybe add it as an option in the Minimap making panel for those who are not after using the images as minimaps but just as map image. Map 500x500 tiles is 67MB png vs 12MB as jpg and visually I don't see a quality difference.

I am amazed how smoothly maps load, all those options in minimap making panel etc., damn nice job :cool:

-----------------------------------------------

While making minimaps from some maps I found on my PC, I noticed that if some map elements (objects) overlap the map floor tiles area, they are cut off in the minimap. Not sure if you even might want to fix that, it probably might work ok when the image is used as it was meant to, as a minimap....

The gate top part sticks out past the map area, what is shown in the editor against black background is not imaged in the minimap as seen on the left.

1773638653088.png
 
Last edited: