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 06-30-2009, 11:23 AM   #1981
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 Vexorian
I.0 native declarations.

hooks are coming about tomorrow or Wednesday (little left to do for them).

awesome! keep it up.
__________________
Undefined shadow...
Dark_Dragon is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 06-30-2009, 12:30 PM   #1982
ToukoAozaki
extends net.wc3c.Jasser
 
Join Date: Jun 2008
Posts: 336

Submissions (5)

ToukoAozaki will become famous soon enough (60)ToukoAozaki will become famous soon enough (60)ToukoAozaki will become famous soon enough (60)

Send a message via MSN to ToukoAozaki
Default

Are you aware of this?

Collapse JASS:
library A initializer init
    struct B
        public static method init takes nothing returns nothing
        endmethod
    endstruct

    private function init takes nothing returns nothing
        call B.init() // this parses into something like B.A___init() and causes an error
    endfunction
endlibrary
ToukoAozaki is offline   Reply With Quote
Old 06-30-2009, 12:43 PM   #1983
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 ToukoAozaki
Are you aware of this?

Collapse JASS:
library A initializer init
    struct B
        public static method init takes nothing returns nothing
        endmethod
    endstruct

    private function init takes nothing returns nothing
        call B.init() // this parses into something like B.A___init() and causes an error
    endfunction
endlibrary

tested it and indeed it does compile wrong!!!

and i as well found an bug!

Collapse JASS:
function pi takes nothing returns real
    return bj_PI
endfunction

function bug takes nothing returns nothing
    local real myPI = pi()
endfunction

will become:

Collapse JASS:
function pi takes nothing returns real
    return bj_PI
endfunction

function bug takes nothing returns nothing
    local real myPI = pi()
endfunction

now with 0.9.G.3

Collapse JASS:
function pi takes nothing returns real
    return bj_PI
endfunction

function bug takes nothing returns nothing
    local real myPI = ( bj_PI ) // INLINED!!
endfunction

finally i found a great bug!!! and so fast :D

i am inline freak yay!

plz fix ty!
~Dark Dragon
__________________
Undefined shadow...
Dark_Dragon is offline   Reply With Quote
Old 06-30-2009, 01:09 PM   #1984
Eleandor
User
 
Join Date: Jan 2006
Posts: 118

Eleandor is on a distinguished road (12)

Default

Quote:
Originally Posted by ToukoAozaki
Are you aware of this?

Collapse JASS:
library A initializer init
    struct B
        public static method init takes nothing returns nothing
        endmethod
    endstruct

    private function init takes nothing returns nothing
        call B.init() // this parses into something like B.A___init() and causes an error
    endfunction
endlibrary

That's precisely what happened here: http://www.wc3c.net/showpost.php?p=1...postcount=1796

I'm glad you have the same bug, cause I wasn't able to reproduce it anymore.
Eleandor is offline   Reply With Quote
Old 06-30-2009, 03:50 PM   #1985
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

I wouldn't expect that 'bug' to be fixed any time soon (in a way it happens because things are working as intended), so, you better use onInit or rename that function's name...
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 06-30-2009, 04:20 PM   #1986
Eleandor
User
 
Join Date: Jan 2006
Posts: 118

Eleandor is on a distinguished road (12)

Default

In my case it wasn't just with init, it was with any method in a library...
Eleandor is offline   Reply With Quote
Old 06-30-2009, 05:56 PM   #1987
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

it doesn't matter, just don't have stuff in your structs named the same as private stuff in the scope.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 06-30-2009, 06:06 PM   #1988
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 Vexorian
it doesn't matter, just don't have stuff in your structs named the same as private stuff in the scope.

k but what about inlining! why did it stop working with I.0 with H.3 was fine!
__________________
Undefined shadow...

Last edited by Dark_Dragon : 06-30-2009 at 06:06 PM.
Dark_Dragon is offline   Reply With Quote
Old 06-30-2009, 07:20 PM   #1989
Eleandor
User
 
Join Date: Jan 2006
Posts: 118

Eleandor is on a distinguished road (12)

Default

Quote:
Originally Posted by Vexorian
it doesn't matter, just don't have stuff in your structs named the same as private stuff in the scope.

In my case the bug happened in a struct of library A that uses a struct of library B. In other words: the first struct couldn't use the same method name as the second struct. I consider that quite an annoying bug, so I really hope it'll *eventually* be fixed.
Eleandor is offline   Reply With Quote
Old 06-30-2009, 07:46 PM   #1990
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

You mean the bug that can't be reproduced again?
Vexorian is offline   Reply With Quote
Old 06-30-2009, 07:53 PM   #1991
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

I try that function that returns bj_PI and it gets inlined correctly.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 06-30-2009, 08:00 PM   #1992
Eleandor
User
 
Join Date: Jan 2006
Posts: 118

Eleandor is on a distinguished road (12)

Default

Quote:
Originally Posted by Vexorian
You mean the bug that can't be reproduced again?

Yeah, because it's of a very similar nature as the one with the init method/function
Eleandor is offline   Reply With Quote
Old 06-30-2009, 09:23 PM   #1993
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 Vexorian
I try that function that returns bj_PI and it gets inlined correctly.

it just cant be lol i did not use NGWE i used JH I.0 and it does not inline it...
is it that maybe u use I.1 which u did not release jet! if so then i dont care if I.0 does not inline if next update will fix it then its ok... just note that its not my pc or anything coz with H.3 it worked and with I.0 it does not or better to say with all versions workes, all exept for I.0... duno why!

but anyway ill wait for new update with hooks :D

Greets!
~Dark Dragon
__________________
Undefined shadow...
Dark_Dragon is offline   Reply With Quote
Old 06-30-2009, 10:00 PM   #1994
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

I did not modify jasshelper at all after I released I.0 .

My bet is that you are just not testing correctly?
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 06-30-2009, 10:53 PM   #1995
Darthfett
User
 
Darthfett's Avatar
 
Join Date: Feb 2006
Posts: 28

Darthfett has little to show at this moment (8)

Default

Wasn't sure if I should post this in the Newgen or the JassHelper thread, so I'll just post again here (didn't think to post in the JassHelper thread until after I posted in the Newgen thread).

I'm having a problem now with JassHelper crashing while saving.

I'm using JassHelper v. 0.9.G.1, and the version of Newgen that came with it.

I've never had a problem saving my map before today, but it is with some recent changes to the organization of my map that it has started crashing.

The error it presented me with is:

Access violation at address 00479995 in module 'jasshelper.exe'. Read of address 00000020

I counted the zeroes, and made sure the numbers were correct.

The problem with debugging it myself is that the map is around 6000 lines, and constantly uses structs and struct extending.

I have modified code, such as changing the name of structs, and it gives me errors about where the struct name is used correctly, but once I have fixed all these errors, the crash still persists.

What would you have me do? I have no problems with uploading/posting the map (although I doubt you would wish to look at all these lines of code), or even debugging the map, but I don't really have a place to start looking.

Thanks!
Darthfett 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 12:21 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

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