• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

vJass Miscellaneous Utility Functions Compile error

Status
Not open for further replies.
Level 3
Joined
Sep 5, 2019
Messages
33
I just downloaded vJass tonight to fix another problem I had with jass, and it fixed that problem. However, now there is a compile error from a "Miscellaneous Utility Functions". I dont know how to edit or access these functions to fix this. I have disabled all my own triggers, and it still shows the error, so its some built in function I assume.

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

and the error is: Cannot convert returned value from real to integer

If I knew where these functions were, I could turn said value R2I, or even just disable the function (I dont believe I use it much). If I were to edit blizzard.j or common.j would that fix it? (also how exactly would I do that?) Or is the issue elsewhere? Thanks!
 
Whatever version of JASSHelper you’re using is packaged with pre-1.24b common.j and Blizzard.j files. That was the patch that removed the return bug and forced the compiler to check all return statements in a function instead of just the sequentially last one.

As I said in your other thread there should be no need to ‘download’ a vJASS precompiler as that’s all natively in the editor now.
 
Where can I get the newest version of vJass? Iv done a bit of searching, and am not exactly sure what i should look for. A lot of the links I find dont work, or I dont have 'permission' to view them. Also, wc3.net used to work great for me, I got tutorials there and stuff, but recently whenever I try to visit, google blocks me and says there are harmful programs there.
 
Status
Not open for further replies.
Back
Top