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 11-21-2009, 08:26 AM   #3031
grim001
requires vJass
 
grim001's Avatar


Code Moderator
 
Join Date: Nov 2006
Posts: 1,540

Submissions (10)

grim001 is just really nice (277)grim001 is just really nice (277)

Send a message via AIM to grim001
Default

Quote:
Originally Posted by nichts
-1000 for the 0 instance
Oh, I forgot about that part. Nevermind.

So what's the deal with static ifs outside of functions? Is this considered a bug and will it be removed, or should it be exploited?

Last edited by grim001 : 11-21-2009 at 08:31 AM.
grim001 is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 11-21-2009, 08:28 AM   #3032
YourName
User
 
Join Date: Jan 2007
Posts: 101

YourName has little to show at this moment (7)

Default

Quote:
Originally Posted by grim001
So what's the deal with static ifs outside of functions? Is this considered a bug and will it be removed, or should it be exploited?
Huh? I think it's pretty useful.
YourName is offline   Reply With Quote
Old 11-21-2009, 08:31 AM   #3033
grim001
requires vJass
 
grim001's Avatar


Code Moderator
 
Join Date: Nov 2006
Posts: 1,540

Submissions (10)

grim001 is just really nice (277)grim001 is just really nice (277)

Send a message via AIM to grim001
Default

I like what you can do with it, but it doesn't make a lot of sense syntax wise. I'm just wondering whether it's going to be removed in the future or not.

Last edited by grim001 : 11-21-2009 at 08:32 AM.
grim001 is offline   Reply With Quote
Old 11-21-2009, 09:31 AM
leric
This message has been deleted by Anitarf. Reason: ...
Old 11-21-2009, 09:31 AM
leric
This message has been deleted by Anitarf. Reason: ...
Old 11-21-2009, 12:34 PM   #3034
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:
Some way to see if a method exists in a struct for use with static ifs.
will get added.

Quote:
JassHelper ignores double imports which aren't such and doesn't import required files. The first two files which are imported from the map (I've set the import path in jasshelper.conf to two source code directories) are imported correctly and the files which are imported by the first one and are in contained by a separated sub directory are also imported correctly but the files which are in a sub directory of the first sub directory are ignored like the files of the first sub directory of the second file which is imported from the map. The third file which is imported from the map is ingored at all.
This is the sort of thing in which I really need source code.

nichts: If my memory servers, grim's report is a bug.

Quote:
Also, can we support not filling in for loop parameters? i.e. for(;;) should be valid syntax (while terrible its important as you don't support this jass construct)
Is there a problem with while(true) ? for(;;) is only benefical for shortest code contests...
.
static ifs outside functions will get removed. They DO NOT work fine right now the library phase will get confused by them.

Edit: bleh, if I added for( ... ; ... ; ...) I might as well keep bloating the syntax and add do... while . This is only because weaaddar is requesting it. I dislike the idea of adding a whole new keyword...

poot, your bug report is not very useful, give me inputwar3map.j or die.
__________________
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 11-21-2009, 01:05 PM   #3035
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

Quote:
Originally Posted by Vexorian
poot, your bug report is not very useful, give me inputwar3map.j or die.
Lazy bastard. We already even told you where the damned bug was and what was causing it. :p
__________________
Rising_Dusk is offline   Reply With Quote
Old 11-21-2009, 01:29 PM   #3036
Arkless
User
 
Join Date: Feb 2009
Posts: 17

Arkless has little to show at this moment (0)

Default

Is there any way to make jasshelper ignore specific lines ? Like not checking the syntax but still keeping it within the mapscript?

Code:
function Bla takes nothing returns nothing
.do something
//! NoSyntaxcheck
.do something
//! EndNoSyntaxcheck
endfunction

I know its kind of lame but sometimes it's preventing me from doing weird stuff :)
Arkless is offline   Reply With Quote
Old 11-21-2009, 03:11 PM   #3037
weaaddar
User


Respected User
 
Join Date: Apr 2002
Posts: 2,372

Submissions (3)

weaaddar has a spectacular aura about (131)

Default

But while true compiles as::
loop
exitwhen false
endloop
Which wastes my op limit when I'm trying to write an elegant infinite loop...
weaaddar is offline   Reply With Quote
Old 11-21-2009, 03:26 PM   #3038
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

hmnn, I could always make it smartly compile as loop...endloop. That's what compilers are for.

Edit: It probably makes more sense to make my WIP optimization phase remove exitwhens when the condition constantly evaluates to false.
__________________
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 11-21-2009, 07:37 PM   #3039
PurplePoot
User


Official Map Reviewer
 
Join Date: Jan 2006
Posts: 363

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

Default

Quote:
Originally Posted by Vexorian
poot, your bug report is not very useful, give me inputwar3map.j or die.
Don't see why you would need it, but if you really do the map is attached to the paste.
PurplePoot is offline   Reply With Quote
Old 11-21-2009, 09:03 PM   #3040
Barade
User
 
Barade's Avatar
 
Join Date: May 2006
Posts: 164

Barade is on a distinguished road (14)

Default

Quote:
Originally Posted by Vexorian
will get added.

This is the sort of thing in which I really need source code.
http://vjasssdk.svn.sourceforge.net/...dk/wc3sdk/src/

Main import file is "Import Asl.j" which is imported by just using //! import "Import Asl.j". Each directory contains another single "Import.j" file.
Maybe you should just play around with some imports.
__________________
Barade is offline   Reply With Quote
Old 11-21-2009, 10:18 PM   #3041
romek
User
 
Join Date: Mar 2006
Posts: 2

romek has little to show at this moment (0)

Default

I found quite a strange bug.

The following works perfectly:
Collapse Zinc:
function Func () {
    // Comment
    static if (false) {
    }
}

However, the following does not, and throws a compile error:
Collapse Zinc:
function Func () {

    // Comment
    static if (false) {
    }
}

The only difference is an empty line above the comment above the static if. No errors occurs with ordinary 'if's or if there's no single-line comment. It also seems to happen if there are any other empty lines above or below the comment, so the following also errors:
Collapse Zinc:
function Func () {
    
    
    
    // Comment

        
        
        
    static if (false) {
    }
}
romek is offline   Reply With Quote
Old 11-21-2009, 10:33 PM   #3042
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 can't possibly explain what is going on there, can you tell me what the syntax error 's message is?
__________________
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 11-21-2009, 10:40 PM   #3043
romek
User
 
Join Date: Mar 2006
Posts: 2

romek has little to show at this moment (0)

Default

Unexpected: "/"
romek is offline   Reply With Quote
Old 11-21-2009, 11:12 PM   #3044
Troll-Brain
User
 
Join Date: Oct 2006
Posts: 1,490

Submissions (1)

Troll-Brain has a spectacular aura about (134)

Default

@Vexorian :
Any chance that you will allow a "scope" in some way to Zinc ?
Troll-Brain is offline   Reply With Quote
Old 11-22-2009, 12:13 PM   #3045
Barade
User
 
Barade's Avatar
 
Join Date: May 2006
Posts: 164

Barade is on a distinguished road (14)

Default

Why does
Collapse JASS:
//! externalblock TileSetter
//! i L
//! i Grs4
//! i Grd2
//! i Grd1
//! i Grd3
//! i Rok1
//! i Grs5
//! i Mos1
//! i Mos2
//! i Fis2
//! i Rok2
//! i Rod1
//! i Rod2
//! i Grs1
//! i Grs3
//! i Grs2
//! i Fis1
//! i Grs4
//! i Les2
//! i Les3
//! i Les1
//! endexternalblock
not work as
Collapse JASS:
//! external TileSetter L Grs4Grd2Grd1Grd3Rok1Grs5Mos1Mos2Fis2Rok2Rod1Rod2Grs1Grs3Grs2Fis1Grs4Les2Les3Les1
?

Btw. I've defined my own Terrain.slk file but TileSetter needs the Tileset as first argument. Is there any way to define which Tileset a single tile id belongs to or does it just have to start with the first letter of the Tileset?
__________________

Last edited by Barade : 11-22-2009 at 12:13 PM.
Barade 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 03:27 AM.


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