I think you have got a bug when you use exclusive heroes that are not randomly assigned ...
You don't set the already picked heroes to unavaliable ... so some people can have the same hero
This should fix the problem:
where you say in the comment:
"If exclusive - sets picked hero, removes hero model from game and removes variable from array"
add this action
Variable - Set libCHS - Unavailable Hero[libCHS - Currently Looking At[Player Number]] = true
I just wanted to say that your selector looks amazing and it is fantastic to have you working on a library to make great maps even more common. Really raising the bar in here.
I'm having an issue where players are able to pick more than one hero.
What I did is to make a condition for spawning the hero unit, which checked a boolean variable (playerSpawned[16]) was false, then spawned the hero and set the value of the boolean to true.
However it appears people are still able to pick more than one seperate hero - how is this possible? Lag hacks? More importantly, I'm wondering how I can stop it as it appears this is the only way a hero is spawned and it should work no matter which hero you pick.
Hey, I'm having a problem. I got the actual thing working but the text display of everything is not working properly for me. Of course keeping in mind that I am fairly new to the editor, this is probably a nooby mistake or overlook but I've been playing around with this for about 2 hours lol.
I have a screenshot of what it looks like:
Thanks for the reply.
I downloaded the localizer. So all I do is just try to localize the map with the library already imported?
If so it didn't work, so I guess i'll just wait on blizzard to do what they gotta do.
I got this to mess with it and see how some of it was done. I noticed in the latest updated 3.0.1 it says the portrait tiling is fixed.
I noticed: When you turn Instant spawn off then the icon still stays. The portraits are still tiled. When you use flash mode, a trigger error occurs every time you switch heros in the selector.
EDIT: the portraits are tiled because your supposed to use icons apparently, not portraits. There should be an option.
The insta spawn icon was still there because there was only 1 player in the map i guess.
I don't know about that trigger error. But with exclusive heros on, it is very intermittent, sometimes players can choose a previously chosen hero, sometimes they get a lock icon. I believe it has something to do with how many heroes they shuffle through before they get to the already taken hero.
The game also doesn't start when everyone has picked, we still have to wait for the timer...
If any one has problems importing this Library do the following:
Open open a new map or your map and go to Triggers.
Now click on View then Click on Show Library (if it's not selected already )
Now go to Data (Still at Triggers...) Now click library there and then click on import library and select the right one ;)
That's all folk's :)
And thanks alot for this awesome hero selection system
Or check out my tutorial how to import the library ()
Someone mind explaining to me how i actually "run the action 'Create Circle Hero Selection"'
i assumed it was done through map initialization and run trigger, but i see no such trigger
*EDIT*
Ok so turns out i was on the right track. It took me several hours to figure this out! for you newbs out there, you have to make a new trigger in the library folder, make the event "Map initialization" (how how ever you chose to start it), then create a new action for each of the 3 scripts.
Bumping this because I'm getting two errors, they may be related.
I don't know which one I attached first, but it's...
The portraits aren't visible (I've tried adding it manually with the "file" selection, but it only adds a static portrait and doesn't show the unit itself, I want it to show the unit, like a Reaper or whatnot.)
Annnnnd, the actual unit portrait is static and not animated.
sorry for a late response but i saw this and i can help u with this.
I think u mean like this below this?
Go to triggers where the hero selection trigger is created
Info adding the trigger for this:Add Unit to Hero selection Pool is the trigger from action what is used as a action (search for Add unit to Hero Selection Pool in the action list) when adding a new hero to the hero selection pool.
After adding this trigger just add the hero for the selection u want and then u can set his info and icon see the screenshot
Number 1 is where u can change his info for the display on the right side.
Number 2 is for the icon that is used for the hero.
Check out the screenshot i hope this helps!
Edit:
Here u can find a tutorial map with this hero library in it with 4 heroes as example to help u along the way!
It has a comment with some help about the triggers in it and information to help u along the way!
Link Removed: http://www.mediafire.com/?xs9f5vgcu3b6mvd
No glaring inefficiencies, the documentation is thorough (it even has a pdf manual), and it's exactly what it says on the tin. Approved.
I strongly encourage you to include a demonstration map, that shows a functionally-complete example of implementation; it would probably cut down on the number of halp-me responses.
I'm right clicking and downloading the library as well and its not saving as SC2lib. Broken link?
I think you have got a bug when you use exclusive heroes that are not randomly assigned ... You don't set the already picked heroes to unavaliable ... so some people can have the same hero This should fix the problem: where you say in the comment:
"If exclusive - sets picked hero, removes hero model from game and removes variable from array" add this action
Variable - Set libCHS - Unavailable Hero[libCHS - Currently Looking At[Player Number]] = true
Unavailable Heroes =/= Exclusive Heroes
Unavailable are never meant to be picked, only for show - Exclusive are allowed to be picked once only
If in exlusive hero mode, the hero taken check is the line:
Variable - Modify libCHS - Amount Hero Taken[Player Number]: + 1
which is also used as the hero counter in non exclusive hero mode (but in exclusive hero mode it will only reach 1 at most = taken)
However you are correct to say there is a bug, the line i just posted should infact be:
Variable - Modify libCHS - Amount Hero Taken[libCHS - Currently Looking At[Player Number]]: + 1
This should solve the issue (oversight on my part), added to next bugfix release
Thanks for reporting!
@SweetZombieJesus: Go
yeah didn't really look into that code but worked for me (fixed it in my version anyways) ... thanks by the way for the great selector :)
I just wanted to say that your selector looks amazing and it is fantastic to have you working on a library to make great maps even more common. Really raising the bar in here.
Hey,
I'm having an issue where players are able to pick more than one hero.
What I did is to make a condition for spawning the hero unit, which checked a boolean variable (playerSpawned[16]) was false, then spawned the hero and set the value of the boolean to true.
However it appears people are still able to pick more than one seperate hero - how is this possible? Lag hacks? More importantly, I'm wondering how I can stop it as it appears this is the only way a hero is spawned and it should work no matter which hero you pick.
Hey, I'm having a problem. I got the actual thing working but the text display of everything is not working properly for me. Of course keeping in mind that I am fairly new to the editor, this is probably a nooby mistake or overlook but I've been playing around with this for about 2 hours lol. I have a screenshot of what it looks like:
http://img687.imageshack.us/img687/3645/wtfstarcraft2.jpg
any ideas?
@RurutheWiz: Go
It was localization problems. I think there will be a locals editor in patch 1.2 iirc, else for the time being, try Hati's localizer
@progammer: Go
Thanks for the reply. I downloaded the localizer. So all I do is just try to localize the map with the library already imported? If so it didn't work, so I guess i'll just wait on blizzard to do what they gotta do.
I got this to mess with it and see how some of it was done. I noticed in the latest updated 3.0.1 it says the portrait tiling is fixed.
I noticed: When you turn Instant spawn off then the icon still stays. The portraits are still tiled. When you use flash mode, a trigger error occurs every time you switch heros in the selector.
EDIT: the portraits are tiled because your supposed to use icons apparently, not portraits. There should be an option.
The insta spawn icon was still there because there was only 1 player in the map i guess.
I don't know about that trigger error. But with exclusive heros on, it is very intermittent, sometimes players can choose a previously chosen hero, sometimes they get a lock icon. I believe it has something to do with how many heroes they shuffle through before they get to the already taken hero.
The game also doesn't start when everyone has picked, we still have to wait for the timer...
If any one has problems importing this Library do the following:
Open open a new map or your map and go to Triggers.
Now click on View then Click on Show Library (if it's not selected already ) Now go to Data (Still at Triggers...) Now click library there and then click on import library and select the right one ;)
That's all folk's :)
And thanks alot for this awesome hero selection system
Or check out my tutorial how to import the library ()
Someone mind explaining to me how i actually "run the action 'Create Circle Hero Selection"'
i assumed it was done through map initialization and run trigger, but i see no such trigger
*EDIT* Ok so turns out i was on the right track. It took me several hours to figure this out! for you newbs out there, you have to make a new trigger in the library folder, make the event "Map initialization" (how how ever you chose to start it), then create a new action for each of the 3 scripts.
WIll look like this.
Events > Map initialization
Actions > set hero select at point
Actions > add unit hero to hero selection pool
Actions > create hero selection
i think it has to be in that order.
Bumping this because I'm getting two errors, they may be related.
I don't know which one I attached first, but it's...
The portraits aren't visible (I've tried adding it manually with the "file" selection, but it only adds a static portrait and doesn't show the unit itself, I want it to show the unit, like a Reaper or whatnot.)
Annnnnd, the actual unit portrait is static and not animated.
@kanacali
sorry for a late response but i saw this and i can help u with this.
I think u mean like this below this?
Go to triggers where the hero selection trigger is created
Info adding the trigger for this:Add Unit to Hero selection Pool is the trigger from action what is used as a action (search for Add unit to Hero Selection Pool in the action list) when adding a new hero to the hero selection pool.
After adding this trigger just add the hero for the selection u want and then u can set his info and icon see the screenshot
Number 1 is where u can change his info for the display on the right side.
Number 2 is for the icon that is used for the hero.
Check out the screenshot i hope this helps!
Edit: Here u can find a tutorial map with this hero library in it with 4 heroes as example to help u along the way! It has a comment with some help about the triggers in it and information to help u along the way! Link Removed: http://www.mediafire.com/?xs9f5vgcu3b6mvd
@SweetZombieJesus: Go
No glaring inefficiencies, the documentation is thorough (it even has a pdf manual), and it's exactly what it says on the tin. Approved.
I strongly encourage you to include a demonstration map, that shows a functionally-complete example of implementation; it would probably cut down on the number of halp-me responses.
Hey, I just started with this and still a little noob at this :P
I dont get how it has to look ones ive imported the library, do i have to copy it from the top to somewhere or?
plx help me :)
Deleted because I'm an idiot lolol
Is it just me or is the file down?
I would have liked to use this at least temporarly.
@Scythe1250: Go Nope, it's unavailable. You should contact one of mods, or you could try to contact the Curse staff directly.
Someone contacted me that the link was down, so here is a dropbox link with the same file:
(3.0.1 Final & Manual) https://www.dropbox.com/s/70uuwkpcfl9u594/Hero%20Selection%20Library%20v3.0.1%20Final.zip
No changes have been made, probably still bugs in there due to newer SC2 versions. Good luck! :)