User Tag List

Results 1 to 3 of 3

Thread: ASCII String Control Code Bug

  1. #1
    Keese Avataro's Avatar
    Join Date
    Oct 2010
    Posts
    64
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    722
    Level
    9
    vBActivity - Bars
    Lv. Percent
    46.69%

    Sick Bug ASCII String Control Code Bug

    I was trying to use a color change string control code to have a differently colored number as the very first character in a string. However this is currently impossible.

    My color change code:
    \1\8\6

    Now if I want a "5" in that color as the first character in a string I would need to do this:
    \1\8\65
    That makes the whole string black though.

    This won't work either, because then I have a space that I don't want:
    \1\8\6 5

    My solution would have been to use an ASCII string control code. This here makes a 5:
    \52

    So I tried this:
    \1\8\6\52

    If I do that it looks just how I wanted it in the preview section of the message. However, when I press OK, the ASCII string control code for the "5" gets automatically replaced by an actual "5", putting me back to the original problem.
    Beware the power of GANON! Hahaha

  2. #2
    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,432
    Level
    24
    vBActivity - Bars
    Lv. Percent
    69.92%
    Yeah, it's annoying. Using \52 should actually work; it only replaces it with a 5 if you edit it again.
    There's another way to do it. Each argument in a control code can be a maximum of five digits, so it will ignore the 5 if you enter the code as as \1\8\00006. Again, however, it'll change it to \1\8\65 if you edit the string again.

    I might be able to make it smarter about that. Not too sure, but I'll try, at least.

  3. #3
    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,432
    Level
    24
    vBActivity - Bars
    Lv. Percent
    69.92%
    Fixed. It will now encode numerals after control codes.

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