Wc3C.net

Wc3C.net (http://www.wc3c.net/forums.php)
-   Warcraft Editing Tools (http://www.wc3c.net/forumdisplay.php?f=13)
-   -   JassHelper 0.A.2.B - A vJass and Zinc 2 Jass compiler (http://www.wc3c.net/showthread.php?t=88142)

Vexorian 03-12-2007 02:38 AM

You want to implement jasshelper without using jasshelper?

SFilip 03-12-2007 10:47 AM

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

Or could you be referring to the caster system?

Vexorian 03-13-2007 04:49 PM

Besides bug fixes, 0.9.7.0 comes with operator overloading (currently only array get, array set and <,> are supported for overloading)

grim001 03-13-2007 08:13 PM

Thanks, this update will help a lot

Jazradel 03-14-2007 10:30 AM

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.

grim001 03-14-2007 02:32 PM

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

Vexorian 03-14-2007 02:40 PM

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...

grim001 03-14-2007 10:05 PM

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.

emjlr3 03-14-2007 11:59 PM

is there a tut anywhere for dynamic arrays?

Vexorian 03-15-2007 12:18 AM

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

emjlr3 03-15-2007 06:40 PM

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 ^^

Vexorian 03-15-2007 06:50 PM

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.

emjlr3 03-16-2007 02:01 AM

not really, I can't think of a single thing at the moment, lol

Jazradel 03-16-2007 06:22 AM

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).

SFilip 03-16-2007 11:10 AM

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?


All times are GMT. The time now is 06:08 PM.

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