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: [BUG] mmaps tiles inside and outside of building  (Read 1647 times)

MadSochi

  • Registred Member
  • MWCS Enthusiast
  • *****
  • Posts: 1
    • View Profile
[BUG] mmaps tiles inside and outside of building
« on: September 20, 2013, 11:05:26 am »
Faced with such a problem :
I created a test location (map) with id 731.
Type of location : Plain and on it standing in a row 5 WMO objects ( 4 houses and a tower with a spiral staircase ).
Location is sealed in a patch-4.mpq in /data and patch-ruRU-4.mpq in /data/ruRU.
When i extract maps, dbc, buildings, vmaps, mmaps - location is determined and the tiles are generated for it.
That is to say, extraction goes smoothly .
When i start the server , enter the game world, teleporting to the map 731 , setting aggressive NPC on the ground next to the building and running around this wmo object - the NPC runs around the WMO object in the pursuit of me without passing through walls.
That is, mmaps has successfully created for this location and for these WMO objects.
The NPC knows that wall in front of him and running me around the building, as it should be when working mmaps.

BUT !!!!!!!!!

If i run into INSIDE(!) the building and start to climb the spiral staircase - the NPC goes through the stage of this stair and can not climb on it and staying on the 1st floor.
And not just on the 1st floor, but under the floor of the 1st floor, which is the ground on which the wmo object. On the land which the wmo object.
As well, if you still put this aggressive NPC on the 2nd floor inside the building and get him to attack me, forcing him to move - he immediately falls through the floor of the second floor on the 1st floor.

From this we conclude:
mmaps formed  just for outside the building's area and NOT formed for the INSIDE area of WMO object.
NPC sees the EXTERIOR walls of the object and does not try to go through them. But not sees INTERNAL stairs, floors and walls.

The data is built but not fully. Mmaps was extracted but such as wrong. :(

And most importantly: Why is this happening? Where is the mistake? And how to solve this problem?

Thank you in advance for any help. I struggle with this problem for half a year. My knowledge in these matters is lacking and on any forum I have not been able to help...
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [BUG] mmaps tiles inside and outside of building
« Reply #1 on: September 20, 2013, 12:54:44 pm »
You are wrong. If you disable vector maps, you will see pathfinding works quite well inside the WMO's.

However vector maps cannot be generated for WMO's placed through noggit because the data generated by Noggit is not Blizzlike.

You can read more on the issue here: viewtopic.php?p=27607#p27607
« Last Edit: January 01, 1970, 01:00:00 am by Admin »