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 11/08/11 02:20
nestharus

found the exploding library
It's Table by Bribe

posted at 11/08/11 02:15
nestharus

Hm..
//! textmacro a
//! endtextmacro
still doesn't compile for me w/ 0 cJASS code in map ; P.
Also.. I tried Encoder with cJASS enabled.. wow, cjass 100% exploded, rofl.
Yea, cJASS can't be enabled with Encoder atm.
Checking tool existance...
copying ...
Opening: cj_null.j
Loading: cj_null.j
Parsing...
Opening: bj_null.j
Loading: bj_null.j
Parsing...
Loading...
Loading...
Parsing...
Textmacros - initializing
Textmacros - parsing...
Textmacros - writing
copying...
Saving macro_preprocessing_out.jglobals
Success!

APPCRASH

posted at 11/08/11 01:46
ADOLF

//! textmacro a
//! endtextmacro
Compiles fine with 1.4.2.31 now
Strange. Your map probably not contained cJass code, so Adik crashes, but JassHelper did not give error messages.

posted at 11/08/11 01:39
ADOLF

private {
No, not planned in the near future.
Also, is it possible to use lambda functions in conjunction with function pointers (interfaces)?
Not sure, lambda nothing () {} turn to function ****. As it should be processed for compability with interfaces?
2 Frotty :
Thx for the bug, I'll fix it.
Save that map with optimizer on and try to run it in wc3. It'll shoot you to wc3 menu. Turn off the optimizer and save and run in wc3. Map will run fine.
Yes, thanks. Now that I have the map with bugs - I would be much easier to find and fix it.

posted at 11/08/11 01:13
Frotty

//! textmacro a
//! endtextmacro
Compiles fine with 1.4.2.31 now,
UnitStatus still crashes AdicHelper.
UnitStatus(peeeq.de/code.php?id=4742)

posted at 10/08/11 23:23
Guest

nvm again, optimizer is broken. It breaks Encoder
Proof-
Save that map with optimizer on and try to run it in wc3. It'll shoot you to wc3 menu. Turn off the optimizer and save and run in wc3. Map will run fine.
Fix optimizer : |.

posted at 10/08/11 23:20
Guest

nvm, the optimizer doesn't seem to mess with strings anymore. It did back when I wrote Encoder, so I dunno o-o.
globals
    constant string s=" "
endglobals
struct tester extends array
    private static method onInit takes nothing returns nothing
        call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,60,"|"+s+"hi"+s+"|")
    endmethod
endstruct

posted at 10/08/11 22:21
Guest

//! textmacro a
//! endtextmacro
cjass parses to
define tma=
{ 
//! endtextmacro

posted at 10/08/11 20:42
Frotty

This crashes AdicHelper
//! textmacro bah
//! endtextmacro
This does not
//! textmacro bah
//! endtextmacro
//Another line, even if its empty it works

posted at 10/08/11 19:39
Frotty

Correct Pastelink...

posted at 10/08/11 19:23
Frotty

Okay, more detailed now, sorry for the 3 comments:
Code
//! textmacro bah

//! endtextmacro
AdicParser stops working at Textmacro preprocessing.

posted at 10/08/11 19:07
Frotty

Well I ddint saw the old wehack.lua update. Still tho, AdicHelper Crashes at Textmacro preprocessing

posted at 10/08/11 18:53
Frotty

Okay turns out Textmacros arent fixed?
a textmacro that doesnt takes any arguments like this one:
The GenerateAbilities Textmacro's name just stays in the code.

posted at 10/08/11 18:47
Frotty

When compiling with AdicParser activated I get an "Expected a name" error at Generate Abilities line. I guess the Comment // Slashes got removed.

posted at 10/08/11 18:06
Guest

I don't have WC3 at the moment, so I can't check it myself, but is is possible to do the following:
library someLibrary {
    private {
        trigger mainTrigger = CreateTrigger();
        timer mainTimer = CreateTimer();
        unit dummyUnit = null;
    }
}
Instead of having to type private everywhere?
Also, is it possible to use lambda functions in conjunction with function pointers (interfaces)?
And I would like to suggest that you change the syntax of interfaces and function pointers to fit the C-like syntax.

posted at 09/08/11 23:09
ADOLF

  • Added for (unit u, UnitsInGroup(...)) {} ex loop
  • Fixed bug with lambda functions, declared in callbacks.

posted at 09/08/11 22:00
nestharus

eh, that doesn't support multiple hooks. Would also need to be a trigger eval ;P.
Actually, if my def=def+code idea is implemented, then that'll work ^^.
I guess cjass'll be ready to use when optimizer bug is fixed.
Please also make optimizer do all that vex's does and outputs 2 versions of map: opt and reg.

posted at 09/08/11 21:58
Guest

Sorry, but in the code below, CreateItem() should be Create##Item() and itemid should be itemId. I made the mistakes because I was in a hurry.

posted at 09/08/11 21:54
Guest

nestharus, there is absolutely no need for hook.before and hook.after, as cJass' macrodefinitions provide you with much more than that.
If you are talking about this(www.thehelper.net/forums/showthread.php/163831-Advanced-Item-Indexing), then here's what can fix the need to replace CreateItem() with CreateItemEx():
define {
    CreateItem = CreateItem_hook
}

item CreateItem_hook (int itemId, float x, float y) {
    return ItemStruct.load(CreateItem(itemid,x,y)).it
}
It's as simple as that.

posted at 09/08/11 14:13
nestharus

Oh, another good feature.
You know the hook feature in GUI? A hook.before and hook.after would be wonderful ^)^.
hook.before runs the trigger evaluate before the native runs and passes in the natives args (just standard hook). hook.after runs after the native runs and passes in either the return of the native or the args + return of native.
There is actually a resource: Item Indexer by king on thehelper.net, that could really benefit from hook.after.

posted at 09/08/11 12:56
nestharus

Oh yes, one final bug I know about.
cJASS optimizer breaks strings (it applies itself on srtings).
If you were to have " " as a string, cJASS optimizer would turn it into "".
Make cJASS ignore everything between " " and be sure to check for stuff like \" (don't treat \" as ").

posted at 09/08/11 11:18
nestharus

so... any bugs left? : P
I used this long ago. I wasn't happy when I had to rewrite like 15 major resources due to bugs and what appeared to be a dead project ; P.
oh.. here's another interesting idea =). Being able to inject code into specific parts of methods. My suggestions? set definition = definition + code. Very easy way to do it =).

posted at 08/08/11 14:41
ADOLF

============
1.4.2.27
* Fixed all vJass textmacros bugs.
Edit wehack.lua (look NewGenWE root directory) :
-- cJass#2
	if have_ah and ah_enable.checked then
		cmdline = "AdicHelper\\AdicHelper.exe "

-- to ->

-- cJass#2
	if have_ah and ah_enable.checked then
		cmdline = "AdicHelper\\AdicHelper.exe /tmcrpre=\""..grimdir.."\\jasshelper\\clijasshelper.exe\" "

posted at 07/08/11 19:00
ADOLF

==============
1.4.2.26
  • fixed bug with command line processing
  • fixed bufs with for loops ex conditions
  • fixed bug with optional function with empty body (thx Некрон71 for it)
  • fixed bug with /**/ comments (thx Netharus for it)

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]