Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Help with Stacking Text
Help with Stacking Text
Jun 8 2022, 12:48 pm
By: Elite KryPtik  

Jun 8 2022, 12:48 pm Elite KryPtik Post #1



Hi folks! Making a bit of a comeback to broodwar after 5 years, working on a remaster for an old map. Been doing some lurking, and several topics have been very helpful, but I can't find anything for this. The only thing outside EUD's that I've yet to master in map editing is text stacking, however; it appears all the current formulas are outdated or incorrect, maybe due to a recent patch or something.(Older maps with stacked text, such as BunnykillBound2, which you can get from the map archive bounding.net for reference, no longer have stacked text, for example)

So, I'm just trying to see if there is anybody on here with experience stacking text, recently, who could maybe give me some pointers or a formula. I've been trying to do it in ScmDraft2 following the formulas on this page:
https://staredit-network.fandom.com/wiki/String#Overlapping_text_in_unit_names
and it outright does not work. No amount of permutations are working for me.

Minor secondary topic/issue - the only other lead I found is that StarForge is quite useful for text stacking, but I can't get it to work after downloading it from the mirror on this site. On launching, it just comes up with an error code. If somebody could tell me where I need to put the StarForge folder, or if there's something else I must do to get it working, that'd be great as well! Thanks for reading and good day/evening/whatever to you :)



None.

Jun 8 2022, 6:40 pm NudeRaider Post #2

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

If I'm not mistaken that's not working in remastered. Have to use v1.16.1 or lower.




Jun 8 2022, 7:58 pm DarkenedFantasies Post #3

Roy's Secret Service

Text stacking is still possible in the new versions, but they don't match between SD and HD graphics modes. So you have to choose which mode you want it to fit and live with your overlap looking broken on the other. I'm not sure why the other methods stopped working.

There may not be a consistent formula for the HD font as it's not a bitmap font and is subject to varying amounts of spacing between different letters (kerning). The SD font is much more predictable; someone hosted an "overlapping generator" site using the algorithm I provided to them (though it's now offline, unfortunately). I haven't bothered with text stacking in a while because of the inconsistency between SD and HD, so I'll have to review my notes to provide a complete formula.

Here are examples for unit names and display texts:
Code
[          Unit_Name<12>Unit_Name                    ]
Code
[Unit_Name<12>Unit_Name                              ]
Code
[Display_Text<12>Display_Text<14>-                                                                                                            ]

The square brackets are only to show the trailing and leading spaces, don't include them in the actual strings.

The gist of it is that the <12> tag ("Right Align") pushes the latter half of the string to the right edge of the text field, and the space characters are used to push it back to the left, where it eventually overlaps with the first half.

Display texts must be an exact amount of pixels, so you may have to use one character that is smaller than spaces to achieve the precise length (optionally hidden using the "invisible" color tag, <14>). Unit names always work using only spaces but still have to be within a certain length or the text gets resized or possibly truncated. Color tags do not contribute towards the text's length, so you can add as many as you want. I'll get back to you later with the formula or something.




Jun 9 2022, 3:41 am Elite KryPtik Post #4



Excellent! I'm just glad somebody has even made an algorithm, I was beginning to wonder if it might be lost knowledge, or completely impossible on new versions. I always play on standard graphics, I find them to be much more charming and nostalgic, as good as the new sprites are, but I wonder what the consensus amongst the community is. Not much point in going for an SD stack(the only one I'd do) if nobody is going to see it. hmmmm. Well I'd still like to know the method if you're willing to share it, for my own sake if nothing else :)



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[2024-4-26. : 6:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[2024-4-26. : 6:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[2024-4-26. : 6:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[2024-4-26. : 6:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
Please log in to shout.


Members Online: Roy