[vJASS] This is getting really annoying!

Status
Not open for further replies.
Okay,I'm officially annoyed right now.This damned bug always appear everytime I saved my map.At least lead me to the bug instead of telling.It says couldn't convert a real to integer,while showing an else.
 

Attachments

  • THIS REALLY ANNOYING BUG!!!.png
    THIS REALLY ANNOYING BUG!!!.png
    24.1 KB · Views: 170
JASS:
function GetFadeFromSeconds takes real seconds returns integer
    if seconds>0.0 then
        return R2I(128/seconds)
    else
        return 10000
    endif
endfunction
 
It is reporting an error from the blizzard.j though. That means that you're on an older patch--pJASS was updated to have stricter type checking so it'll spam errors at you if your wc3 has a pre-1.24 blizzard.j in its MPQ's.

Try to find an older copy of pJASS if you still want to develop on that older patch. Or you can enable the default syntax checker (if you aren't using vJass) by going to "Grimoire -> (untick) Disable default WE syntax checker", and disable jasshelper.
 
It is reporting an error from the blizzard.j though. That means that you're on an older patch--pJASS was updated to have stricter type checking so it'll spam errors at you if your wc3 has a pre-1.24 blizzard.j in its MPQ's.

Try to find an older copy of pJASS if you still want to develop on that older patch. Or you can enable the default syntax checker (if you aren't using vJass) by going to "Grimoire -> (untick) Disable default WE syntax checker", and disable jasshelper.

If you really develop for an older patch there is an easier way than to use an older pjass version.
Edit jassnewgenpack-folder/jasshelper.conf
Code:
[jasscompiler]
//this is to specify what compiler to use, normally pjass.exe, 
// though you may also want to use JassParserCLI.exe ...
//"JassParserCLI.exe"
"pjass.exe"
// The next line specifies the jass syntax checker's arguments:
//"--pjass $COMMONJ $BLIZZARDJ $WAR3MAPJ"
"$COMMONJ +rb $BLIZZARDJ -rb $WAR3MAPJ"
// i.e. You can change it to "$COMMONJ +rb $BLIZZARDJ -rb $WAR3MAPJ"
// in case of a recent  PJass version ...
It even says so in the comments :pgrin:

But if you dont develop for older versions just update your common.j and Blizzard.j in your jasshelper folder i'd assume.
 

It would help if you'd tell us what patch you are developing against.
And i just tested, it seems jasshelper extracts common.j/Blizzard.j from the mpq.
Overwriting the files in the jasshelper folder does nothing.
 
Status
Not open for further replies.
Back
Top