• MPL ANSI Check

    From bcw142@21:1/145 to MPL users/programmers on Thursday, December 15, 2016 09:55:00
    MPL program note Gryphon & Dream master Doubleup, Greed, and Master Mind
    all need ANSI but no check/exit is there. I made an ASCII theme and found
    it to be a problem, so just after the start of Main I added:
    Begin
    If Graphics = 0 Then Begin
    ClrScr;
    WriteLn ('Sorry, this game requires ANSI graphics.|CR|PA');
    Halt;
    End;
    So they now check if ANSI and if not write the error message and exit.
    This is what g00r00 does in Blackjack for that reason, I just added it
    to the other games that required it. You might consider adding that check
    to things requiring ANSI in future since it's easy to do and handles that possible issue. Of course this goes for any of us making MPL programs that might use ANSI.

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Mystic Pi BBS bcw142.zapto.org (21:1/145)
  • From Gryphon@21:1/120 to bcw142 on Thursday, December 15, 2016 14:44:00
    On 12/15/16, bcw142 said the following...

    MPL program note Gryphon & Dream master Doubleup, Greed, and Master Mind all need ANSI but no check/exit is there. I made an ASCII theme and found it to be a problem, so just after the start of Main I added:
    Begin
    If Graphics = 0 Then Begin
    ClrScr;
    WriteLn ('Sorry, this game requires ANSI graphics.|CR|PA');
    Halt;
    End;
    So they now check if ANSI and if not write the error message and exit. This is what g00r00 does in Blackjack for that reason, I just added it
    to the other games that required it. You might consider adding that check to things requiring ANSI in future since it's easy to do and handles that possible issue. Of course this goes for any of us making MPL programs
    that might use ANSI.

    Thanks for that. The assumption I generally use is that BBS callers all
    pretty much use ANSI all the time. It seemed to me then that an ANSI check
    was not needed.

    Gone are the days of low rez graphics cards and monitors.

    "No matter where you go, there you are!" - Buckaroo Bonzai

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Cyberia BBS | Cyberia.Darktech.Org | Kingwood, TX (21:1/120)
  • From bcw142@21:1/145.2 to Gryphon on Thursday, December 15, 2016 20:01:00
    On 12/15/16, Gryphon said the following...
    On 12/15/16, bcw142 said the following...

    MPL program note Gryphon & Dream master Doubleup, Greed, and Master M all need ANSI but no check/exit is there. I made an ASCII theme and f it to be a problem.

    Thanks for that. The assumption I generally use is that BBS callers all pretty much use ANSI all the time. It seemed to me then that an ANSI check was not needed.

    Gone are the days of low rez graphics cards and monitors.

    That was what I thought originally, but there are reasons some people use
    ASCII or the like. Anyway it's easy if you remember g00r00 handled it with Blackjack so you have a good example of how to do it. I did it because I was working on an ASCII theme on this AlphaTest BBS and ran in to the problem. I then saw g00r00's Blackjack gave the error message so looked at how he did it and basically used that to fix the others.

    --- Mystic BBS v1.12 A31 (Linux)
    * Origin: Mystic AlphaTest bcw142.zapto.org:2323 (21:1/145.2)
  • From dream master@21:1/163 to bcw142 on Thursday, December 15, 2016 23:15:00
    On 12/15/16, bcw142 said the following...
    MPL program note Gryphon & Dream master Doubleup, Greed, and Master Mind all need ANSI but no check/exit is there. I made an ASCII theme and found it to be a problem, so just after the start of Main I added:
    Begin
    If Graphics = 0 Then Begin
    ClrScr;
    WriteLn ('Sorry, this game requires ANSI graphics.|CR|PA');
    Halt;
    End;
    So they now check if ANSI and if not write the error message and exit. This is what g00r00 does in Blackjack for that reason, I just added it
    to the other games that required it. You might consider adding that check to things requiring ANSI in future since it's easy to do and handles that possible issue. Of course this goes for any of us making MPL programs
    that might use ANSI.

    well since almost all users are on using ansi i dont see a need for it.

    |08 .|05ú|13ù|15Dr|07e|08am Ma|07st|15er|13ù|05ú|08.
    |08 øù|05ú|13ùø |13øù|05ú|08ùø
    |11 DoRE|03!|11ACiDiC|03!|11Demonic |08[|15dreamland|09.|15darktech|09.|15org|08]

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: |08--[|15!|07dreamland BBS dreamland.darktech.org (21:1/163)
  • From dream master@21:1/163 to bcw142 on Saturday, December 17, 2016 11:59:00
    On 12/15/16, bcw142 said the following...
    That was what I thought originally, but there are reasons some people use ASCII or the like. Anyway it's easy if you remember g00r00 handled it
    with Blackjack so you have a good example of how to do it. I did it

    i didn't know we know we did not know how to do it?

    |08 .|05ú|13ù|15Dr|07e|08am Ma|07st|15er|13ù|05ú|08.
    |08 øù|05ú|13ùø |13øù|05ú|08ùø
    |11 DoRE|03!|11ACiDiC|03!|11Demonic |08[|15dreamland|09.|15darktech|09.|15org|08]

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: |08--[|15!|07dreamland BBS dreamland.darktech.org (21:1/163)
  • From bcw142@21:1/145 to dream master on Friday, December 16, 2016 08:51:00
    On 12/15/16, dream master said the following...
    well since almost all users are on using ansi i dont see a need for it.

    .úùDream Masterùú.
    øùúùø øùúùø
    DoRE!ACiDiC!Demonic
    [dreamland.darktech.org]

    That's it, almost all. The blind generally don't and can play the text adventures the same as anyone. There are low vision and others as well. Some people just have trouble with ANSI on their phones so do ASCII. Of course if you have ASCII locked out and ANSI only setup on your board then it doesn't matter there. I still have old stuff that doesn't do color as well, so sometimes need just ASCII. Also better practice to handle all likely error conditions.

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Mystic Pi BBS bcw142.zapto.org (21:1/145)