• 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.

jasshelper compile error

Status
Not open for further replies.
Level 12
Joined
Oct 16, 2010
Messages
680
line x : Can not convert returned value from real to integer

function GetFadeFromSeconds takes real seconds returns integer
if (seconds != 0) then
return 128 / seconds
else
return 10000
endif
endfunction

my problem is this error is in the blizzard.j file not in my map...
tryed redownloading JNGP 2.0 and reinstalling it multiple times
the game is patched to 1.21b .

what can went wrong?
 
Level 30
Joined
Nov 29, 2012
Messages
6,637
Weird but by redownloading it, it should work by now, Try downloading it in its official site which is Blizzard Modding Site or your last resort is downloading it from internet which you cant assure if its safe or even working though.

Also 1.21 is too outdated. Latest is 1.26.
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
Im pretty sure if you have else without if attached to it, it will work, on his version at least

Also peeps dont say he should change the function, it is BJ so he cant change it unless he imports custom blizzard.j
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
Extract the blizzard.j from the War3patch.mpq (I think that's where the lates one is, I forgot, just try) and copy-paste it to JNGP\jasshelper\ folder.
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
You sure the map you're compiling doesn't have an imported blizzard.j? I don't think jasshelper replaces a file like how windows replaces a protected file.
 
Status
Not open for further replies.
Top