wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Warcraft Editing Tools
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 01-23-2015, 03:55 PM   #3631
iNfraNe
MSc
 
iNfraNe's Avatar


Cinematics Moderator
 
Join Date: Dec 2003
Posts: 2,240

Submissions (7)

iNfraNe is just really nice (262)iNfraNe is just really nice (262)iNfraNe is just really nice (262)iNfraNe is just really nice (262)iNfraNe is just really nice (262)

Approved Map: Mortar Ball

Send a message via MSN to iNfraNe
Default

Quote:
Originally Posted by Dark_Dragon
Hello,

i have just updated my old Win7 HP 32bit to Win7 HP 64bit and everytime there is bug in code, jasshelper freezes... if there are no errors in code, it will compile just fine, else it will freeze at point "founding errors please wait"... so i have to use Task manager to end the process. if it is possible to fix this bug it would be great.

regards!
~DarkDragon
I had the exact same problem. I just redownloaded and overwrote all the files. After that it worked again.
__________________
Inactive.
Table:
Past Projects:
The Spirit of Vengeance (Cinematic, Blizzard contest winner)
Elimination Tournament
Mortar Ball
iNfraNe is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 01-23-2015, 05:31 PM   #3632
Dark_Dragon
User
 
Dark_Dragon's Avatar
 
Join Date: Apr 2008
Posts: 191

Dark_Dragon has little to show at this moment (9)

Default

Quote:
Originally Posted by iNfraNe
I had the exact same problem. I just redownloaded and overwrote all the files. After that it worked again.

Ok, i redownloaded the new'est version, copy and pasted everything from executable folder, but it did not work for me... still crashes when errors are found.

EDIT: Ok, i created new folder in jasshelper one and just copied stuff there, run from that folder and it run just fine...
__________________
Undefined shadow...

Last edited by Dark_Dragon : 01-23-2015 at 08:43 PM.
Dark_Dragon is offline   Reply With Quote
Old 01-29-2015, 05:45 PM   #3633
Nestharus
User
 
Join Date: Jul 2007
Posts: 219

Nestharus has little to show at this moment (6)

Default

The following does not work

Collapse JASS:
module A
endmodule

module B
    dsfsfds
endmodule

module C
    static if false then
        static if false then
            implement A
        else
            implement B //this is implemented and commented out
        endif
    else
        implement B //this doesn't exist
    endif
endmodule

The following does not work.

Collapse JASS:
struct A
    static method test takes nothing returns nothing
    endmethod
endstruct

module K
    private static method test takes nothing returns nothing
        call A.test() //K__test is not a member of A
    endmethod
endmodule

struct B
    implement K
endstruct

The following generates syntax errors during variable generation

Collapse JASS:
scope M

globals
    debug private integer i

    //the above gives
    //    private integer

    //the following is also legal to do, but gives incorrect output
    debug private constant boolean m = true

    //the above gives
    //    private constant= true
endglobals

endscope

The following isn't caught by the parser

Collapse JASS:
struct O

//everything after "returns nothing" is ignored
private static method sfidsjof takes nothing returns nothing dsfdushfui sdfds sf afa  fsdfds
endmethod

endstruct

The following isn't caught by the parser

Collapse JASS:
function D takes nothing returns nothing
endfunction

function M takes nothing returns nothing
    //you shouldn't be able to compare a function to an integer
    if (D == 1) then
    endif
endfunction



It is currently possible to access private members with a percent chance of success.


This isn't correct. A private scope's contents should be private to the parent scope.

Collapse JASS:
scope c
    private scope d
        function m takes nothing returns nothing
        endfunction
    endscope
endscope
scope e
    function d takes nothing returns nothing
        call m()
    endfunction
endscope

Ambiguity between scopes and identifiers

Collapse JASS:
scope o
    public function o takes nothing returns nothing
    endfunction
endscope

function o_o takes nothing returns nothing
endfunction


The following is valid in one case and not valid in the other

Collapse JASS:
module b
    //the following is valid
    private method _c takes nothing returns nothing
    endmethod
    
    //the following is not valid
    method _d takes nothing returns nothing
    endmethod
endmodule

struct a
    implement b
endstruct

The following is valid for JASS but not jasshelper

Collapse JASS:
function m takes nothing returns nothing
endfunction

function d takes boolexpr b returns nothing
endfunction

function e takes nothing returns nothing
    call d(Condition(function m))
endfunction

Here is the current workaround

Collapse JASS:
function m takes nothing returns nothing
endfunction

function d takes code c returns nothing
    call Condition(c)
endfunction

function e takes nothing returns nothing
    call d(function m)
endfunction

The following is a valid object id but is not accepted by jasshelper

Collapse JASS:
function m takes nothing returns nothing
    local integer i = '\'\\34'
endfunction

The following is valid for one case and not the other

Collapse JASS:
globals
    integer integer = 5
endglobals

struct C
    unit unit = null
endstruct


The community has come up with a new allocation method that uses only 1 variable.

Collapse JASS:
struct C extends array
    private static integer array stack

    private static method allocate takes nothing returns integer
        local thistype this = stack[0]
        
        if (stack[0] == 0) then
            set stack[0] = this + 1
        else
            set stack[0] = stack[this]
        endif
        
        if (this == 8192) then
            call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,1000.,"Unable to allocate id for an object of type: C")
            return 0
        endif

        set stack[this] = -1
        
        return this
    endmethod

    private static method deallocate takes integer this returns nothing
        if this == null then
            call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,1000.,"Attempt to destroy a null struct of type: C")
            return
        elseif (stack[this] != -1) then
            call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,1000.,"Double free of type: C")
            return
        endif
        
        set stack[this] = stack[0]
        set stack[0] = this
    endmethod
    
    private static method onInit takes nothing returns nothing
        //just add this line to jasshelper__initstructs instead of ExecuteFunc
        set stack[0] = 1
    endmethod
endstruct

Last edited by Nestharus : 01-29-2015 at 06:43 PM.
Nestharus is offline   Reply With Quote
Old 01-30-2015, 05:58 PM   #3634
Anitarf
Procrastination Incarnate


Development Director
 
Join Date: Feb 2004
Posts: 8,122

Submissions (19)

Anitarf has a brilliant future (894)Anitarf has a brilliant future (894)Anitarf has a brilliant future (894)Anitarf has a brilliant future (894)Anitarf has a brilliant future (894)Anitarf has a brilliant future (894)Anitarf has a brilliant future (894)Anitarf has a brilliant future (894)

2008 Spell olympics - Fire - SilverApproved Map: Old School Alliance TacticsHero Contest #2 - 3rd PlaceSpell making session 2 winner

Default

Some of those are just extra padding...
__________________
Anitarf is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 09:08 PM.


Donate

Affiliates
The Hubb http://bylur.com - Warcraft, StarCraft, Diablo and DotA Blog & Forums The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2015, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services