• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Should I Remove All Terrain Deformation Spells to Lower Risk of Desync?

Level 21
Joined
Mar 16, 2008
Messages
959
Reading that any terrain deformation spell can cause a desync in multiplayer games. Why not just remove every spell, replace it with a similar spell, or just create a triggered spell that does something similar without deforming the terrain? Am I going overboard or is this a valid concern? Any comments appreciated. Thanks.

Is there a comprehensive list anyhwere? Does War Stomp deform the gruond? Is it a good replacement to thunderclap or slam given this deformation concern?
 
Last edited:
Level 7
Joined
Jun 30, 2017
Messages
50
Terrain deformations desync only in case if you've been using GetLocationZ, BlzGetUnitLocalZ and similar natives. On their own they should be fine.

If by some chance you're using Lua, you might want to take a look at HeightMap.

Otherwise, if you are using GetLocationZ, it should be fine as long as you're not using that value for gameplay reasons (i.e. Target is below 50 height, therefore deal damage to it) and using it only for visual purpose (like adjusting the height of some effect, projectile, etc..)
 
Level 21
Joined
Mar 16, 2008
Messages
959
Are you prepared to say these threads are "wrong"? I don't mean to be argumentative but just want to be sure.

 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,877
Are you prepared to say these threads are "wrong"? I don't mean to be argumentative but just want to be sure.

Shockwave and Thunderclap exist in Melee games (ladder matchmaking) and I don't think those players ever experience desyncs or at least enough of them that it was ever a concern. So I would assume that desyncs are mostly from modding, like Insanity said about using GetLocal() functions. Then again, Warcraft 3 is a mess so who knows for certain...
 
Level 18
Joined
Feb 2, 2009
Messages
217
Personally I have encountered desyncs with Terrain Deformation where things like invisible platforms, bridges, and other 'walkable' destructibles are involved. I have tried to recreate some of the scenarios i've experienced to varying success but it happens enough in older maps for the spawn-based strategy community that most of us just code our Warstomps or use crushing wave in lieu of Shockwave.
 
Top