• go-pawz6 compiling error

    From themadtux@21:1/101 to All on Thursday, June 08, 2017 15:24:28
    Ok all.. quick question. I'm trying to compile g00r00's old go-pawz mpl and
    I'm getting an error ...

    Error (line 22, col 33)
    Syntax error

    The targeted line is:

    AsciiPause = '[Press any key]',

    anyone have an idea what the issue is? Not yet familiar with coding but in my old age I'm going to have to tackle it. Last time I looked into this type of stuff was PCBoard back in the late 90's. =)

    Cheers!

    -Jason/themadtux [tMt]

    --- Mystic BBS v1.12 A33 (Windows/32)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)
  • From garycrunk@21:2/105 to themadtux on Wednesday, June 07, 2017 21:13:40

    Should that not be AsciiPause = '[Press any key]';

    A Semi-colon at the end, not a comma?

    Gary Crunk
    Another F-ing BBS
    anotherbbs.bbsindex.com

    --- Mystic BBS v1.12 A33 (Windows/32)
    * Origin: Another F-ing BBS (21:2/105)
  • From Avon@21:1/101 to themadtux on Thursday, June 08, 2017 19:53:28
    On 06/08/17, themadtux pondered and said...

    Ok all.. quick question. I'm trying to compile g00r00's old go-pawz mpl and I'm getting an error ...

    Error (line 22, col 33)
    Syntax error

    I'm not sure but could the version of MPLC you are using have a bearing on it?

    Best, Paul

    --- Mystic BBS v1.12 A33 (Windows/32)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)
  • From Skuz@21:1/105 to themadtux on Thursday, June 08, 2017 04:29:10
    Hello themadtux!

    08 Jun 17 15:24, you wrote to all:

    Ok all.. quick question. I'm trying to compile g00r00's old go-pawz
    mpl and I'm getting an error ...
    Error (line 22, col 33)
    Syntax error
    The targeted line is:
    AsciiPause = '[Press any key]',

    anyone have an idea what the issue is? Not yet familiar with coding

    The script I have that does compile reads...
    AsciiPause = '[Press any key]';

    --- GoldED+/W32-MSVC 1.1.5-b20160201
    * Origin: flupH * fluph.darktech.org (21:1/105)
  • From themadtux@21:1/105 to garycrunk on Thursday, June 08, 2017 07:36:05
    Should that not be AsciiPause = '[Press any key]';

    A Semi-colon at the end, not a comma?


    I will fix that and recompile. Thanks for the tip!

    Cheers

    --- Mystic BBS v1.12 A33 (Windows/32)
    * Origin: flupH | fluph.darktech.org (21:1/105)
  • From xqtr@21:1/111 to themadtux on Thursday, June 08, 2017 18:12:38
    Should that not be AsciiPause = '[Press any key]';
    A Semi-colon at the end, not a comma?

    MPL doesn't use semicolons at the end of a command... If the above statement
    is not in an IF statement, it should be: AsciiPause := '[Press any key]'

    To assign a value to a variable in Pascal/MPL you use :=
    To make comparison you use only the equal sign =

    :)

    .----- --- -- -
    | Another Droid BBS
    : Telnet : andr01d.zapto.org:9999 [UTC 11:00 - 20:00]
    . Contact : xqtr.xqtr@gmail.com

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Another Droid BBS (21:1/111)
  • From themadtux@21:1/112 to xqtr on Thursday, June 08, 2017 12:29:29
    MPL doesn't use semicolons at the end of a command... If the above statement is not in an IF statement, it should be: AsciiPause := '[Press any key]'

    To assign a value to a variable in Pascal/MPL you use :=
    To make comparison you use only the equal sign =


    Yeah it's not in an IF statement it's under Constants (Const), errors out
    after I remove the , or ; and this time under the Variables (Var) with the first line

    Count Byte,

    So I changed all of the Variables to the following

    Count : Byte;

    That cleared the that error till it gets to

    Txt : String Array(1..50);

    Craps out on that one. Suggestions?

    Thanks for the help so far.

    Cheers!

    --- Mystic BBS v1.12 A33 (Windows/32)
    * Origin: ACiD Telnet HQ / blackflag.acid.org (21:1/112)
  • From dream master@21:1/163 to themadtux on Friday, June 09, 2017 00:11:12
    On 06/08/17, themadtux said the following...
    Ok all.. quick question. I'm trying to compile g00r00's old go-pawz mpl and I'm getting an error ...
    Error (line 22, col 33)
    Syntax error
    The targeted line is:
    AsciiPause = '[Press any key]',

    im sure your using an older mpl that is incompatible with the newer mpl.
    is it declared as a Constant aka const?

    can you remove the , at the end and recompile? i dont have access to that mps at the moment. the newer mpl you can have it line blank or a ; on the end. normal pascal requires ; at the end but in good practice i add the ; at the end.

    |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 A33 (Windows/64)
    * Origin: |08--[|15!|07dreamland BBS dreamland.darktech.org (21:1/163)
  • From dream master@21:1/163 to garycrunk on Friday, June 09, 2017 00:12:28
    On 06/07/17, garycrunk said the following...
    AsciiPause = '[Press any key]',
    Should that not be AsciiPause = '[Press any key]';
    A Semi-colon at the end, not a comma?

    mpl can use a ; and the end or nothing.

    |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 A33 (Windows/64)
    * Origin: |08--[|15!|07dreamland BBS dreamland.darktech.org (21:1/163)
  • From themadtux@21:1/112 to dream master on Friday, June 09, 2017 10:48:25
    im sure your using an older mpl that is incompatible with the newer mpl. is it declared as a Constant aka const?


    Is there an updated version for the current release? Yeah it's declared as a Constant.

    can you remove the , at the end and recompile? i dont have access to
    that mps at the moment. the newer mpl you can have it line blank or a ;
    on the end. normal pascal requires ; at the end but in good practice i
    add the ; at the end.


    Yeah added ; at the end of it and tried to compile then it errors out with
    the first Variable "Count Byte,".

    Thanks,

    themadtux [tMt]

    --- Mystic BBS v1.12 A33 (Windows/32)
    * Origin: ACiD Telnet HQ / blackflag.acid.org (21:1/112)
  • From xqtr@21:1/111 to themadtux on Friday, June 09, 2017 21:31:27
    I tried find go-pawz6, but i only found up to go-pawz5... and in those old versions there is no such constant. Can you give a link or a name of a BBS
    that has it to download?

    .----- --- -- -
    | Another Droid BBS
    : Telnet : andr01d.zapto.org:9999 [UTC 11:00 - 20:00]
    . Contact : xqtr.xqtr@gmail.com

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Another Droid BBS (21:1/111)
  • From themadtux@21:1/112 to xqtr on Friday, June 09, 2017 20:39:07
    I tried find go-pawz6, but i only found up to go-pawz5... and in those
    old versions there is no such constant. Can you give a link or a name of
    a BBS that has it to download?


    Distortion has a copy of it. d1st.org

    Thanks!

    -themadtux[tMt]

    --- Mystic BBS v1.12 A33 (Windows/32)
    * Origin: ACiD Telnet HQ / blackflag.acid.org (21:1/112)
  • From dream master@21:1/163 to themadtux on Friday, June 09, 2017 20:42:46
    On 06/09/17, themadtux said the following...
    Yeah added ; at the end of it and tried to compile then it errors out
    with the first Variable "Count Byte,".

    then do

    count : byte;

    |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 A33 (Windows/64)
    * Origin: |08--[|15!|07dreamland BBS dreamland.darktech.org (21:1/163)
  • From themadtux@21:1/112 to dream master on Saturday, June 10, 2017 00:33:58
    then do

    count : byte;


    hehe... was a step ahead of ya.. did that and now it faults on

    Txt String Array(1..50);

    lol... think we need an updated mpl for this little mod =] Cause I'm an
    idiot when it comes to this stuff. Wish that wasn't the case that's for sure.

    Thanks

    -themadtux

    --- Mystic BBS v1.12 A33 (Windows/32)
    * Origin: ACiD Telnet HQ / blackflag.acid.org (21:1/112)
  • From Skuz@21:1/105 to themadtux on Saturday, June 10, 2017 01:56:29
    Hello themadtux!

    10 Jun 17 00:33, you wrote to dream master:

    then do

    count : byte;


    hehe... was a step ahead of ya.. did that and now it faults on

    Txt String Array(1..50);

    it should be Txt : Array[1..50] of String;

    lol... think we need an updated mpl for this little mod =] Cause I'm
    an idiot when it comes to this stuff. Wish that wasn't the case that's
    for sure.

    The whole script is...
    // .-------------------------.
    // | GO-PAWZ.MPS : RELEASE 8 |------------------------------------------------ // `-------------------------'
    //
    // This mod is written for use with Mystic BBS v1.10 under all platforms.
    //
    // You can contact me at mysticbbs@gmail.com
    //
    // Changelog since last release:
    // - Updated for Mystic 1.10
    // - Added input buffer purge to fix problems with SyncTerm
    // - Inactivity time is now pulled from configuration. 0=Disable now.
    // ---------------------------------------------------------------------------

    Uses
    CFG

    Const
    AsciiPause = '[Press any key]';

    Var
    Count : Byte;
    FN : String;
    Ext : String;
    SavedX : Byte;
    SavedY : Byte;
    tStart : LongInt;
    tNow : LongInt;
    dTime : Integer;
    Ch : Char;
    Txt : Array[1..50] of String;
    TxtMax : Byte;

    Procedure GetFileName;
    Var
    F : File;
    Begin
    If Not FileExist(FN + Ext) Then Begin
    WriteLn ('|CR|12ERROR: |14Animated pause data not found.');
    Halt;
    End;

    If FileExist(FN + 'tx1') Then
    Repeat
    Count := Random(10);
    If Count = 0 Then
    Ext := 'txt'
    Else
    Ext := 'tx' + Int2Str(Count);
    Until FileExist(FN + Ext);

    Count := 1;

    fAssign (F, FN + Ext, 66);
    fReset (F);
    fReadLn (F, Txt[1]);

    dTime := Str2Int(Txt[1]);

    While Not fEof(F) and Count < 50 Do Begin
    fReadLn (F, Txt[Count]);
    Count := Count + 1;
    End;

    fClose (F);

    TxtMax := Count - 1;
    End;

    Procedure CheckTimeOut;
    Begin
    If CfgTimeOut = 0 Then Exit;

    tNow := Timer - tStart;

    If tNow > CfgTimeOut Then Begin
    WriteLn (GetPrompt(136));
    SysopLog ('GO-PAWZ: Timeout');
    Hangup;
    End;
    End;

    Procedure DoPause;
    Begin
    Count := 1;

    Repeat
    CheckTimeOut;

    GotoXY (SavedX, SavedY);
    Write (Txt[Count]);

    If Count = TxtMax Then
    Count := 1
    Else
    Count := Count + 1;

    Delay (dTime);
    Until KeyPressed;

    PurgeInput;

    StuffKey(#13);
    End;

    Begin
    PurgeInput;

    tStart := Timer;

    If Graphics = 0 Then Begin
    Write (AsciiPause);
    Repeat
    CheckTimeOut;
    Until KeyPressed;
    Halt;
    End;

    FN := CfgTextPath + 'anipause.';
    Ext := 'txt';
    SavedX := WhereX;
    SavedY := WhereY;

    GetFileName;
    DoPause;
    End;

    --- GoldED+/W32-MSVC 1.1.5-b20160201
    * Origin: flupH * fluph.darktech.org (21:1/105)
  • From dream master@21:1/163 to themadtux on Saturday, June 10, 2017 03:21:45
    On 06/10/17, themadtux said the following...
    then do

    count : byte;

    hehe... was a step ahead of ya.. did that and now it faults on
    Txt String Array(1..50);
    lol... think we need an updated mpl for this little mod =] Cause I'm an idiot when it comes to this stuff. Wish that wasn't the case that's for sure.

    do

    txt : array(1..50) of string;

    read the whats new for 1.10 to now and you can see all the changed to mpl.

    i think there is an updated version for 1.10. will just have to look around.

    |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 A33 (Windows/64)
    * Origin: |08--[|15!|07dreamland BBS dreamland.darktech.org (21:1/163)
  • From Gryphon@21:1/101 to themadtux on Friday, June 16, 2017 16:59:25
    On 06/08/17, themadtux pondered and said...

    Ok all.. quick question. I'm trying to compile g00r00's old go-pawz mpl and I'm getting an error ...

    Error (line 22, col 33)
    Syntax error

    The targeted line is:

    AsciiPause = '[Press any key]',

    anyone have an idea what the issue is? Not yet familiar with coding but
    in my old age I'm going to have to tackle it. Last time I looked into
    this type of stuff was PCBoard back in the late 90's. =)

    I'm guessing that go-pawz6 was coded for Mystic 1.07. The MPL syntax changed with 1.10. It likely needs to be updated.

    Ò Ö· Ò .
    Ö·Ò·ÒÖÖ·Ç·Ö·Ò· Ö·Ç ÖÄÖÖÇ·Ö·Ò·ÒÒÒ cyberia.darktech.org
    ӶРӶǽÐÐÓ½ÐÐ Ó½Ó ÓÄÓ¶Ó½ÓÄÐ ÐÓÐ San Jose, CA.
    Ó½ ½Ó ½

    --- Mystic BBS v1.12 A33 (Windows/32)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)