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 07-21-2009, 01:09 AM   #2131
Blubb-Tec
Full Metal Mapping!
 
Blubb-Tec's Avatar
 
Join Date: Nov 2006
Posts: 270

Submissions (1)

Blubb-Tec will become famous soon enough (37)Blubb-Tec will become famous soon enough (37)

Default

oh yeah wulfvy, sometimes locals are annoying, and mulitlines are even better readable ;)
__________________
P A R T Y

"In a way, we're all troubled adolescent girls... deep inside."
Blubb-Tec is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 07-21-2009, 07:00 PM   #2132
Dark_Dragon
User
 
Dark_Dragon's Avatar
 
Join Date: Apr 2008
Posts: 191

Dark_Dragon has little to show at this moment (9)

Default

chhh :S i checked exactly how onDestroy is compiled in jass and it seems vex actually wanted it to happen... eh our vex likes to make a good jokes!

anyway i dont care but its just complicated to help beginners learn :S

k ty all for your time and answers, i now know that its not a bug so yeah...
~Dark Dragon
__________________
Undefined shadow...
Dark_Dragon is offline   Reply With Quote
Old 07-23-2009, 10:20 PM   #2133
Dark_Dragon
User
 
Dark_Dragon's Avatar
 
Join Date: Apr 2008
Posts: 191

Dark_Dragon has little to show at this moment (9)

Default

vex plz add this:

Collapse JASS:
globals
   key ky
endglobals

function some takes key k returns nothing
endfunction
__________________
Undefined shadow...
Dark_Dragon is offline   Reply With Quote
Old 07-23-2009, 10:34 PM   #2134
Pyrogasm
Lackadaisically Absent.
 
Pyrogasm's Avatar


Respected User
 
Join Date: Sep 2006
Posts: 4,523

Submissions (9)

Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)

Hero Contest - Fourth place

Send a message via ICQ to Pyrogasm Send a message via AIM to Pyrogasm Send a message via MSN to Pyrogasm Send a message via Yahoo to Pyrogasm
Default

The online manual is way out of date, just so you know.
__________________
Quote:
Originally posted by Rising_Dusk
Your spells are mostly ignored because they are not very cool so we aren't very excited to review/approve them, but you are incredibly persistent and won't give us an excuse to graveyard it. That is generally what results in a resource being ignored for a long time.

The Spell Request Thread Done for, unless someone else wants to revive it...
It lasted a damn long time.

Please; Ask for Help Appropriately














Quote:
Originally posted by Kyrbi0
Huh. Almost makes me wish I had a girlfriend, to take advantage of today (wait, no, that's not what I meant... I mean, take advantage of the fact that it is international women's day... gah, never mind).
Quote:
Originally posted by Pyrogasm
Rome may not have been built in a day, but the Romans sure as hell didn't say "look at this great city we built guys!" when they had nothing more than a bit of stone and some cottages.
Pyrogasm is offline   Reply With Quote
Old 07-24-2009, 12:46 AM   #2135
Blubb-Tec
Full Metal Mapping!
 
Blubb-Tec's Avatar
 
Join Date: Nov 2006
Posts: 270

Submissions (1)

Blubb-Tec will become famous soon enough (37)Blubb-Tec will become famous soon enough (37)

Default

Quote:
Originally Posted by Dark_Dragon
vex plz add this:

Collapse JASS:
globals
   key ky
endglobals

function some takes key k returns nothing
endfunction

can you explain a bit further on the use of this? afaik, keys are compiled as constant integers, and each one is unique. i don't see how a function argument can be a constant integer... only sense i see there is that it has to be an integer defined through a key.
could you maybe post an example of how that function some is called? and could you maybe also give us the issue for what you need this? it looks interesting, but no idea about the use, yet.
__________________
P A R T Y

"In a way, we're all troubled adolescent girls... deep inside."
Blubb-Tec is offline   Reply With Quote
Old 07-24-2009, 02:33 PM   #2136
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 Blubb-Tec
can you explain a bit further on the use of this? afaik, keys are compiled as constant integers, and each one is unique. i don't see how a function argument can be a constant integer... only sense i see there is that it has to be an integer defined through a key.
could you maybe post an example of how that function some is called? and could you maybe also give us the issue for what you need this? it looks interesting, but no idea about the use, yet.

Collapse JASS:
function SetUnitUserDataEx takes unit u, key k, integer val returns nothing
function GetUnitUserDataEx takes unit u, key k returns integer
__________________
Undefined shadow...
Dark_Dragon is offline   Reply With Quote
Old 07-24-2009, 10:18 PM   #2137
Blubb-Tec
Full Metal Mapping!
 
Blubb-Tec's Avatar
 
Join Date: Nov 2006
Posts: 270

Submissions (1)

Blubb-Tec will become famous soon enough (37)Blubb-Tec will become famous soon enough (37)

Default

Quote:
Originally Posted by Dark_Dragon
Collapse JASS:
function SetUnitUserDataEx takes unit u, key k, integer val returns nothing
function GetUnitUserDataEx takes unit u, key k returns integer

ic. can you then tell the reasons why not to simply use integer k instead of key k?
__________________
P A R T Y

"In a way, we're all troubled adolescent girls... deep inside."
Blubb-Tec is offline   Reply With Quote
Old 07-24-2009, 11:32 PM   #2138
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 Blubb-Tec
ic. can you then tell the reasons why not to simply use integer k instead of key k?

type safe (if user can insert integer i see no reason why that integer might not be some key from other library)
__________________
Undefined shadow...

Last edited by Dark_Dragon : 07-25-2009 at 10:34 AM.
Dark_Dragon is offline   Reply With Quote
Old 07-25-2009, 06:53 AM   #2139
Alevice
It feels good
 
Alevice's Avatar
 
Join Date: Mar 2006
Posts: 1,305

Alevice is a jewel in the rough (190)Alevice is a jewel in the rough (190)Alevice is a jewel in the rough (190)

Default

I reall wish something similar to namespaces existed. That way, for my custom race, I could have KalimdorRaiders.Units.KOBOLD_MINER. Right now to get something syntactically similar I have to do the following


Collapse JASS:
    private struct KR_Units
        static constant integer KOBOLD_MINER = 'kru0'
    endstruct
    private struct KR_Abilities
        
    endstruct
    private struct KR_Heroes
        static constant integer CENTAUR_KAHN = 'KrH0'
    endstruct

    struct KalimdorRaiders
        static KR_Units Units
        static KR_Abilities Abilities
        static KR_Heroes Heroes
    endstruct

rather than just something like

Collapse JASS:
    namespace KalimdorRaiders
        namespace Units
            constant integer KOBOLD_MINER = 'kru0'
        endnamespace
        namespace Heroes
            constant integer CENTAUR_KAHN = 'KrH0'
        endnamespace
    endnamespace
__________________
_-|-_

Alevice.jones is SC2 Beta, losers.

Check out my never updated deviantart gallery!!

Kalimdor Raiders (Race Contest #1) Pastebin Page
Cavern Crawlers (Race Contest #2) Pastebin Page
Airship Race Motherfuckers!
Quote:
Originally Posted by http://ajaxian.com/archives/would-you-like-a-_-with-that-new-library-gives-js-what-it-should-have#comment-276203
- Dont solve problems that dont exist.
- Improve the wheel, dont reinvent it.
- Port the wheel if it doesnt exist in your environment.
- Integrate the wheel into your project.
- Make sure you can replace your wooden wheel for a rubber one if someone else invents it.

Last edited by Alevice : 07-25-2009 at 06:55 AM.
Alevice is offline   Reply With Quote
Old 07-25-2009, 10:31 AM   #2140
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 Alevice
I reall wish something similar to namespaces existed. That way, for my custom race, I could have KalimdorRaiders.Units.KOBOLD_MINER. Right now to get something syntactically similar I have to do the following


Collapse JASS:
    private struct KR_Units
        static constant integer KOBOLD_MINER = 'kru0'
    endstruct
    private struct KR_Abilities
        
    endstruct
    private struct KR_Heroes
        static constant integer CENTAUR_KAHN = 'KrH0'
    endstruct

    struct KalimdorRaiders
        static KR_Units Units
        static KR_Abilities Abilities
        static KR_Heroes Heroes
    endstruct

rather than just something like

Collapse JASS:
    namespace KalimdorRaiders
        namespace Units
            constant integer KOBOLD_MINER = 'kru0'
        endnamespace
        namespace Heroes
            constant integer CENTAUR_KAHN = 'KrH0'
        endnamespace
    endnamespace

syntax like that does not exists, i mean end name space is not an option... namespace is used in library/scope in which it is declared...
Collapse JASS:
library lib

    using namespace std

endlibrary

thats a correct syntax!
__________________
Undefined shadow...
Dark_Dragon is offline   Reply With Quote
Old 07-25-2009, 02:14 PM   #2141
Eleandor
User
 
Join Date: Jan 2006
Posts: 118

Eleandor is on a distinguished road (12)

Default

Collapse JASS:
scope KalimdorRaiders
    scope Units
        public constant integer KOBOLD_MINER = 'kru0'
    endscope
endscope

KalimdorRaiders_Units_KOBOLD_MINER

Last edited by Eleandor : 07-25-2009 at 02:14 PM.
Eleandor is offline   Reply With Quote
Old 07-25-2009, 03:07 PM   #2142
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 Eleandor
Collapse JASS:
scope KalimdorRaiders
    scope Units
        public constant integer KOBOLD_MINER = 'kru0'
    endscope
endscope

KalimdorRaiders_Units_KOBOLD_MINER

as far as i know scope inside scope is illegal but scope inside library is fine. i might be wrong!
__________________
Undefined shadow...
Dark_Dragon is offline   Reply With Quote
Old 07-25-2009, 03:56 PM   #2143
MindWorX
Level 1 Neothelid


Tools Moderator
 
Join Date: Mar 2004
Posts: 254

Submissions (2)

MindWorX has a spectacular aura about (147)

Default

Dark_Dragon, please read up on things before you ramble on.
http://en.wikipedia.org/wiki/Namespa...ter_science%29
MindWorX is offline   Reply With Quote
Old 07-25-2009, 04:28 PM   #2144
Alevice
It feels good
 
Alevice's Avatar
 
Join Date: Mar 2006
Posts: 1,305

Alevice is a jewel in the rough (190)Alevice is a jewel in the rough (190)Alevice is a jewel in the rough (190)

Default

Quote:
Originally Posted by Eleandor
Collapse JASS:
scope KalimdorRaiders
    scope Units
        public constant integer KOBOLD_MINER = 'kru0'
    endscope
endscope

KalimdorRaiders_Units_KOBOLD_MINER

I was thinking about that later on. I personally don't like the underscore notation for scoping and such, but it surely is a wrokaround. Pluse you don't have something like "using scope MyScope" and go the short way when you know your name might not collide somewhere else (not that it matters much).

Thanks for the input.
__________________
_-|-_

Alevice.jones is SC2 Beta, losers.

Check out my never updated deviantart gallery!!

Kalimdor Raiders (Race Contest #1) Pastebin Page
Cavern Crawlers (Race Contest #2) Pastebin Page
Airship Race Motherfuckers!
Quote:
Originally Posted by http://ajaxian.com/archives/would-you-like-a-_-with-that-new-library-gives-js-what-it-should-have#comment-276203
- Dont solve problems that dont exist.
- Improve the wheel, dont reinvent it.
- Port the wheel if it doesnt exist in your environment.
- Integrate the wheel into your project.
- Make sure you can replace your wooden wheel for a rubber one if someone else invents it.
Alevice is offline   Reply With Quote
Old 07-25-2009, 08:42 PM   #2145
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

Btw, one questions, is it possible for a struct A to extend a Parent struct AND an interface ? If yes, how can I do that?

Collapse JASS:
struct A extends Parent, AInterface
endstruct

This does not work =(
__________________
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
Flame_Phoenix 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 05:58 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