by Enexy, can't believe you helped me in skype, that's some effort right there.
- Also a thanks to willuwontu
+rep
OLD POST:
So, how come this doesn't work online?
Tried so many things to hide the dialog now, but nothing seems to work.
After the button is pressed by x player, I want the bloody dialog to hide from the player that clicked the button.
For example tried: "Hide dialog for triggering player" but didn't work either, it works when I test map myself, but not online when I test it with my friend.
Friend wont stop playing team fortress so wont get any help there until maybe tomorrow, sigh.. do you mind having a little look at my triggers and see if I'm doing it right?
I know you are a good programmer that has some private stuff to take care of, but not asking to look through every trigger, unless u want to take a quick little view O:)
But atleast the dialog hide thingie, if yes; I can send a link to you in pm, if no; thanks anyway :>
Check the example in the trigger: "Button Press Zergling"
Is there a specific reason you have a player group for each player? You can use the function "Convert Player To Player Group" to use a single player instead.
I would also suggest that you add a debug message in "Button press zergling" trigger before the if-then-else where you print out the triggering player(You can use convert Integer to text and set the integer to triggering player). You should also add debug messages inside the "then" parts of the if-then-else so you know if it actually gets in there.
Your problem could be that it hides one dialog but that you accidentally created several dialogs. If you know that it gets inside the "then" part, you know the hiding isn't working(wrong dialog reference, only hiding one of multiple dialogs or some other similar reason)
Not really a specific reason, I had triggering player first with the "Convert player to player group", but didn't work, so had to try another way to make 100% sure it would work, the most awful way there is; Using player for a trigger instead of triggering player.
Debug? Like a "UI Message: It works" kinda thing?
I've been looking over the dialogs for quite some time now (whole day) but has yet to find out why I face this problem, uploaded the map 7 times with a friend to try check different things I've changed/added etc.
I could send you the map aswell if you want to take a look first-hand.
I'm pretty new to the sc2 triggers, only been working with it for a month, played with wc3 triggers for a few months aswell, but not near advanced user of triggers yet.
I figured out the problem it's rather simple actually. What happened is because the image is created after the button it has a higher render priority do to when it was created. Therefore even though you're clicking the button it's not clicking and hiding the dialog because you can't click the button. This is nice little tutorial on creating basic dialog with a basic function (such as spawning heroes). http://www.sc2mapster.com/forums/resources/tutorials/17969-dialogs-really-great-looking-dialogs-part-1/
P.S. you may want to change your variables into records and change them to arrays instead of standalones. It may seem like a bitch to do now but trust me you'll thank me later when you want to make changes, and it makes adjustments a lot easier. P.P.S. When I spawned the zergling hero for some reason he just keeps on doing his dance and I have no idea why.
Hmm, didn't work, also, you see now how the images are behind the button, looks bad, gonna check the link you posted and see if it says anything about how to make it look like the picture is infront.
This is how you meant right?
Maybe I should just remake... sigh... jesus christ... the whole damn system.. *hulk smash*
And use the records, as you recommended, this will consume another 8-10 hours of my life, hurray! ;P
But it might be the best thing to do here, and besides I'll learn something new that might help me in future and increase my understanding in triggers.
EDIT: Nvm add 6-7 days for me to learn that, don't understand anything of that tutorial you linked, it's insane!
Am I safe to bet 10000 dollars that you yourself are a programmer?
nope, just a college student going into what....engineering. :) You know you could fade the button to invisible while it's on top and have a pseudo-button underneath. The only reason I know you should try and learn to use records and arrays now is I learned them later after I had added way more to my map and it was a pain to do. take the time to make your coding life easy now or else it will be harder later when you actually want to make changes :)
p.s. the tutorial was an advanced tutorial,sorry bout that. If you want help learning how they work feel free to pm me or ask on the forum.
Been looking at the advanced tutorial for a while now, and I will learn it, but it will take many many days until I fully understand what's going on.
Downloaded the map and changed things to see what it does, feels like I'm a kid again trying to see what happends if I pull the cat's tail.
I really wanted to hurry up with the map, but I see now that it's not gonna happen.. postpone on the release couple of months hah.
But you're right, to change stuff atm is a pain, so guess I gotta learn advanced triggering, then expert triggering, to be able to make a decent functional map that can be easily edited.
Thanks for your help, will pm you if the cat gets hostile and I can't get past it.
tbh.. this will require a lot of time and effort to learn with no reward except personal reward and tiny bit of fame, but only IF the map gets popular and get ATLEAST 10k ratings, which I doubt it will even if I become an expert in map making.
Should I just stop with the triggers and learn C plus plus instead for a future job?
fix the map and drive on. I may not have the most popular maps but I enjoy them, and that's what's important. You could make the map work without records and arrays, but that wouldn't be as enjoyable for you the map maker. therefore make life easier for yourself, don't be afraid to put it on haitus cause you don't feel like it at the time. Have fun that is the most important aspect of map making.
Yeah, will finish what I started, if it gets popular it's all good, if not, a bit sad, since I don't like the version of this kind of map that people are playing atm.
Reason I started making the map to begin with is because this kind of map that people were playing got old, and was for WOL, but just a few days ago, someone else had already managed to make one fitting HOTS, pretty much putting me out of business, and not only that, he made the map in his own way, the way HE want to play the map, not all of the audience, and specially not for me.
So, that's why I still want to finish this map, to see if atleast some people would prefer the way of the map in my way (classic way).
Tho this is the last and first map I'm making for a long time now, gotta learn more about sc2 triggers before I jump into my next project, which I already know what will be, a re-creation of an old Wc3 map I made! ;)
(google: Japan Wars wc3)
Tho it's an old version, made 3 more versions when I mastered wc3 triggers, sadly, they are gone, and my backup HD crashed.. thank science for Kim Dot Com's new upload site, I upload all my backups in there from now on.
SOLVED
by Enexy, can't believe you helped me in skype, that's some effort right there.
- Also a thanks to willuwontu
+rep
OLD POST:
So, how come this doesn't work online?
Tried so many things to hide the dialog now, but nothing seems to work.
After the button is pressed by x player, I want the bloody dialog to hide from the player that clicked the button.
For example tried: "Hide dialog for triggering player" but didn't work either, it works when I test map myself, but not online when I test it with my friend.
Is this a known bug, or am I waaay off?
hmmm hide dialog for triggering player should work. I know it works online for me, that's typically how it is done in most maps.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
@willuwontu: Go
So this should work?
yes it should
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
@willuwontu: Go
Friend wont stop playing team fortress so wont get any help there until maybe tomorrow, sigh.. do you mind having a little look at my triggers and see if I'm doing it right?
I know you are a good programmer that has some private stuff to take care of, but not asking to look through every trigger, unless u want to take a quick little view O:) But atleast the dialog hide thingie, if yes; I can send a link to you in pm, if no; thanks anyway :>
Check the example in the trigger: "Button Press Zergling"
Is there a specific reason you have a player group for each player? You can use the function "Convert Player To Player Group" to use a single player instead.
I would also suggest that you add a debug message in "Button press zergling" trigger before the if-then-else where you print out the triggering player(You can use convert Integer to text and set the integer to triggering player). You should also add debug messages inside the "then" parts of the if-then-else so you know if it actually gets in there.
Your problem could be that it hides one dialog but that you accidentally created several dialogs. If you know that it gets inside the "then" part, you know the hiding isn't working(wrong dialog reference, only hiding one of multiple dialogs or some other similar reason)
@Siretu: Go
Not really a specific reason, I had triggering player first with the "Convert player to player group", but didn't work, so had to try another way to make 100% sure it would work, the most awful way there is; Using player for a trigger instead of triggering player.
Debug? Like a "UI Message: It works" kinda thing?
I've been looking over the dialogs for quite some time now (whole day) but has yet to find out why I face this problem, uploaded the map 7 times with a friend to try check different things I've changed/added etc.
I could send you the map aswell if you want to take a look first-hand.
I'm pretty new to the sc2 triggers, only been working with it for a month, played with wc3 triggers for a few months aswell, but not near advanced user of triggers yet.
@redbean87: Go
Post the map.
@redbean87: Go
I'm looking at it now i'll let you know if i see any glaring errors in a minute.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
A little tip, put Player 2 as computer to try out the dialog in "Test map"
@willuwontu: Go
Alright sounds good, tried so many things now, feel really lost
@Enexy: Go
I can send you the map instead in pm, or not send but a DL link from Kim Dot Com's new upload site, gimme a sec.
@redbean87: Go
I figured out the problem it's rather simple actually. What happened is because the image is created after the button it has a higher render priority do to when it was created. Therefore even though you're clicking the button it's not clicking and hiding the dialog because you can't click the button. This is nice little tutorial on creating basic dialog with a basic function (such as spawning heroes). http://www.sc2mapster.com/forums/resources/tutorials/17969-dialogs-really-great-looking-dialogs-part-1/
P.S. you may want to change your variables into records and change them to arrays instead of standalones. It may seem like a bitch to do now but trust me you'll thank me later when you want to make changes, and it makes adjustments a lot easier.
P.P.S. When I spawned the zergling hero for some reason he just keeps on doing his dance and I have no idea why.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
@willuwontu: Go
Aaaaah alright, I had it the opposite way before, but the button made the image look bad so I put the image to be created before the button itself.
I'm gonna try it out, will come back here and post result as soon as I'm done, starting now.
Your Zergling SHOULD only dance until the game begins after timer runs out! ;P
Doesn't make sense that it dances because I haven't added any music yet during the selection time! xD
Anyway, the zergling gets removed and replaced by melee starting units.
@willuwontu: Go
Hmm, didn't work, also, you see now how the images are behind the button, looks bad, gonna check the link you posted and see if it says anything about how to make it look like the picture is infront.
This is how you meant right?
Maybe I should just remake... sigh... jesus christ... the whole damn system.. *hulk smash*
And use the records, as you recommended, this will consume another 8-10 hours of my life, hurray! ;P
But it might be the best thing to do here, and besides I'll learn something new that might help me in future and increase my understanding in triggers.
EDIT: Nvm add 6-7 days for me to learn that, don't understand anything of that tutorial you linked, it's insane!
Am I safe to bet 10000 dollars that you yourself are a programmer?
nope, just a college student going into what....engineering. :) You know you could fade the button to invisible while it's on top and have a pseudo-button underneath. The only reason I know you should try and learn to use records and arrays now is I learned them later after I had added way more to my map and it was a pain to do. take the time to make your coding life easy now or else it will be harder later when you actually want to make changes :)
p.s. the tutorial was an advanced tutorial,sorry bout that. If you want help learning how they work feel free to pm me or ask on the forum.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
@willuwontu: Go
Been looking at the advanced tutorial for a while now, and I will learn it, but it will take many many days until I fully understand what's going on.
Downloaded the map and changed things to see what it does, feels like I'm a kid again trying to see what happends if I pull the cat's tail.
I really wanted to hurry up with the map, but I see now that it's not gonna happen.. postpone on the release couple of months hah.
But you're right, to change stuff atm is a pain, so guess I gotta learn advanced triggering, then expert triggering, to be able to make a decent functional map that can be easily edited.
Thanks for your help, will pm you if the cat gets hostile and I can't get past it.
tbh.. this will require a lot of time and effort to learn with no reward except personal reward and tiny bit of fame, but only IF the map gets popular and get ATLEAST 10k ratings, which I doubt it will even if I become an expert in map making.
Should I just stop with the triggers and learn C plus plus instead for a future job?
What would you do?
@redbean87: Go
fix the map and drive on. I may not have the most popular maps but I enjoy them, and that's what's important. You could make the map work without records and arrays, but that wouldn't be as enjoyable for you the map maker. therefore make life easier for yourself, don't be afraid to put it on haitus cause you don't feel like it at the time. Have fun that is the most important aspect of map making.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
@willuwontu: Go
Yeah, will finish what I started, if it gets popular it's all good, if not, a bit sad, since I don't like the version of this kind of map that people are playing atm.
Reason I started making the map to begin with is because this kind of map that people were playing got old, and was for WOL, but just a few days ago, someone else had already managed to make one fitting HOTS, pretty much putting me out of business, and not only that, he made the map in his own way, the way HE want to play the map, not all of the audience, and specially not for me.
So, that's why I still want to finish this map, to see if atleast some people would prefer the way of the map in my way (classic way).
Tho this is the last and first map I'm making for a long time now, gotta learn more about sc2 triggers before I jump into my next project, which I already know what will be, a re-creation of an old Wc3 map I made! ;)
(google: Japan Wars wc3) Tho it's an old version, made 3 more versions when I mastered wc3 triggers, sadly, they are gone, and my backup HD crashed.. thank science for Kim Dot Com's new upload site, I upload all my backups in there from now on.