Results 1 to 6 of 6

Thread: Bug in PASCAL tag handler?

  1. #1
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2

    Bug in PASCAL tag handler?

    Hi WILL,

    I've just been trying to drop some code into a post in Chesso's discussion thread about AI for his game... the code can be found here.

    When its put into the post using the [ PASCAL ] and [ /PASCAL ] tags, it merges the last two procedures (gotoXY and pathComplete) into an incoherent erroneous mess.

    Is there a limit on the length of code we can post? Or is there something weird in the code thats breaking the PASCAL tag handler?
    :: AthenaOfDelphi :: My Blog :: My Software ::

  2. #2
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Bug in PASCAL tag handler?

    Hey Athena,

    There is a size limit for the BBCode pascal tags as I recall, but I don't know the exact size. I believe it relates to the timeout duration for executing PHP code as the longer the code the longer it takes to parse it all. If you can try posting your code in segments using a couple of pascal highlighter tags that might solve the problem for you.

    As far as the PHP timeout issue goes however, it's not something we can do too much about to cheat though as it's universal among all of the scripts run for the host, let alone the site it's self.

    Doesn't mean it's broken (unless your code was small), it's just the kind of perks is has.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  3. #3
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2

    Bug in PASCAL tag handler?

    Hi Will,

    The code is in the ZIP file in my original post here.

    I would have thought a script timeout would have resulted in the last part of my post being dropped, not the last portion of my PASCAL segment, thats why I mentioned it :-)
    :: AthenaOfDelphi :: My Blog :: My Software ::

  4. #4
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2

    Bug in PASCAL tag handler?

    As an aside, you can override the default script timeout from php.ini with:-

    Code:
    void set_time_limit ( int seconds )
    If seconds is 0, no time limit is imposed.
    :: AthenaOfDelphi :: My Blog :: My Software ::

  5. #5

    Bug in PASCAL tag handler?

    [pascal]
    try
    PascalTag := Working;
    finally
    end;[/pascal]
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  6. #6
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Bug in PASCAL tag handler?

    "Yay!" -- :clap: :salute: :clown: :joker: :spidey: :lol: :shock: :thelion: :toocool: harao: :viking: :batman: :alien: :left: :cylon: :elephant: :thumbup: :right:
    Jason McMillen
    Pascal Game Development
    Co-Founder





Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •