[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Modding > JASS Resources


JASS Resources Find JASS code snippets and functions here or write your own and post it on the Submissions sub-forum.

Reply
 
Thread Tools
Old 05-16-2012, 09:29 AM   #46 (permalink)
Registered User Luorax
Invasion in Duskwood
 
Luorax's Avatar
 
Join Date: Aug 2009
Posts: 1,114
Luorax is just really nice (375)Luorax is just really nice (375)Luorax is just really nice (375)Luorax is just really nice (375)
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.
__________________
Luorax is offline   Reply With Quote
Old 05-16-2012, 10:56 AM   #47 (permalink)
Forum Moderator Bribe
Keep it simple
 
Bribe's Avatar
Spells, Help Zones & JASS Moderator
 
Join Date: Sep 2009
Posts: 5,581
Bribe has much of which to be proud (1209)Bribe has much of which to be proud (1209)
PayPal Donor: This user has donated to The Hive. 
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.

Bribe is offline   Reply With Quote
Old 05-16-2012, 11:32 AM   #48 (permalink)
Registered User Luorax
Invasion in Duskwood
 
Luorax's Avatar
 
Join Date: Aug 2009
Posts: 1,114
Luorax is just really nice (375)Luorax is just really nice (375)Luorax is just really nice (375)Luorax is just really nice (375)
I can live withouth them :)
__________________
Luorax is offline   Reply With Quote
Old 05-16-2012, 11:57 AM   #49 (permalink)
Forum Moderator Bribe
Keep it simple
 
Bribe's Avatar
Spells, Help Zones & JASS Moderator
 
Join Date: Sep 2009
Posts: 5,581
Bribe has much of which to be proud (1209)Bribe has much of which to be proud (1209)
PayPal Donor: This user has donated to The Hive. 
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.

Bribe is offline   Reply With Quote
Old 05-16-2012, 03:41 PM   #50 (permalink)
Registered User Zwiebelchen
Dance, my puppets, dance!
 
Join Date: Sep 2009
Posts: 2,298
Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)
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.
Zwiebelchen is offline   Reply With Quote
Old 05-16-2012, 03:46 PM   #51 (permalink)
Registered User Troll-Brain
cool != useful
 
Troll-Brain's Avatar
 
Join Date: Apr 2008
Posts: 1,940
Troll-Brain is just really nice (375)Troll-Brain is just really nice (375)Troll-Brain is just really nice (375)Troll-Brain is just really nice (375)
Quote:
Originally Posted by Zwiebelchen View Post
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
Troll-Brain is offline   Reply With Quote
Old 05-16-2012, 07:14 PM   #52 (permalink)
Registered User Zwiebelchen
Dance, my puppets, dance!
 
Join Date: Sep 2009
Posts: 2,298
Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)
Quote:
Originally Posted by Troll-Brain View Post
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. :)
Zwiebelchen is offline   Reply With Quote
Old 05-25-2012, 04:29 PM   #53 (permalink)
Forum Moderator Magtheridon96
JESUS MAN
 
Magtheridon96's Avatar
Resource Moderator
 
Join Date: Dec 2008
Posts: 5,702
Magtheridon96 has a brilliant future (1824)
Merit Badge - Level 0: This user has proven to be extremely valuable to the Warcraft III Modding Community. 
I convinced Vengeancekael to feature this in the next Monthly News Batch (May Edition).
__________________
Magtheridon96 is offline   Reply With Quote
Old 05-25-2012, 08:34 PM   #54 (permalink)
Registered User Zwiebelchen
Dance, my puppets, dance!
 
Join Date: Sep 2009
Posts: 2,298
Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)
Nice. Let's see wether this can get some more attention with that. I could imagine something like a music contest using this :>
Zwiebelchen is offline   Reply With Quote
Old 05-25-2012, 08:37 PM   #55 (permalink)
Registered User Luorax
Invasion in Duskwood
 
Luorax's Avatar
 
Join Date: Aug 2009
Posts: 1,114
Luorax is just really nice (375)Luorax is just really nice (375)Luorax is just really nice (375)Luorax is just really nice (375)
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)
__________________
Luorax is offline   Reply With Quote
Old 06-27-2012, 09:44 AM   #56 (permalink)
Registered User 3ICE
User
 
3ICE's Avatar
 
Join Date: Jul 2007
Posts: 24
3ICE has little to show at this moment (5)
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
3ICE is offline   Reply With Quote
Old 06-27-2012, 12:50 PM   #57 (permalink)
Registered User Zwiebelchen
Dance, my puppets, dance!
 
Join Date: Sep 2009
Posts: 2,298
Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)
Quote:
Originally Posted by 3ICE View Post
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.
Zwiebelchen is offline   Reply With Quote
Old 06-28-2012, 10:06 AM   #58 (permalink)
Registered User toanlove371
User
 
Join Date: Oct 2011
Posts: 11
toanlove371 is an unknown quantity at this point (0)
this system need vJASS ?
toanlove371 is offline   Reply With Quote
Old 06-28-2012, 10:35 AM   #59 (permalink)
Registered User Zwiebelchen
Dance, my puppets, dance!
 
Join Date: Sep 2009
Posts: 2,298
Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)Zwiebelchen is a glorious beacon of light (425)
Quote:
Originally Posted by toanlove371 View Post
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
Zwiebelchen is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 06:35 AM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle