User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15

Thread: tango.zh

  1. #1
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,430
    Level
    24
    vBActivity - Bars
    Lv. Percent
    69.57%

    tango.zh

    tango.zh 1.2.0 and demo

    "Tango" is derived from "text augmentation." Shut up, it does too make sense.
    tango.zh provides:
    • A simple way to display strings with any font, backdrop, sounds, etc.
    • The ability to extend built-in fonts with new characters or create entirely new fonts
    • An easy way to create menus
    • Extensible string scripting capabilities


    The documentation is admittedly pretty daunting. If you're new to this, I'd suggest looking over the overview and basic usage sections of tangoUsage.txt, then tangoQickStart.zh.


    In addition, here are a couple of related utilities:
    Character list quest - use this to browse all printable characters in the built-in fonts
    Tile font helper quest - use this to create custom fonts
    PC font converter
    Last edited by Saffith; 09-16-2016 at 02:25 PM.

  2. #2
    Lynel Majora's Avatar
    Join Date
    Mar 2006
    Age
    32
    Posts
    1,197
    Mentioned
    24 Post(s)
    Tagged
    7 Thread(s)
    vBActivity - Stats
    Points
    4,385
    Level
    20
    vBActivity - Bars
    Lv. Percent
    93.35%
    Quote Originally Posted by Saffith View Post
    This header is currently in alpha. It is buggy and poorly documented, and any part of it may change without warning in future releases.
    Have you considered a career with bethesda?

  3. #3
    Username Kaiser SUCCESSOR's Avatar
    Join Date
    Jul 2000
    Location
    Winning.
    Age
    37
    Posts
    4,436
    Mentioned
    152 Post(s)
    Tagged
    7 Thread(s)
    vBActivity - Stats
    Points
    10,560
    Level
    30
    vBActivity - Bars
    Lv. Percent
    51.7%
    Is this what became of you trying to add font to ZC? I don't envy the effort in this. I'll definitely be checking it out though!

  4. #4
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,430
    Level
    24
    vBActivity - Bars
    Lv. Percent
    69.57%
    Yeah, it's a lot of work, but it's the fun sort.
    Updates, anyway. Not a huge update as far as functionality, but it's less buggy now. Documentation still sucks.

  5. #5
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,430
    Level
    24
    vBActivity - Bars
    Lv. Percent
    69.57%
    Finally, another update. Aside from bug fixes and more validation, here's the major new stuff:
    • New functions: Tango_Sync(), @sync(), @else(), @elseif(), @goto(), @close(), @pressa(), @menuwait()
    • New variable: @style
    • Persistent string style flag
    • Complex backdrops can now have text
    • It's possible (optionally) to cancel from menus now
    • New input functions allow you to change what buttons are used
    • String control code \25 works in messages now

    I might've missed a few things there.

    If you're already using it, a couple of things will need updated. The newline character is now 26 (since that's how \25 is stored), @domenu() now takes an argument, and @waituntil(@chosen) is no longer needed afterward. @menuwait() is used when something other than the string creates the menu.

    Edit: And now I've found a couple of problems. :p If you don't want errors in allegro.log, change these bits, both in tango/common.zh.
    At the end of __Tango_SetCurrentString(), replace
    Code:
        __Tango_Data[__TCS_FONT]=
          __Tango_Styles[styleStart+TANGO_STYLE_TEXT_FONT];
    with
    Code:
        if(style!=TANGO_INVALID)
            __Tango_Data[__TCS_FONT]=
              __Tango_Styles[styleStart+TANGO_STYLE_TEXT_FONT];
        else
            __Tango_Data[__TCS_FONT]=TANGO_INVALID;
    And in __Tango_GetStringFlags(), add a bit after the first line:
    Code:
        int dataStart=stringID*__TANGO_SIZEOF_DATA;
        if(__Tango_StringData[dataStart+__TSDIDX_STYLE]==TANGO_INVALID)
            return 0;
    Last edited by Saffith; 10-22-2013 at 09:36 AM.

  6. #6
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,430
    Level
    24
    vBActivity - Bars
    Lv. Percent
    69.57%
    Updated to beta 1. At this point, I'd consider it suitable for general use. I can't promise there won't be any compatibility-breaking changes before 1.0, but I don't expect any.

    There have been several since alpha 3, however. Lots of things have been renamed, the font format has changed, and extended font characters now start at 256 instead of 127.

    Also, it turns out a lot of built-in fonts have useful characters all the way up to 255. I made a character list utility quest to browse them with.

    I have more to say, but I keep getting errors... I'll add more if I can.

  7. #7
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,430
    Level
    24
    vBActivity - Bars
    Lv. Percent
    69.57%
    Finally, another update. Sorry it's taken so long.
    This will invalidate existing saved games.

    • Added optional support for string control codes
    • Added functions to save and restore state
    • Added functions to suspend a text slot indefinitely
    • Functions can take up to four arguments now
    • @domenu() takes a second argument specifying the initially selected choice
    • Several bug fixes


    In addition, there's a new file included: tangoQuickStart.zh. This serves as both an easy way to try using Tango and a simple example of how to set it up.

    There haven't been any big compatibility breaking changes. @domenu() no longer adds a line break automatically; I think that's the only thing you might have to update for.

    There are a few more things I'd like to add, but they can wait until after 1.0. For now, I just plan to fix bugs and clean up.

  8. #8
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,430
    Level
    24
    vBActivity - Bars
    Lv. Percent
    69.57%
    Hey, it's finally done! Sorry it took so long. Again.

    Saves using the last beta will be invalidated, but there shouldn't be any compatibility issues. The array sizes have changed again.

    It's mostly bug fixes and cleanup, but there's one big new feature. You can now create custom variables. Tango_D[] is included by default, but it can be removed.
    There are a few other little things, too. When a string is so long that it has to scroll down, you can now control the scrolling. There's a function to get the current slot when running a custom function. The demo scripts have been cleaned up quite a bit, too.

  9. #9
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,430
    Level
    24
    vBActivity - Bars
    Lv. Percent
    69.57%
    New version. Updating will invalidate any existing saves. Array sizes have changed, and TANGO_STYLE_MENU_CURSOR_WIDTH has been renamed TANGO_STYLE_MENU_CHOICE_INDENT.

    • Menus can now scroll up and down if they're too big to fit in the textbox. This won't work correctly unless each menu item fits on one line, however.
    • Added menu scrolling indicator style attributes.
    • Menu cursors can now move smoothly between choices.
    • In non-text menus, menu items can now be moved after they're placed.
    • Added cursor size style attributes and reworked drawing to allow highlight-style cursors.
    • Added centered and right-aligned text options for complex backdrops.
    • Added Tango_SlotIsFinished(), which returns true as soon as text is finished printing.
    • Added an option to log all messages, errors only, or nothing.
    • Added an optional onscreen notification when an error is logged.
    • Added Tango_ValidateConfiguration(), which will look for common configuration errors and write a report to allegro.log.
    • Changed the default configuration to allow more styles and menu items and enable string control codes.
    • Added tangoFAQ.txt, which will hopefully address some common inquiries.

  10. #10
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,760
    Level
    21
    vBActivity - Bars
    Lv. Percent
    68.7%
    I'm receiving an internal server error ( HTTP/1.1 500 ), when trying to download that package.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social