|
|
|
|
| JASS Resources Find JASS code snippets and functions here or write your own and post it on the Submissions sub-forum. |
 |
|
05-16-2012, 09:29 AM
|
#46 (permalink)
|
|
Invasion in Duskwood
Join Date: Aug 2009
Posts: 1,114
|
Well, Cohadar's JH uses "for" as a keyword, that's why it thinks that line contains a syntax error (and this is why I'm not using his JH).
Replace that for with something else, and it should work.
|
|
|
05-16-2012, 10:56 AM
|
#47 (permalink)
|
|
Keep it simple
Spells, Help Zones & JASS Moderator
Join Date: Sep 2009
Posts: 5,581
|
Cohadar's JassHelper makes library and struct initializers usable again, so yeah it's worth the syntactical correction.
__________________
How to post your triggers on the Hive Workshop.
JPAG - Bettering the cause of readable source code.
|
|
|
05-16-2012, 11:32 AM
|
#48 (permalink)
|
|
Invasion in Duskwood
Join Date: Aug 2009
Posts: 1,114
|
I can live withouth them :)
|
|
|
05-16-2012, 11:57 AM
|
#49 (permalink)
|
|
Keep it simple
Spells, Help Zones & JASS Moderator
Join Date: Sep 2009
Posts: 5,581
|
We all did for a long time. One of the reasons warcraft 3 modding is difficult though - lack of standards. Most people want to use World Editor or Jass NewGen Pack, JNGP is not updated with the latest JassHelper so it needs further updates, other enthusiasts want to use cJass, Cohadar's JassHelper is a bit better than Vexorian's JassHelper making it the better choice, so all in all we have a mess.
__________________
How to post your triggers on the Hive Workshop.
JPAG - Bettering the cause of readable source code.
|
|
|
05-16-2012, 03:41 PM
|
#50 (permalink)
|
|
Dance, my puppets, dance!
Join Date: Sep 2009
Posts: 2,298
|
Well, I just sticked to the naming convention in which blizzard's BJ functions are written (usually player variables are called "for" there). If it causes syntax errors, I think you can easily replace all instances of "for" to fix it.
|
|
|
05-16-2012, 03:46 PM
|
#51 (permalink)
|
|
cool != useful
Join Date: Apr 2008
Posts: 1,940
|
Quote:
Originally Posted by Zwiebelchen
Well, I just sticked to the naming convention in which blizzard's BJ functions are written (usually player variables are called "for" there). If it causes syntax errors, I think you can easily replace all instances of "for" to fix it.
|
If you really follow blizzard's convention that would be "whichPlayer".
"for" is a terrible name for a variable name, i suppose that would be ok if you weren't aware about the "issue" with Cohadar's jasshelper, but really here you could just change the name ...
__________________
- There are bugs with wc3, but most of time, the bug is between the keyboard and the chair.
- Never believe some warcraft "fact" without a proof, even from an "experienced" user, that's how myths & legends born.
You spam "...", "lol", and smilies such as "; p", "^)^",">.>"? You think you're the best and all other ones are stupids or at least less clever than you ? You think your errors are funny, while the other ones are incredibly lame ?
Maybe you've too much ego,or worse, you're a douchebag
|
|
|
05-16-2012, 07:14 PM
|
#52 (permalink)
|
|
Dance, my puppets, dance!
Join Date: Sep 2009
Posts: 2,298
|
Quote:
Originally Posted by Troll-Brain
If you really follow blizzard's convention that would be "whichPlayer".
"for" is a terrible name for a variable name, i suppose that would be ok if you weren't aware about the "issue" with Cohadar's jasshelper, but really here you could just change the name ...
|
I'm gonna fix it with the next update. Don't worry. :)
|
|
|
05-25-2012, 04:29 PM
|
#53 (permalink)
|
|
JESUS MAN
Resource Moderator
Join Date: Dec 2008
Posts: 5,702
|
I convinced Vengeancekael to feature this in the next Monthly News Batch (May Edition).
|
|
|
05-25-2012, 08:34 PM
|
#54 (permalink)
|
|
Dance, my puppets, dance!
Join Date: Sep 2009
Posts: 2,298
|
Nice. Let's see wether this can get some more attention with that. I could imagine something like a music contest using this :>
|
|
|
05-25-2012, 08:37 PM
|
#55 (permalink)
|
|
Invasion in Duskwood
Join Date: Aug 2009
Posts: 1,114
|
I'd definitely participate in that :)
Well, it's actually not a bad idea to be honest, at least I could improve my music production skills and widen my knowledge in different music genres (for example I've never worked on any fantasy based projects)
|
|
|
06-27-2012, 09:44 AM
|
#56 (permalink)
|
|
User
Join Date: Jul 2007
Posts: 24
|
Greetings,
Might I suggest a couple in-game messages to go along with the test?
I'm sure many people download this map just to hear how good it sounds.
Assume that no instructions were read, and no glancing at the triggers was done to find that playing the awesome music is triggered by an
EndCinematic
player event.
The proverbial user just clicks test map and waits for it to load. He then meets a black screen and silence. It would be nice to tell them: "Press ESC to play the next track!" at this point.
And then we might as well go the extra mile and display song names:
"Now playing... Sinistral Battle"
"Now playing... Back To The Future"
"Now playing... Underworld"
Thanks.
--3ICE
|
|
|
06-27-2012, 12:50 PM
|
#57 (permalink)
|
|
Dance, my puppets, dance!
Join Date: Sep 2009
Posts: 2,298
|
Quote:
Originally Posted by 3ICE
Greetings,
Might I suggest a couple in-game messages to go along with the test?
I'm sure many people download this map just to hear how good it sounds.
Assume that no instructions were read, and no glancing at the triggers was done to find that playing the awesome music is triggered by an
EndCinematic
player event.
The proverbial user just clicks test map and waits for it to load. He then meets a black screen and silence. It would be nice to tell them: "Press ESC to play the next track!" at this point.
And then we might as well go the extra mile and display song names:
"Now playing... Sinistral Battle"
"Now playing... Back To The Future"
"Now playing... Underworld"
Thanks.
--3ICE
|
As soon as I update this for the next time (to implement more features like bending, sliding and muting), I will add messages.
|
|
|
06-28-2012, 10:06 AM
|
#58 (permalink)
|
|
User
Join Date: Oct 2011
Posts: 11
|
this system need vJASS ?
|
|
|
06-28-2012, 10:35 AM
|
#59 (permalink)
|
|
Dance, my puppets, dance!
Join Date: Sep 2009
Posts: 2,298
|
Quote:
Originally Posted by toanlove371
this system need vJASS ?
|
Yes. Sorry if you are a mac user, but this was hard enough to do even with vJass so I couldnt create a simple Jass version
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|
All times are GMT. The time now is 06:35 AM.
|