-Is there any way to use an achievement icon properly? I find no way outside the rewards in data editor to select a part of an image instead of the entire image (remember achievements come together in a single file: http://eu.battle.net/sc2/static/local-common/images/sc2/achievements/6-45.jpg and not separately).
-If my game works around timed rounds, is it efficient to put the entire game inside a while? It works fine, but I'm not sure if it's "criminal" (instead of calling X one after another, I do a while with a "wait for x to happen" inside).
-What's the best way to block units (land and air) from crossing a line and seeing beyond it? the path tool sucks, and I would find it annoying to have to place thousands of those footprint decals all around my map (to make things worse, they don't even show when you activate path view).
@achievement icons
No, you need to cut it into new files and import them. :(
@timings with while
Try to minimize the code (-> workload) that is executed. Normally that's the best way. Check the debugger's activity to see how much your implementation costs.
The best way really depends on what you are doing.
@Lonami: Go If you want to use achievement images separated I think the best way is to import them as separate files. I have converted many of them to the standard icon format, check my signature if that works for you.
If you want to block both path and line of sight maybe you could create a new path/LoS blocker with the size you want? Well, I'm not the most best person to answer that question, maybe a skilled terrainer has a better option.
@timings with while
Try to minimize the code (-> workload) that is executed. Normally that's the best way. Check the debugger's activity to see how much your implementation costs.
The best way really depends on what you are doing.
The code isn't too big, and I haven't had any lag so far. What it does is cover 2-minute fights, that end when your opponent is dead or the timer reaches 0. I like the structure because it's simple and easy to understand, but I don't want to be a bad example for beginners if I release the code later.
If you want to block both path and line of sight maybe you could create a new path/LoS blocker with the size you want? Well, I'm not the most best person to answer that question, maybe a skilled terrainer has a better option.
The ideal and common sense way would be using pathing drawers, but they suck. What are you talking about, a new invisible doodad? I know some doodads have a teal path, that may work for me, but I don't want to complicate myself, and I prefer to do everything with what I have. If I can't, well, I'll have to start importing stuff then.
What is the fastest way to make a dialog center its text horizontally and vertically? I know you can import sc2styles and whatever, but is this doable with a custom script or something?
PS: Lol there's a like button? liking posts, then :P.
Not sure about vertical alignment, but horizontal should be possible by just using some of the pre-made styles. The styles called ModCenterSize20 and friends are pretty straight-forward.
@Lonami: Go If you just want racial icons that's simple you just have to import 3 files. And I thought you wanted t go on using all achivement icons... :-)
What I meant was, can't you create a custom invisible doodad or unit with custom footrpint that also blocks view? Make it very big so you dont have to use that many of it.
I'm having problems using "objetDialog is enabled" condition on GUI. The goddamn game doesn't read it, it says it can access it properly. I've tried everything, reducing it more and more until there's a goddamn single field, but it keeps failing. Any idea why?
I have the field stored inside a record inside an array (buttonList[2].objectButton). I even tried saving it into a local variable in case it had problems reading records, but nothing. And yes, I'm sure that's the line failing.
Not sure about vertical alignment, but horizontal should be possible by
just using some of the pre-made styles. The styles called
ModCenterSize20 and friends are pretty straight-forward.
Yeah, seems that's what I want, thanks. Anyway, what's the difference between each depending of the height number at the end? What's that height for?
@Lonami: Go If you just want racial icons that's simple you just have to
import 3 files. And I thought you wanted t go on using all achivement
icons... :-)
What I meant was, can't you create a custom invisible doodad or unit
with custom footprint that also blocks view? Make it very big so you
dont have to use that many of it.
Seems that's what I'll have to do, like old good W3. I'll ask later if I have problems with the data editor (I hate it, lol). I guess I won't, because it seems to be simple, but who knows.
I find stupid I can't select a part of an image properly. WTF Blizzard.
-Is there any way to use an achievement icon properly? I find no way outside the rewards in data editor to select a part of an image instead of the entire image (remember achievements come together in a single file: http://eu.battle.net/sc2/static/local-common/images/sc2/achievements/6-45.jpg and not separately).
You got it answered but I'm still gonna throw it down here :D
It's best to do what SoulFilcher said and import separated images. But if you really want to use that achievement sheet, you can create dialog with the the size of icon in that sheet and then adjust images position in dialog so that it shows only that icon (since dialog can cover only that icon, the rest of sheet won't be visible). But again, it's so inflexible that you're better off with cutting and importing :D
I'm having problems using "objetDialog is enabled" condition on GUI. The goddamn game doesn't read it, it says it can access it properly. I've tried everything, reducing it more and more until there's a goddamn single field, but it keeps failing. Any idea why?
I have the field stored inside a record inside an array (buttonList[2].objectButton). I even tried saving it into a local variable in case it had problems reading records, but nothing. And yes, I'm sure that's the line failing.
Fixed this with a workaround, saving the status of each icon on an array matching the positions with the array of buttons. Screw that stupid bugged function, lol.
Can't manage to do a proper doodad with blocked line of sight and anti-air movement. Any ideas? I tried searching a tutorial, but I didn't find any :(.
Whats causing you trouble? The line of sight or the air block?
Also, it would be better, if you would open new threads for new questions. This way, the thread can be marked as (solved) and it is easier to find for people via the search function, not to mention that you can give a brief overview of the problem in the title already, which might cause more people to read the thread, who are familiar with the subject.
Whats causing you trouble? The line of sight or the air block?
Also, it would be better, if you would open new threads for new questions. This way, the thread can be marked as (solved) and it is easier to find for people via the search function, not to mention that you can give a brief overview of the problem in the title already, which might cause more people to read the thread, who are familiar with the subject.
-Is there any way to use an achievement icon properly? I find no way outside the rewards in data editor to select a part of an image instead of the entire image (remember achievements come together in a single file: http://eu.battle.net/sc2/static/local-common/images/sc2/achievements/6-45.jpg and not separately).
-If my game works around timed rounds, is it efficient to put the entire game inside a while? It works fine, but I'm not sure if it's "criminal" (instead of calling X one after another, I do a while with a "wait for x to happen" inside).
-What's the best way to block units (land and air) from crossing a line and seeing beyond it? the path tool sucks, and I would find it annoying to have to place thousands of those footprint decals all around my map (to make things worse, they don't even show when you activate path view).
That's all for now :).
@achievement icons
No, you need to cut it into new files and import them. :(
@timings with while
Try to minimize the code (-> workload) that is executed. Normally that's the best way. Check the debugger's activity to see how much your implementation costs.
The best way really depends on what you are doing.
@Lonami: Go If you want to use achievement images separated I think the best way is to import them as separate files. I have converted many of them to the standard icon format, check my signature if that works for you.
If you want to block both path and line of sight maybe you could create a new path/LoS blocker with the size you want? Well, I'm not the most best person to answer that question, maybe a skilled terrainer has a better option.
That's so full of fail, is there really no way to select parts of the image like the data editor does for achievements? :(
I want to do this because I didn't find any decent race symbols, and only the ones at the achievements look nice.
The code isn't too big, and I haven't had any lag so far. What it does is cover 2-minute fights, that end when your opponent is dead or the timer reaches 0. I like the structure because it's simple and easy to understand, but I don't want to be a bad example for beginners if I release the code later.
The ideal and common sense way would be using pathing drawers, but they suck. What are you talking about, a new invisible doodad? I know some doodads have a teal path, that may work for me, but I don't want to complicate myself, and I prefer to do everything with what I have. If I can't, well, I'll have to start importing stuff then.
Most games are just a load of nested while loops. I wouldn't worry about it.
Another question:
What is the fastest way to make a dialog center its text horizontally and vertically? I know you can import sc2styles and whatever, but is this doable with a custom script or something?
PS: Lol there's a like button? liking posts, then :P.
Not sure about vertical alignment, but horizontal should be possible by just using some of the pre-made styles. The styles called ModCenterSize20 and friends are pretty straight-forward.
@Lonami: Go If you just want racial icons that's simple you just have to import 3 files. And I thought you wanted t go on using all achivement icons... :-)
What I meant was, can't you create a custom invisible doodad or unit with custom footrpint that also blocks view? Make it very big so you dont have to use that many of it.
New question:
I'm having problems using "objetDialog is enabled" condition on GUI. The goddamn game doesn't read it, it says it can access it properly. I've tried everything, reducing it more and more until there's a goddamn single field, but it keeps failing. Any idea why?
I have the field stored inside a record inside an array (buttonList[2].objectButton). I even tried saving it into a local variable in case it had problems reading records, but nothing. And yes, I'm sure that's the line failing.
Yeah, seems that's what I want, thanks. Anyway, what's the difference between each depending of the height number at the end? What's that height for?
I mean: http://www.sc2mapster.com/wiki/sc2-api/game-files/layout/font-styles-sc2style/ why have height when both v-aligns have center and middle? :S
Seems that's what I'll have to do, like old good W3. I'll ask later if I have problems with the data editor (I hate it, lol). I guess I won't, because it seems to be simple, but who knows.
I find stupid I can't select a part of an image properly. WTF Blizzard.
Text size?
Woops, for some reason I though that was on another field. Epic facepalm :P.
You got it answered but I'm still gonna throw it down here :D
It's best to do what SoulFilcher said and import separated images. But if you really want to use that achievement sheet, you can create dialog with the the size of icon in that sheet and then adjust images position in dialog so that it shows only that icon (since dialog can cover only that icon, the rest of sheet won't be visible). But again, it's so inflexible that you're better off with cutting and importing :D
Fixed this with a workaround, saving the status of each icon on an array matching the positions with the array of buttons. Screw that stupid bugged function, lol.
Can't manage to do a proper doodad with blocked line of sight and anti-air movement. Any ideas? I tried searching a tutorial, but I didn't find any :(.
Whats causing you trouble? The line of sight or the air block?
Also, it would be better, if you would open new threads for new questions. This way, the thread can be marked as (solved) and it is easier to find for people via the search function, not to mention that you can give a brief overview of the problem in the title already, which might cause more people to read the thread, who are familiar with the subject.
Everything xDDD. You're right, created a new thread for it: http://www.sc2mapster.com/forums/general/general-chat/36227-making-your-own-footprint-for-a-doodad/ :).