Comments are closed

cJass on the Google Code.
Our BugTracker (recommend to post bugreports and features request there).
Beta tester notes.

all times are GMT +03:00
Latest posts

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [16] 17 18 19 20 21 22 23 24 25 26 27

posted at 15/11/09 08:32
Mooglefrooglian

Minor suggestion if it isn't in already for AdicOptimizer... replace BJDebugMsg(s) with DisplayTextToplayer(GetLocalPlayer(), 0, 0, s)
Well, you can do this by using antibj: <span class="code"><b>#include</b> "cj_antibj_base.j"</span>
~VD

posted at 11/11/09 20:53
Guest

library Test
endlibrary
static if LIBRARY_Test then
endif
#if ???
...?
#endif

posted at 10/11/09 23:49
Guest

static ifs don't seem to work in definitions
library Hi initializer Hello {
constant bool HELLO = true
define {
hi = {
static if HELLO {
printf("Hello World")
}
}
}
void Hello() {
hi
}
}
Use cjass features inside of cjass features =0
<div class="code">library Hi initializer Hello {
&nbsp;&nbsp;#define {
&nbsp;&nbsp;&nbsp;&nbsp;HELLO = true
&nbsp;&nbsp;&nbsp;&nbsp;hi = {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#if HELLO
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf("Hello World")
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#endif
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;}
&nbsp;&nbsp;void Hello() {
&nbsp;&nbsp;&nbsp;&nbsp;hi
&nbsp;&nbsp;}
}</div>
~VD

posted at 01/11/09 19:09
weaaddar

It seems this project lost a lot of steam, what are the roadmap for the new features?

posted at 30/10/09 20:23
Guest

Will zinc jass be support in feature ?
and.. vJass's complete name is Visual Jass or.. Vexorian Jass!? ~XD
I can't register user in Wc3..
orz
Code inside of zinc tags is completely ignored by cjass.
~VD

posted at 30/10/09 18:41
Guest

How to private enum?
For now only
<div class="code">enum(name){
&nbsp;&nbsp;private a,
&nbsp;&nbsp;private b,
&nbsp;&nbsp;private ñ
}</div>
It's awful, but in the future it will be reworked.
~VD

posted at 28/10/09 13:42
Guest

Why i can't do this?
#define AAA = true
#define BBB = true
#if AAA && BBB
BJDebugMsg("test")
#endif
Logical operations in preprocessor directives will be added very soon.
~VD

posted at 26/10/09 15:50
N.e.k.i.t

Good preprocessor =D

posted at 25/10/09 22:51
Mooglefrooglian

Thanks so much :D
Map compiles fine, as do my other 3 or 4 test maps with huge 10000 line scripts. :D
Have a great one.
Thx for test. We will upload this version as stable.
~ADOLF

posted at 24/10/09 23:55
Mooglefrooglian

Here is the map.
When cJass id disabled, it saves fine. When it is on, it errors.
Thx, it is fixed in .16. We will apload new version soon.
~ADOLF

posted at 24/10/09 22:58
Mooglefroogliann

Ack, hate to spam, but it appears that I have another bug, on the same map. >.>
function Trig_Bullets_CheckCollision takes integer i returns nothing
local integer j
local real dX=udg_bulletX[i]-udg_bulletTargetX[i]-udg_bulletTargetSpeedX[i]*(udg_bulletTime[i]-udg_bulletTarget​LastTime[i])
local real dY=udg_bulletY[i]-udg_bulletTargetY[i]-udg_bulletTargetSpeedY[i]*(udg_bulletTime[i]-udg_bulletTarget​LastTime[i])
local real dZ
local real dSX
local real dSY
local real dSZ
local real r
local real a
local real b
local real c
local real t
local elseif-dX/dSX-r>t then
local elseif-dY/dSY-r>t then
local elseif-dZ/dSZ-r>t then
Yeah.. the bottom errors, for obvious reasons.
The original function is:
function Trig_Bullets_CheckCollision takes integer i returns nothing
local integer j
local real dX = udg_bulletX[i]-udg_bulletTargetX[i]-udg_bulletTargetSpeedX[i]*(udg_bulletTime[i]-udg_bulletTargetLas​tTime[i])
local real dY = udg_bulletY[i]-udg_bulletTargetY[i]-udg_bulletTargetSpeedY[i]*(udg_bulletTime[i]-udg_bulletTargetLas​tTime[i])
local real dZ
local real dSX
local real dSY
local real dSZ
local real r
local real a
local real b
local real c
local real t
Sorry to spam D:
This is not spam. Thx for report, I'll fix it tommorow.
~ADOLF
Please, provide more code: we can't reproduce the bug with only what you've provided,
~VD

posted at 24/10/09 22:54
Mooglefrooglian

Ah, you're a life saver. Thanks so much.
I also hate to have to suggest, but having worked on my own prerocesser, I noticed that in the war3map.j it has a configuration section with which it appears you can set the map name.
Any way you can make a system define that you can set to allow you to just use one define and if you change, say, a version number, just have it in one place so the map name and anywhere else you use this define will all be updated?

posted at 24/10/09 22:41
Mooglefrooglian

I don't suppose you'd mind releasing .15? :P
done
~VD

posted at 22/10/09 08:33
Mooglefrooglian

Bug with 1.4.13.
The line:
local boolean Display=udg_playerRangeDisplay[pid]and(id>0)and (udg_classFirstAttack[udg_unitClass[id]]!=0) and array IsUnitInGroup(U,udg_playerUnitsSelected[pid]) and (not IsUnitLoaded(U))
is converted from:
local boolean Display = udg_playerRangeDisplay[pid] and (id>0) and (udg_classFirstAttack[udg_unitClass[id]]!=0) and IsUnitInGroup(U,udg_playerUnitsSelected[pid]) and (not IsUnitLoaded(U))
The map is SupCom Whitefire, which I can upload if neccessary.
I was actually testing it on pyJass and was all afraid I had an error.. but it still has error when pyJass compiler is off and cJass is on, so it's all yours now :D
Thanks for report, we'll fix that.
~VD
Fixed in 1.4.1.15. Thx.
~ADOLF

posted at 20/10/09 20:33
death-sin

lets say i have this code :
unit a
unit b
unit c
and i want to do this :
a = b = c = null
so all of them is set to null
and they will be converted to :
set a = null
set b = null etc....
so this could be a simple and a nice thing to add

posted at 19/10/09 22:10
Guest

hi. I have know ideea what this is, but it's all very exciting.

posted at 18/10/09 23:32
Mooglefrooglian

Van Damm, as far as I'm aware, it's near impossible. MY anti virus doesn't pick it up and things like AVG which return tons of false positives have an exclusion list.
If nothing else, you can follow VCK's lead and email all of the major anti virus companies about your program.

posted at 14/10/09 23:21
Van Damm

Sorry about all these things with updater and antiviral software. I'm thinking of what I can do to stop them from treating updater as malware.

posted at 14/10/09 14:04
Guest

->Dark Dragon
The latest AdicHelper works differently from the old one... Dark Dragon, it's not a virus, so just add it to the exclusion list... why are you asking that u o-o
->cJASS Team
partial structs
libraries with same names (just go into each other)
partial definitions
method extensions
An area for people to submit inclusion files with definitions and utilities etc for things like-
player windows
multi dimensional virtual grids
generic collections
Some sort of framework implemented for all files in inclusion area and a database of methods etc or w/e for each inclusion file. This way, when a feature is used from a file, that feature is auto added to the map more easily. In this way, people can add to their framework without adding to an actual map and have a map only have in it what is required.

posted at 14/10/09 13:46
Dark Dragon

Hi VD!
my anti-virus never reported an virus using JNGP nor any of its features but today it deleted AdicHelper Updater... whay is that so? it said it has samle of an malware...
what should i do?
~DD

posted at 14/10/09 00:31
Dark Dragon

request!
define CreateUnit(p, id, x, y, f) = {
if (id == '0000') {
MyUnit = CreateUnit(p, '1000', x, y, f)
} else {
MyUnit = CreateUnit(p, id, x, y, f)
}
return MyUnit
}
nothing test() {
unit u = CreateUnit(player(0), '0000', 0,0,0)
}
defines can have only one return and it must be the last action in define...
so its compiled to:
nothing test() {
unit u
if ('0000' == '0000') {
MyUnit = CreateUnit(player(0), '1000', 0, 0, 0)
} else {
MyUnit = CreateUnit(player(0), '0000', 0, 0, 0)
}
set u = MyUnit
}
thats how it would be compiled, its easy to add coz of this rules: define can have only one return and it must be last action in that define...
Greets!
~DD

posted at 13/10/09 16:15
Dark Dragon

Hi again!
just another bug!
i hooked TimerStart, since argument can be new timer i stored it in global and that first action is now compiled to call instead of set... thats because TimerStart call is addded before its replaced with define.
Greets!
~DD

posted at 12/10/09 20:19
Dark Dragon

found a bug!
define {
VectorOffset(v, x, a)= v.Move(v.GetX()+((x)*Cos(a)), v.GetY()+((x)*Sin(a)), v.GetZ())
VectorOffset(v, x, a, b) = v.Move(v.GetX()+((x)*Cos(a)*Cos(b)), v.GetY()+((x)*Sin(a)*Cos(b)), v.GetZ()+((x)*Sin(b)))
}
after i added this two defines! nothing *(pfunc) and boolean *(pfunc) remain that way and dont get replaced...
define <nothing *>(pfunc) = function pfunc
define <boolean *>(pfunc) = function pfunc
they work after i remove this two defines, but after not anymore. did i again do smth wrong?
Greets and thanks!
~DD

posted at 12/10/09 16:34
Dark Dragon

can i see full changelog from development version... as well what are optional functions?
Greets!
~Dark Dragon

posted at 11/10/09 23:36
Troll-Brain

An other thing, one more time the auto updater is broken.
So i guess i should always make updates manually.
What can break it ?
When i update manually Jasshelper, maybe ?

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [16] 17 18 19 20 21 22 23 24 25 26 27

[back to top]