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 03-12-2007, 01:38 AM   #151
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 want to implement jasshelper without using jasshelper?
__________________
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 03-12-2007, 09:47 AM   #152
SFilip
reenignE
 
SFilip's Avatar
 
Join Date: Mar 2006
Posts: 321

SFilip has a spectacular aura about (111)SFilip has a spectacular aura about (111)SFilip has a spectacular aura about (111)SFilip has a spectacular aura about (111)

Send a message via MSN to SFilip
Default

Don't you have some windows emulator on mac or something?

Or could you be referring to the caster system?

Last edited by SFilip : 03-12-2007 at 09:48 AM.
SFilip is offline   Reply With Quote
Old 03-13-2007, 03:49 PM   #153
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

Besides bug fixes, 0.9.7.0 comes with operator overloading (currently only array get, array set and <,> are supported for overloading)
__________________
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 03-13-2007, 07:13 PM   #154
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

Thanks, this update will help a lot
grim001 is offline   Reply With Quote
Old 03-14-2007, 09:30 AM   #155
Jazradel
Superuser
 
Jazradel's Avatar
 
Join Date: Dec 2005
Posts: 651

Submissions (1)

Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)

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

Of course ; would be optional, making it mandatory would suck so much. A merge line command is a much, much better idea though.

Edit: Just tried it out and it was a very nice update.
__________________


Table:
Jump Map
Point System
Warcraft III Model Archive

W3 Model Archive should be available from https://www.mediafire.com/folder/cd5..._III_Resources, PM me if it doesn't work.

Last edited by Jazradel : 03-14-2007 at 09:49 AM.
Jazradel is offline   Reply With Quote
Old 03-14-2007, 01:32 PM   #156
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

err are your absolutely sure the dynamic arrays are working correctly now?

because I am experiencing random severe errors where things that should never get into a particular array keep appearing.

if it's a problem with my code I can't find it, I just spent the last 5 hours looking over it and I can't find a cause. this didn't happen before I switched to dynamic arrays; I should switch back and test it again just to see if it's a definately an array problem
grim001 is offline   Reply With Quote
Old 03-14-2007, 01:40 PM   #157
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 am currently making a save code system that will use bignums, arrays are being abused there so I couldn't find any wrong thing.

Of course, that doesn't mean anything, but you would seriously have to post some code...
__________________
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 03-14-2007, 09:05 PM   #158
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

bleh put me in the retard of the month club, after 5 hours last night I couldn't find the problem, but I realized it was supremely obvious when I was typing up a description of the problem for you.

I creating the array, but I wasn't actually putting it into the variable where it belonged!

Now what I want to know is why it worked AT ALL when every object was using the same list (0), hundreds of objects could bounce around colliding with each other and almost never having errors except for rare random ones. You'd think it would just explode and not work at all.
grim001 is offline   Reply With Quote
Old 03-14-2007, 10:59 PM   #159
emjlr3
Rehabbing
 
emjlr3's Avatar
 
Join Date: Jun 2005
Posts: 1,386

Submissions (14)

emjlr3 is a jewel in the rough (151)emjlr3 is a jewel in the rough (151)

Mapping Contest First Place

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

is there a tut anywhere for dynamic arrays?
__________________
emjlr3 is offline   Reply With Quote
Old 03-14-2007, 11:18 PM   #160
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

Should even be easier to use than structs

Collapse JASS:
type err extends integer array [5] //declares a type err representing dynamic integer arrays of size 5


function a takes nothing returns nothing
  local err e = err.create()
  local integer sum=0
  local integer i=0
    set e[0]=1
    set e[1]=1
    set e[2]=7
    set e[3]=7
    set e[4]=55
    loop
         exitwhen i==e.size
         set sum=sum+e[i]
         set i=i+1
    endloop
    call BJDebugMsg(I2S(sum))
    call e.destroy()

endfunction

Notice that an array of size 5 would only have an 8190/5 instances limit (there cannot be more than 1638 arrays of err type at the same time
__________________
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 03-15-2007, 05:40 PM   #161
emjlr3
Rehabbing
 
emjlr3's Avatar
 
Join Date: Jun 2005
Posts: 1,386

Submissions (14)

emjlr3 is a jewel in the rough (151)emjlr3 is a jewel in the rough (151)

Mapping Contest First Place

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

i am having trouble visualizing how this could be used for what I would need it for...aka. spells and such

to me that is just a little function doing some stuff that doesn't really seem useful to me

what allowed me to learn structs was the conversion of a spell from GC to structs, I guess I am a, need to see it done to learn it kind of guy

not a, wow look at that little thing, I can think of thousands of things I can do with it ^^
__________________

Last edited by emjlr3 : 03-15-2007 at 05:41 PM.
emjlr3 is offline   Reply With Quote
Old 03-15-2007, 05:50 PM   #162
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 didn't ever need to attach an array of values to handle in your handle vars life?
...
But nobody is forcing you to use/learn them...

...
Now that I think about it, it should be time to update invx , there are a ton of things from vJass I could use there.
__________________
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 03-16-2007, 01:01 AM   #163
emjlr3
Rehabbing
 
emjlr3's Avatar
 
Join Date: Jun 2005
Posts: 1,386

Submissions (14)

emjlr3 is a jewel in the rough (151)emjlr3 is a jewel in the rough (151)

Mapping Contest First Place

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

not really, I can't think of a single thing at the moment, lol
__________________
emjlr3 is offline   Reply With Quote
Old 03-16-2007, 05:22 AM   #164
Jazradel
Superuser
 
Jazradel's Avatar
 
Join Date: Dec 2005
Posts: 651

Submissions (1)

Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)

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

I have exact same problem.

Here is my current list of things I'd like in jass:
Hidden information:
More accurate Constants:
e.g. PI > 3.145926535

Abreviations:
e.g. loc > location
int i > local integer i
exit > exitwhen true

Operators:
++, --
That function that same way as C++.

Control:
end line ;
for, for .. in
merge line e.g
local integer@1
@ i
local unit u
1@ n
The @n would merge with the appropriate n@. Without n it would simply merge to the next @(with or without n).
__________________


Table:
Jump Map
Point System
Warcraft III Model Archive

W3 Model Archive should be available from https://www.mediafire.com/folder/cd5..._III_Resources, PM me if it doesn't work.

Last edited by Jazradel : 03-16-2007 at 05:49 AM.
Jazradel is offline   Reply With Quote
Old 03-16-2007, 10:10 AM   #165
SFilip
reenignE
 
SFilip's Avatar
 
Join Date: Mar 2006
Posts: 321

SFilip has a spectacular aura about (111)SFilip has a spectacular aura about (111)SFilip has a spectacular aura about (111)SFilip has a spectacular aura about (111)

Send a message via MSN to SFilip
Default

You really need all these things? I'm pretty sure PI is fine the way it is, making it more accurate would be too messy from what it seems.
Abbreviations...well a "define" keyword would do I guess.
++ and -- would be nice, but again not really needed.
for can already be implemented easily through loops, is there a point in making it more confusing?
SFilip 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:59 AM.


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

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