• Learning Pascal

    From Rastus@46:1/107 to AgoraNet.AgoraNet:_Software on Wed Jan 21 15:08:08 2015
    I'm a late bloomer.. I am only now learning how to program using Pascal. I have written a few test doors using various Door Kits but I found that g00r00's D32 is the easiest and most straight forward of all. It's code is easy to follow and to modify too.

    The most challenging part of my learning project is learning how to write binary data files to store player/user data. But with a little more reading and practice I'll learn it too.. I was wondering if anyone has a library of code examples they'd like to share. But also like to know if there is an updated version of a door kit that supports 'recent versions' of Free
    Pascal. I looked into updating D32 myself, but like the young (err old) Padawan my skillz are not yet complete..

    Turbo Pascal is ok, but Free Pascal would be much better. Not it matters,
    but I run Linux and my preferred IDE is Geany.


    Fat Rastus
    --- SBBSecho 2.27-Linux
    * Origin: Electronic Warfare BBS | telnet:\\bbs.ewbbs.net (46:1/107)
  • From Tiny@46:1/126 to Rastus on Wed Jan 21 16:25:34 2015
    The most challenging part of my learning project is learning how to
    write binary data files to store player/user data. But with a little

    Laugh, My problem is remembering how to do things. So I understand your
    pain here man!

    anyone has a library of code examples they'd like to share. But also

    Look for something called SWAG There was a huge archive of pascal code in
    the swag archives. I /believe/ Sean Dennis has it on his website but I
    can't think of what it is now... kd5col.com or something.

    Turbo Pascal is ok, but Free Pascal would be much better. Not it
    matters, but I run Linux and my preferred IDE is Geany.

    Pretty much the same thing. You can put FP into Turbo pascal mode with
    one switch. :)

    Shawn

    --- Ezycom V3.00 01FB001F
    * Origin: Tiny's BBS - tinysbbs.com (46:1/126)
  • From Rastus@46:1/107 to Tiny on Wed Jan 21 22:09:12 2015

    anyone has a library of code examples they'd like to share. But also

    Look for something called SWAG There was a huge archive of pascal code
    in
    the swag archives. I /believe/ Sean Dennis has it on his website but I
    can't think of what it is now... kd5col.com or something.

    Thanks. I've known about Swag for sometime and yes it is a very useful collection. What I am specifically looking for is code examples that were written using the D32 library and an updated Door Kit. I found about all I can using search engines.. I always look before I ask. The demon site had several examples that proved useful.

    I couldn't get any of the door kits to compile with the new versions of FP
    no matter if ran FP in compatible mode or not because the libraries have changed considerably. I tried to use the older FP libraries but that too failed.

    Nick
    --- SBBSecho 2.27-Linux
    * Origin: Electronic Warfare BBS | telnet:\\bbs.ewbbs.net (46:1/107)
  • From Tiny@46:1/126 to Rastus on Thu Jan 22 07:49:32 2015
    Hello Rastus.

    21 Jan 15 22:09, you wrote to me:

    I couldn't get any of the door kits to compile with the new versions
    of FP no matter if ran FP in compatible mode or not because the
    libraries have changed considerably. I tried to use the older FP libraries but that too failed.

    Ahh my mistake. I've only used FP on *nix installs, for doors I've just always stuck with BP for DOS, and Virtual Pascal for Win32 or OS/2.

    Not sure what door library is used, but Usurper is a pretty big door game written in pascal, that's been ported to win32 as well as dos... Have you looked into that one yet?

    Shawn

    --- GoldED+/EMX 1.1.5-b20110320
    * Origin: Tiny's BBS - tinysbbs.com (46:1/126)
  • From Rastus@46:1/107 to Tiny on Thu Jan 22 08:50:45 2015
    wrote:

    Hello Rastus.

    21 Jan 15 22:09, you wrote to me:

    I couldn't get any of the door kits to compile with the new versions
    of FP no matter if ran FP in compatible mode or not because the libraries have changed considerably. I tried to use the older FP libraries but that too failed.

    Ahh my mistake. I've only used FP on *nix installs, for doors I've just always stuck with BP for DOS, and Virtual Pascal for Win32 or OS/2.

    Not sure what door library is used, but Usurper is a pretty big door
    game
    written in pascal, that's been ported to win32 as well as dos... Have you looked into that one yet?

    I am comfortable with using TP. I use Geany IDE and compile using TP in a dosbox for the few doors I've tinkered with. I haven't jumped into teh Usurper code yet, but I'm sure I can find many routines there for examples.
    I downloaded the Renegade Source last night and have found many examples
    there for what I'm needing to learn.. namely data storage in binary files.

    The FP libraries make storing and encrypting easy.. but I'm willing to learn the old ways too... I'm an old fart and could have learned this stuff years ago.. what held me back was always the cost of the software.. that's not an issue now-a-days.. I love linux and open source!

    Lately I've been writing more small utils using javascript. Once I learned Pascal syntax, javascript became very easy. I was amazed how similar the
    two are.

    Thanks Again,

    Nick

    Hmm.. I just noticed my board isn't attaching tag lines when using NNTP.. something else to fix...
    --- SBBSecho 2.27-Linux
    * Origin: Electronic Warfare BBS | telnet:\\bbs.ewbbs.net (46:1/107)