[Solved] A way to know what Warcraft III version executes the map ?

Level 9
Joined
Feb 27, 2019
Messages
298
Edit: solution in the following post Detect Game Version (GetPatchLevel)

Hello,

I just discovered that my map works fine with Warcraft III 1.30.4, but not with Warcraft III 1.31. The problem is on function "Unit - set base damage", aka BlzSetUnitBaseDamage in JASS. I use it to increase the base damage of the 1st weapon of my unit.

But:
- In Warcraft 1.30 weapons are 1-indexed (weapon 1, weapon 2)
- In Warcraft 1.31 weapons are 0-indexed (weapon 0, weapon 1)
And Blizzard doesn't have the intelligence of doing the conversion.
So I can't have it to work at the same time for 1.30.4 and 1.31...


...Unless I can detect what version of warcraft III is running ??
Is that possible ? If yes, could you please explain me how you do that ? ^^
 
Last edited:
Level 8
Joined
May 21, 2019
Messages
435
Hello,

I just discovered that my map works fine with Warcraft III 1.30.4, but not with Warcraft III 1.31. The problem is on function "Unit - set base damage", aka BlzSetUnitBaseDamage in JASS. I use it to increase the base damage of the 1st weapon of my unit.

But:
- In Warcraft 1.30 weapons are 1-indexed (weapon 1, weapon 2)
- In Warcraft 1.31 weapons are 0-indexed (weapon 0, weapon 1)
And Blizzard doesn't have the intelligence of doing the conversion.
So I can't have it to work at the same time for 1.30.4 and 1.31...


...Unless I can detect what version of warcraft III is running ??
Is that possible ? If yes, could you please explain me how you do that ? ^^

Why do you want it to run on 1.30.4?
1.31 changed so many things that it's going to be a general issue to stick with 1.30.4 anyway.
 
Level 9
Joined
Feb 27, 2019
Messages
298
Thanks buddy !

Why do you want it to run on 1.30.4?
1.31 changed so many things that it's going to be a general issue to stick with 1.30.4 anyway.
You are right, at the long term I will switch to 1.31 ! However this is not stable already no ? Or did 1.31.1 almost fix everything ? Let me know if it's already OK to switch to 1.31.1 for World Editor plz ^^
 
Level 8
Joined
May 21, 2019
Messages
435
Thanks buddy !


You are right, at the long term I will switch to 1.31 ! However this is not stable already no ? Or did 1.31.1 almost fix everything ? Let me know if it's already OK to switch to 1.31.1 for World Editor plz ^^
Sorry for the late reply, but yeah, it's stable now.
 
Top