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:00Latest 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 09/09/09 04:00Sevion
posted at 08/09/09 05:54weaaddar
As I see, there is a bug now: parser removes the spaces after curved brackets. I'll tell that to ADOLF and he'll fix it, I hope.
As I don't know if or when he'll fix this certain bug, for now you can use a workaround:
<div class="code"><b>define</b> {
SPACE =
Dict(TKey,TValue) = Dict_##TKey##_##TValue SPACE
}
</div>
<div class="code"><b>define</b> {
SPACE =
Dict(TKey,TValue) = Dict_##TKey##_##TValue SPACE
}
</div>
VD
posted at 08/09/09 04:42Guest
You are just to use block inside of define like:
<div class="code">define my = {
BJDebugMsg("1")
BJDebugMsg("2")
}</div>
<div class="code">define my = {
BJDebugMsg("1")
BJDebugMsg("2")
}</div>
posted at 08/09/09 01:40Inferior
Thanks for report, we'll look through that problem.
VD
posted at 07/09/09 20:36Sevion
That was entirely my fault - a small bug in that version of updater (1.0.3.1) From now on everything should be OK.
VD
posted at 07/09/09 17:01Dark Dragon
posted at 07/09/09 16:50Dark Dragon
It's like
<div class="code">
<b>define</b> war3_124 = 1
<div class="code">
<b>define</b> war3_124 = 1
#if war3_124 == 1 <i>// for now, only == and != are implemented</i>
<b>define</b> H2I = GetHandleId
#endif
</div>
<b>define</b> H2I = GetHandleId
#endif
</div>
% can be used in string formatting instead of ^ to make it more C-like.
As well, I've completed the manual in russian and now I'm translating it to english.
VD
posted at 06/09/09 07:56Sevion
<a name="update-fix"></a><br/>Please follow the next steps to fix the issue:
<ol style="padding-left:40px;">
<li>Download <a href="files/?AHupdate.exe">updater</a></li>
<li>Place it to the "AdicHelper" folder, replacing the old one</li>
<li>Delete "cjcv.dll"</li>
<li>Run AHupdate.exe</li>
<li>Now everything should be OK</li></ol>
Sorry for inconvenience, such issues will not happen again.
<ol style="padding-left:40px;">
<li>Download <a href="files/?AHupdate.exe">updater</a></li>
<li>Place it to the "AdicHelper" folder, replacing the old one</li>
<li>Delete "cjcv.dll"</li>
<li>Run AHupdate.exe</li>
<li>Now everything should be OK</li></ol>
Sorry for inconvenience, such issues will not happen again.
posted at 05/09/09 17:47weaaddar
Thanks for pointing it out! I've just fixed it.
As for array declarations, they are probable to be implemented.
As for everything other, now we have no type check layer in the tool and I don't know if ADOLF will add it in the future, but we'll discuss your propositions, thanks.
VD
posted at 03/09/09 14:45Dark Dragon
posted at 03/09/09 14:41Dark Dragon
setdef changes the define value
<div class="code">
void test () {
<b>define</b> msg = "text"
BJDebugMsg(msg) <i>// will print "text"</i>
<div class="code">
void test () {
<b>define</b> msg = "text"
BJDebugMsg(msg) <i>// will print "text"</i>
<b>setdef</b> msg = "other text"
BJDebugMsg(msg) <i>// will print "other text"</i>
}
</div>
BJDebugMsg(msg) <i>// will print "other text"</i>
}
</div>
undef is not yet implemented, but it will soon be
The manual is in process, I hope to finish it rather soon =)
VD
posted at 02/09/09 02:58Dark Dragon
ok, but why?)
ADOLF
posted at 01/09/09 15:32Dark Dragon
I've sent you a PM @ hive
VD
posted at 01/09/09 14:58Dark Dragon
Bugs fixed, thanks.
posted at 30/08/09 16:47Element of Water
=)
ADOLF
posted at 30/08/09 13:07Dark Dragon
posted at 30/08/09 11:53Element of Water
Thanks for report. We'll look into your problem and find out what we can fix =)
VD
Fixed in 1.3.4.1
ADOLF
posted at 29/08/09 17:10Dark Dragon
posted at 29/08/09 13:54Dark Dragon
Sorry, that's my fault, I wasn't fast enough to reconfigure autoupdater. For now you can get the file from <a href="files/?cJass_AdicHelper_v01030400.zip">zip archive</a>, I'll reconfigure the updater now.
VD
posted at 29/08/09 12:07ADOLF
<div class="code">
<b>include</b> "cj_print.j"
<b>include</b> "cj_print.j"
void Trig_esc_Actions () {
<b>printf</b> ("^pc was defeated by evil ^pc - he lost ^igold gold." ,\
Player(0), Player(1), GetRandomInt(0,1))
}
</div>
<b>printf</b> ("^pc was defeated by evil ^pc - he lost ^igold gold." ,\
Player(0), Player(1), GetRandomInt(0,1))
}
</div>
<a href="http://img86.imageshack.us/img86/3549/demoa.jpg">screenshot</a>
posted at 27/08/09 21:24Dark Dragon
posted at 27/08/09 21:15Dark Dragon
It's a bug! Seems like it doesn't understand private defines, which start with <. But if you omit "private", it works. I'll report that to Adolf tomorrow.
VD
Fixed
ADOLF
posted at 27/08/09 21:06Dark Dragon
posted at 27/08/09 18:30Strilanc
Maybe anonymous functions will be the way of doing it? Like:
<div class="code">
trigger t = CreateTrigger()
call TriggerRegisterPlayerUnitEvent(t, Player(0), EVENT_PLAYER_UNIT_SELL, \
lambda(){ return true } )
call TriggerAddAction(t, lambda(){ RemoveUnit(GetTriggerUnit()) })
</div>
They are not yet implemented, anyway, but I hope they will be.
<div class="code">
trigger t = CreateTrigger()
call TriggerRegisterPlayerUnitEvent(t, Player(0), EVENT_PLAYER_UNIT_SELL, \
lambda(){ return true } )
call TriggerAddAction(t, lambda(){ RemoveUnit(GetTriggerUnit()) })
</div>
They are not yet implemented, anyway, but I hope they will be.
We'll also think about some macro to get unique names for usage inside of defines.
VD
posted at 26/08/09 22:02Strilanc
You can use concatenation operator anywhere, like:
<div class="code">
<b>define</b> mac(type) = {
module object_ ## type
...
}
</div>
It simply merges anything on the left of it with any other thing on the right.
<div class="code">
<b>define</b> mac(type) = {
module object_ ## type
...
}
</div>
It simply merges anything on the left of it with any other thing on the right.