Posting rules

If you want to leave a comment or suggestion, you may post it here.

All messages and responses are visible to all users.

Please note that any flaming or offending posts will be deleted immediately without any response.

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

Post a message

Your name:
Your e-mail (optional):
Message text:
(max 10000 characters;
txt2 markup is available)

all times are GMT +04: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

posted at 29/01/12 19:16
Guest

Is cJass ever going to be updated? I'd really like to continue using it, but it still has some issues.

posted at 22/01/12 21:46
Guest

ħÊÞÕù°Ô3.±ù·âÍõ×ù

posted at 21/01/12 10:11
wd40bomber7

Hello, I was wondering if the source to horus is available anywhere? Or if not, if you could make one tiny change to it. I use an alternate style in horus that involves white text on a black background. Unfortunately the function list still uses a white background. I'd love for this to be fixed, or if you send me the source I'll make the tiny change myself. I'd really appreciate it, thank you!

posted at 13/12/11 01:26
Sebra

Ïðîåêò ñêîðåå ì¸ðòâ, ÷åì æèâ. :-(

posted at 10/12/11 09:03
Guest

Çäðàñüòå. Ñäåëàéòå, ïîæàëóéñòà ìàññèâû äåôàéíîâ. Íàïðèìåð:
define {
 variable[1] = 123
 variable[2] = 456
 MAX = 2
}
...
local int i = 1
local int array ia [MAX]
whilenot (i>MAX) {
 ia[i] = variable[i]
 i++
}

posted at 04/10/11 15:23
Troll-Brain

The "//! inject" vJass feature (custom main function) is currently not supported, AdicHelper simply crashes.

posted at 12/09/11 21:16
ADOLF

When will there be one?
I now have a lot of work IRL.
I also develop the ternary operator now.

posted at 09/09/11 03:44
Guest

No update for some time :o
When will there be one?

posted at 04/09/11 12:23
Sebra

Native jass code must work as is.
"syntax of interfaces and function pointers" made by Vex must work too.
This tool made to help, not to substitute.

posted at 03/09/11 17:32
Guest

You should really drop off JASS2's block syntax and make everything with curly brackets. It's just better that way. You should also change the syntax of interfaces and function pointers to a more C-like one.

posted at 26/08/11 20:52
Guest

Please update the dev version with the newest one, I think it's good enough to be considered "dev".
For people who don't check feedback page...

posted at 24/08/11 10:57
ADOLF

Project died again? :(
No, I'm working)

posted at 24/08/11 09:18
Guest

Project died again? :(

posted at 22/08/11 13:12
Guest

""Betas run's JassHelper to preparser textmacroses. So try to copy SFmpq.dll (take it in jassnewgenpack*\AdicHelper\) to:
jassnewgenpack*\bin\
jassnewgenpack*\jasshelper\
jassnewgenpack*\jasshelper\bin\""
Thanks a lot, Adolf! It works now :D
You should mention this somewhere, in case someone else runs in the same problem. Or the installer should replace those.

posted at 21/08/11 10:01
ADOLF

Why do i, once i update wehack.lua, keep geting error message when i save map: "SFmpq.dll missing"? :/
Before i changed wehack.lua, it didn't happen.
Betas run's JassHelper to preparser textmacroses. So try to copy SFmpq.dll (take it in jassnewgenpack*\AdicHelper\) to:
jassnewgenpack*\bin\
jassnewgenpack*\jasshelper\
jassnewgenpack*\jasshelper\bin\

posted at 20/08/11 23:46
Guest

Why do i, once i update wehack.lua, keep geting error message when i save map: "SFmpq.dll missing"? :/
Before i changed wehack.lua, it didn't happen.

posted at 19/08/11 21:17
ADOLF

2 Troll-Brain :
code.google.com/p/cjass/issues/detail?id=15 <- I'll add this feature to optimizer latter)
2 Anonymus :
Hmm, maybe I know how fix it. cJass just add some lib wit this function:
_sGroupCopyCode		db	"library cjGroupCopyLib75hJKJ3745gf", 0dh, 0ah
			db	"globals", 0dh, 0ah
			db	"group cj_tmpgr_copy_nw509ert7", 0dh, 0ah
			db	"endglobals", 0dh, 0ah
			db	"function cj_group_copy_75hJKJ3745gf takes nothing returns nothing", 0dh, 0ah
			db	"//# optional", 0dh, 0ah
			db	"call GroupAddUnit(cj_tmpgr_copy_nw509ert7,GetEnumUnit())", 0dh, 0ah
			db	"endfunction", 0dh ,0ah
			db	"endlibrary", 0dh, 0ah
I try to add to all user defined libraries rewuires cjGroupCopy***

posted at 19/08/11 17:34
Guest

Here's the code which causes error with for loop
unit GroupPickNearestUnitToLoc(group g, location loc) {
        real dist_min = 0
        unit nearest_unit = null
        // /*
        for(unit u; UnitsInGroup(g))
        {
            location loc_unit = GetUnitLoc(u)
            real dist = DistanceBetweenPoints(loc_unit, loc)
            
            if dist_min == 0 || dist_min > dist
                dist_min = dist
                nearest_unit = u
            endif
        }
        // */
        return nearest_unit
    }
However, if I use it in an empty map, it compiles correctly. So it's "endemic" to my map?? I can provide any other details if you need.
Compiled code
function GroupPickNearestUnitToLoc takes group g,location loc returns unit
local real dist_min=0
local unit nearest_unit=null
local unit cjlocgn_00000000
local location cjlocgn_00000001
local real cjlocgn_00000002
set cj_tmpgr_copy_nw509ert7=cjgrfgn_00000001
call GroupClear(cj_tmpgr_copy_nw509ert7)
call ForGroup(g, function cj_group_copy_75hJKJ3745gf)
loop
set cjlocgn_00000000=FirstOfGroup(cjgrfgn_00000001)
exitwhen cjlocgn_00000000 == null
call GroupRemoveUnit(cjgrfgn_00000001, cjlocgn_00000000)
set cjlocgn_00000001=GetUnitLoc(cjlocgn_00000000)
set cjlocgn_00000002=DistanceBetweenPoints(cjlocgn_00000001, loc)
if dist_min == 0 or dist_min > cjlocgn_00000002 then
set dist_min=cjlocgn_00000002
set nearest_unit=cjlocgn_00000000
endif
endloop
set cj_v666_unit=nearest_unit
set cjlocgn_00000001=null
set nearest_unit=null
return cj_v666_unit
endfunction

posted at 19/08/11 13:31
Troll-Brain

I'm making benchmarks :
Because variable name length really does matter, i would need the shortest ones.
It would be great if i could use #for with the "special" "base" 63 (a-Z ; 0-9 , _ ) instead of the decimal base.
The first character has to be a letter and the last mustn't be an _ , and ofc if the generated word is only one character it has to be a letter.
The first benchmark is failed because of that, a good script optimizer should rename locals with one letter (hell 52 seems enough for the whole functions) and rename globals and functions with as short characters as possible (even one if it's possible).
But if you consider it way too specific or don't want to do it, just tell me, i will make a personal external script for that.
Alternatively you could also improve the optimizer but i think you have enough work with fixing bugs and features adding ^^
Keep the good work.

posted at 19/08/11 11:39
ADOLF

.37 is still bugged with for loop :(
Post anywhere map or code - I need to see it)

posted at 18/08/11 21:08
Guest

.37 is still bugged with for loop :(
I receive error from jasshelper
Undefined function bla-bla-bla
call ForGroup(g, function cj_group_copy_75hJKJ3745gf)

posted at 17/08/11 17:46
ADOLF

while (cond) whilenot not(cond),
Try to commeny this line. Last betas are incompatible with the libraries types and printf; We'll update it later.

posted at 17/08/11 15:12
Guest

That's from the newest version (.37 I think).
Something with { symbol.

posted at 17/08/11 15:08
Guest

There's a problem with "types" library.
Error log
[8] Critical error: bad char
define
{ 
int integer
bool boolean
void nothing
float real
while (cond) whilenot not(cond),
break=exitwhen true

enddefine

posted at 17/08/11 10:12
ADOLF

2 Troll-Brain :
Hi!
But it seems there is no bug if you use (), like
Hmm, I do not remember exactly why it is so=/ Use () yet.
For some odd reason there is also a problem with the 2898 declaration
It's buffer overflow bug:
// ~ transladet to c asm
char ParsedLocalsCode [0x00010000]
char ParsedFuncCode   [0x000a0000]
I'll increase this buffers in the next beta (.37)

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

[back to top]