This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [SOLVED] custom wmo adding doodads ?  (Read 953 times)

stan84

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 184
    • View Profile
[SOLVED] custom wmo adding doodads ?
« on: March 16, 2014, 10:20:07 am »
Hi

Because i'd like to use  deadmines enterance as separate building i decided to cut all tunnels and use barn and silo. After blender work i converted obj to wmo, and recevied 2 files, root and part wmo. It works in game, then time has come for adding the doodads. I've opened it with wmoeditr, flagged part wmo - HAS DOODADS and added some inside. But doodads not showing after saving and reloading. Tthey appears on the list but not showing. Is there any solutin for this?

If not i think to add all doodads in blender and make them as part of wmo while conversion in mirror_machine


found solution on the board, search option is sometimes useful :P
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stan84

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 184
    • View Profile
Re: [SOLVED] custom wmo adding doodads ?
« Reply #1 on: March 22, 2014, 01:21:47 pm »
There is an solution for adding doodads to custom wmos, made with MirrorMachineQt.
While 3ds or obj conversion  the MirrorMachineQt outputs wmo part files without MODR chunk. Without this chunk all added doodads by  WMOeditor not spawns ingame and client crashes while character will go closer to custom wmo.  So there is an simple soluton for this.


- make clean brand new wmo
- hexedit part file where doodads should be
- find NBOM chunk
- insert new chunk before NBOM such as: RDOM 02 00 00 00 00 00
- now the file size is increased by 0A bytes , so we need change information about file size in PGOM chunk
- scroll up to start of the file and find PGOM chuk
- add 0A to first unit32 after PGOM ( 0x10 offset from file beginning) for example my file size before adding 0a was 09 6D B0. so 09 6d b0 + 0a =  09 6d ba. Well done with hexediting.
- create patch with new wmo and place it to wow data folder
- now run WMOeditor, fell free with adding doodads. Remeber put propper flag HAS DOODAD for desired part wmo files. (08 00)


tip: it much easier when obiects in modeling program are grouped, it avoids dozens of small part wmo files after conversion.
 
quick proof:

cheers stan
« Last Edit: January 01, 1970, 01:00:00 am by Admin »