Forum > Serverside Modding

[QUESTION] VMap collision for spells

(1/1)

Evilfairy:
Hey, I've only just come back to WoW modding after a long time and I'm trying to implement server-side collision checks for my map. I have altered Warsong Gulch's terrain and divided the map by spawning a large number of trees, however none of the objects I've placed (both trees and other objects) block line of sight when checked by the server. My process is as follows:


* Create a new MPQ archive containing world/maps/pvpzone03/
* Save the archive as patch-b.MPQ
* Backup and alter common-2.MPQ to remove the ADT's inserted into patch-b (e.g. removing World/maps/pvpzone03/pvpzone03_27_30.adt from common-2.MPQ)
* Run my modified (loads patch-b.MPQ) vmap extractor and then assemble vmaps
* Replace original common-2.MPQ
* Launch server and client
Now here's the part I don't get; the server is recognising my custom map files because height collisions work just fine. I can blink around without falling through the floor. It's the collision with trees and other objects that doesn't work at all.

There are a few spots where line of sight is broken but after some testing I've found that I don't think those are related to my current files. Another thing I've found is that the indoor check at the start is still being run and will dismount you if you go halfway down the lane and then back up again on a mount

Please help me out, this is incredibly frustrating and the ability to use line of sight is really important for the mod we're making

Let me know if I need to upload anything else (sorry for non-hyperlinks, spam detection)

thanks

stoneharry:
What emulator? Not sure about trinity/mangos but I'm pretty sure they require yet another implementation to get that sort of collision working.

With ArcEmu, mmaps (movement maps) are required to get that sort of collision to work.

Evilfairy:

--- Quote from: "stoneharry" ---What emulator? Not sure about trinity/mangos but I'm pretty sure they require yet another implementation to get that sort of collision working.

With ArcEmu, mmaps (movement maps) are required to get that sort of collision to work.
--- End quote ---

It's the latest TrinityCore revision. Are you sure that that's correct? We're not looking for pathfinding (yet), but rather just using objects such as trees (which when tested elsewhere will block line of sight) to block line of sight on the modified map

Switching to ArcEmu is not out of the question, though

EDIT: I also just realised this is in completely the wrong forum... how I managed that I do not know

Ascathos:

--- Quote from: "Evilfairy" ---
--- Quote from: "stoneharry" ---What emulator? Not sure about trinity/mangos but I'm pretty sure they require yet another implementation to get that sort of collision working.

With ArcEmu, mmaps (movement maps) are required to get that sort of collision to work.
--- End quote ---

It's the latest TrinityCore revision. Are you sure that that's correct? We're not looking for pathfinding (yet), but rather just using objects such as trees (which when tested elsewhere will block line of sight) to block line of sight on the modified map

Switching to ArcEmu is not out of the question, though

EDIT: I also just realised this is in completely the wrong forum... how I managed that I do not know
--- End quote ---
Trinity Core has MMaps on Branchs - they contribute (beside VMaps) to this. May or may not be what you search for, but the last kinks are being fixed currently.

EDIT: Also, moved this.

Evilfairy:
Slight update

When attempting to open the adt files that I altered in NoggIt in Taliis, I get errors like these: (still can't post links, see attach)

There is too much text so it fills the command prompt, but it's like that as far as I can see

When opening the "original" ADT, it loads fine with no errors at all

Any advice?

Navigation

[0] Message Index

Go to full version