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 > Tutorials > -- Submit A Tutorial --
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 08-09-2009, 12:35 AM   #16
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

Quote:
Originally Posted by midiway
I get this error whenever I reference a global array which have, in somewhere, a local with the same name:

Zoom (requires log in)
Lol, and they said shadowing was forbidden.
__________________
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
Sponsored Links - Login to hide this ad!
Old 08-09-2009, 07:35 AM   #17
ImmolatusBurn
User
 
Join Date: Mar 2008
Posts: 18

ImmolatusBurn has little to show at this moment (0)

Default

I found it helpful to insert a knowingly buggy function into the map script when WE was crashing. By moving the function around until WE stopped crashing, I could determine which function caused the crash.
ImmolatusBurn is offline   Reply With Quote
Old 08-09-2009, 05:47 PM   #18
watterly
User
 
Join Date: Nov 2006
Posts: 26

watterly has little to show at this moment (4)

Default

I emptied the function written above; it still tells me the same error at the same line -_-'.

There is nothing in the map's script; I even deleted the auto-created Initialisation trigger and there is nothing in the script... That is very strange.

And why are we supposed to rename the blizzard.j file to "C:\Program Files\Warcraft III\scripts\blizzard.j because everytime I do that it gives me a Windows error saying unable to create directory... anyway it gives me the same compiles errors as if I call the file scripts\blizzard.j...

I really don't know what to do -_-'.

Nvm, last version of Jasshelper fixes the problem. Thanks again!

Last edited by watterly : 08-10-2009 at 05:46 PM.
watterly is offline   Reply With Quote
Old 08-15-2009, 07:03 PM   #19
Wilco
User
 
Join Date: Aug 2009
Posts: 13

Wilco has little to show at this moment (0)

Default

resolved

Last edited by Wilco : 08-16-2009 at 06:18 PM.
Wilco is offline   Reply With Quote
Old 08-21-2009, 10:56 AM   #20
Flame_Phoenix
retired coder | real ilfe
 
Flame_Phoenix's Avatar
 
Join Date: Mar 2007
Posts: 2,208

Submissions (10)

Flame_Phoenix has a spectacular aura about (90)Flame_Phoenix has a spectacular aura about (90)Flame_Phoenix has a spectacular aura about (90)Flame_Phoenix has a spectacular aura about (90)

Send a message via MSN to Flame_Phoenix
Default

I also have a problem. First WE vanilla seems to have a problem identifying the lines with the errors, it's like it has his own will and only shows me the lines he wants.
Then some of the errors (first error per example) make absolute no sense. He says that

Collapse JASS:
call GroupEnumUnitsInRange(DarkLightning__g , GetUnitX(s__DarkLightning__SpellData_vic[this]) , GetUnitY(s__DarkLightning__SpellData_vic[this]) , DarkLightning__Range(s__DarkLightning__SpellData_level[this]) , DarkLightning__b)
            
loop
    set f = FirstOfGroup(DarkLightning__g)
    //stuff here
endloop

"set f = FirstOfGroup(DarkLightning__g)" is a real. I would understand if it was an integer because structs are integer pointers, but a real !?
Anyway, I am kinda lost here, the spell DarkLightning works alone but in my project I have this weird error.
Bad thing is, I have more errors like this one. Even worst, looks like I only errors I have to fix are like this one ...

I attached scrennie and Blizz file for more information.... I am doomed to brute force?
Attached Images
File Type: jpg Image1.jpg (255.8 KB, 22 views)
Attached Files
File Type: rar blizzard.rar (193.5 KB, 15 views)
__________________
Check out my tutorials at:
1-Creating a Hero Tavern
2-Complete Icon Tutorial - ALL about Icons
3-Making a spell in vJass - Practice Session 1
Check out all my current spells at here
Finally, check my project:
Castle vs Castle Flame Edition

Last edited by Flame_Phoenix : 08-22-2009 at 09:05 AM.
Flame_Phoenix is offline   Reply With Quote
Old 08-22-2009, 03:29 AM   #21
Tom_Kazansky
User
 
Tom_Kazansky's Avatar
 
Join Date: Apr 2009
Posts: 74

Tom_Kazansky is on a distinguished road (13)

Send a message via Yahoo to Tom_Kazansky
Default

I followed the tutorial, merge my map script with Blizzard.j, the WE didn't crash but it gives me some errors, first error is: Expected a name in line number 945, I use JassCraft to open the (edited) Blizzard.j and find that line, but it is in the... globals block , and there are a lot of errors in the globals block as well, Expected a vaild argument list

maybe I have done something wrong
I'm pretty sure that I have removed all return bug functions and some double return functions.

Can someone help me ?

I attached the (edited) Blizzard.j and a screenshot. Also I don't know how should I take the shot because I can't download others's.
Attached Images
File Type: jpg scripterror.JPG (72.1 KB, 14 views)
Attached Files
File Type: rar Blizzard.rar (213.8 KB, 14 views)
Tom_Kazansky is offline   Reply With Quote
Old 08-22-2009, 03:39 AM   #22
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

Well, it looks like you are using a very old version of blizzard.j (One that doesn't even have the bj_PLAYER_NEUTRAL_EXTRA constant) So, repeat the process with the newest blizzard.j , use the one in my post if necessary...
__________________
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 08-22-2009, 05:36 AM   #23
Tom_Kazansky
User
 
Tom_Kazansky's Avatar
 
Join Date: Apr 2009
Posts: 74

Tom_Kazansky is on a distinguished road (13)

Send a message via Yahoo to Tom_Kazansky
Default

Now I use the Blizzard.j in War3Patch.mpq, it's newest, right ? then the number of errors is lessen

I followed the first error:
Collapse JASS:
//....
    if not IsItemOwned(s__CustomSpells__resmartdata_it[d]) then
        //....
    else   //<--- Invalid type for specific operator
        call s__CustomSpells__resmartdata_destroy(d)
        return true
    endif
    //-----
    return false
endfunction

I don't get this

please help
Attached Images
File Type: jpg scripterror.JPG (72.7 KB, 13 views)
Attached Files
File Type: rar Blizzard.rar (227.7 KB, 11 views)

Last edited by Tom_Kazansky : 08-22-2009 at 05:39 AM.
Tom_Kazansky is offline   Reply With Quote
Old 08-22-2009, 09:02 AM   #24
Flame_Phoenix
retired coder | real ilfe
 
Flame_Phoenix's Avatar
 
Join Date: Mar 2007
Posts: 2,208

Submissions (10)

Flame_Phoenix has a spectacular aura about (90)Flame_Phoenix has a spectacular aura about (90)Flame_Phoenix has a spectacular aura about (90)Flame_Phoenix has a spectacular aura about (90)

Send a message via MSN to Flame_Phoenix
Default

Quote:
I don't get this
Your problem is with the false positive bug. Your if statement makes Blizz think you are using a return bug (Blizz messed up here ...)

You need to replace that code with:
Collapse JASS:
//....
    local boolean result = false
    if not IsItemOwned(s__CustomSpells__resmartdata_it[d]) then
        //....
    else   //<--- Invalid type for specific operator
        call s__CustomSpells__resmartdata_destroy(d)
        set result =  true
    endif
    //-----
    return result
endfunction

This should fix your problem.

EDIT
Updated my help post with more 1 line of code =S
__________________
Check out my tutorials at:
1-Creating a Hero Tavern
2-Complete Icon Tutorial - ALL about Icons
3-Making a spell in vJass - Practice Session 1
Check out all my current spells at here
Finally, check my project:
Castle vs Castle Flame Edition

Last edited by Flame_Phoenix : 08-22-2009 at 09:06 AM.
Flame_Phoenix is offline   Reply With Quote
Old 08-22-2009, 10:46 AM   #25
Tom_Kazansky
User
 
Tom_Kazansky's Avatar
 
Join Date: Apr 2009
Posts: 74

Tom_Kazansky is on a distinguished road (13)

Send a message via Yahoo to Tom_Kazansky
Default

@Flame_Phoenix, thank you !, +rep. I fixed it , I didn't notice that's a return bug.

also there is another return:
Expand JASS:
that one also cause error
-----------------
there is another problem, I followed another error and it's in this function:

Collapse JASS:
function sa___prototype26_HeroChosingRepick takes nothing returns boolean
in the outputwar3map.j

but in my script:
Collapse JASS:
function HeroChosingRepick takes integer id returns nothing

weird

I can't find the HeroChosingRepick that takes nothing returns boolean in my script (or have I missed it somewhere ), what should I do ?
Attached Files
File Type: rar Blizzard.rar (229.8 KB, 12 views)

Last edited by Tom_Kazansky : 08-22-2009 at 10:58 AM.
Tom_Kazansky is offline   Reply With Quote
Old 08-22-2009, 12:26 PM   #26
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

If you have return bug problems with things generated by jasshelper, it is best to update to version j.0 .

The false positives are fixed in the westfall patch, and I think they will get into retail soonish.
__________________
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 08-22-2009, 12:53 PM   #27
TKF
User
 
TKF's Avatar
 
Join Date: Dec 2006
Posts: 384

TKF is on a distinguished road (10)

Default

Quote:
Originally Posted by Vexorian
The false positives are fixed in the westfall patch, and I think they will get into retail soonish.

It's about time! But wait, does that mean that 1.24 maps will not work in 1.24b? So no purge of database?
__________________
Retired
TKF is offline   Reply With Quote
Old 08-22-2009, 01:00 PM   #28
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

Why wouldn't 1.24 maps work in 1.24b ?


Quote:
So no purge of database?
The real return bug is not going to come back, not ever.
__________________
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 08-22-2009, 01:12 PM   #29
Tom_Kazansky
User
 
Tom_Kazansky's Avatar
 
Join Date: Apr 2009
Posts: 74

Tom_Kazansky is on a distinguished road (13)

Send a message via Yahoo to Tom_Kazansky
Default

alright, I updated JassHelper, my map is now compatible with 1.24

and err... if the script still have return bugs, JassHelper (.j.0) will crash, right ?
Tom_Kazansky is offline   Reply With Quote
Old 08-22-2009, 01:18 PM   #30
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

No, it will tell you there's a syntax error.

(There are exceptions, I found cases in which PJass does not find a return bug, and since the function in that case only has one return statement, jasshelper doesn't fix it either.)
__________________
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
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 10:17 PM.


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

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