Stringer: Advanced Language for Managing Tooltips

Xienoph

You can change this now in User CP.
Reaction score
43
Stringer is an improved Warcraft 3 Editor's tooltip editor. It is aimed to improve text managements in WE. This includes tooltips, unit names, unit descriptions, and any texts that can be imported through text files. Some of its features:
  • Defines new formatting macros. WE's tooltip only has colouring and decimal for formatting. Stringer adds several more (percentage, hotkey) and allows you to define your own macros.
  • Allows you to use other fields. WE's tooltip only allows you to use numerical ability values. Stringer can use any numbers or strings.
  • Can be used anywhere. WE's tooltip can only be used in a few places. Though the colour formatting can be used anywhere, the value macro only works in abilities and upgrades. Stringer works at anywhere you have text.

Some known issues:
  • Error messages you get, especially when you have syntax error, can be very cryptic
  • Stringer runs very slowly when the call stack is very deep
  • The code block for custom macros returns syntax error if there is a carriage return

If you want to see it in action, check out The Big Game. The skill upgrade and ability tooltips can be easily updated thanks to Stringer.

If anyone wants to help improving this, feel free to do so! Just tell me in advance so I know what's going on.

I've also attached a tutorial package for you to get oriented with the system. I hope you find it useful. The tutorial does not cover the more advanced features (custom macros) but feel free to ask me if you have any questions.
 

Attachments

  • tutorial.zip
    97.7 KB · Views: 177
  • release.zip
    79.7 KB · Views: 173

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
Okay, so after looking at the tutorial, I think I get the basics (at least of the language), and it actually looks pretty damn cool.

Few things though:
1, Make an .exe package (py2exe works) for Windows users. Some people don't have Python (and py2exe packages Python with the exe, I believe), and some don't know how to run scripts.
2, Make some sort of 'formal' tutorial covering all aspects of the language.
3, Find some way to make this run within the World Editor (possible through JASS. That would be cool).

Aside from that, it's pretty good from what I can tell. +rep.
 

Xienoph

You can change this now in User CP.
Reaction score
43
2, Make some sort of 'formal' tutorial covering all aspects of the language.

I believe the only part left uncovered is understanding the custom macros more deeply. (What are the underlying Macro types? When are macros invoked?) I left them out since 95% of the time, I never have to worry about them (the builtin.str is enough for me). Do you have other features in mind?

3, Find some way to make this run within the World Editor (possible through JASS. That would be cool).
I think I'll need some help on that. Any ideas where I should start from? I'm not sure if it'll worth spending the time given that you can use text editors to edit them (which reminds me, I forgot to upload Notepad++'s syntax highlighting for Stringer) and SC2Editor is already out (though it's a pain to use ...)

tooltiperror said:
Add in //! external command?
What do you mean?
 

tooltiperror

Super Moderator
Reaction score
231
You can make it so you could do //! stringer somewhere in the trigger editor and it would run Stringer every time you save.
 

Vestras

Retired
Reaction score
249
If you make a version for SC2, and you want to make a Moonlite extension, I can help you.
 

Xienoph

You can change this now in User CP.
Reaction score
43
You can make it so you could do //! stringer somewhere in the trigger editor and it would run Stringer every time you save.

Ah I see. I'll go back to that once I've improved Stringer's performance. Right now, it's not meant to be run every time you save the map. You should only run it when you are ready to release the map.
 

Xienoph

You can change this now in User CP.
Reaction score
43
I've added a syntax highlighting for Notepad++. It's in the release.zip. Let me know if you have any problems!
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top