• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[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: 164
Level 7
Joined
Oct 19, 2015
Messages
286
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.
 

LeP

LeP

Level 13
Joined
Feb 13, 2008
Messages
545
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.
 

LeP

LeP

Level 13
Joined
Feb 13, 2008
Messages
545

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