Results 1 to 4 of 4

Thread: AveragePixelShift?

  1. #1
    Join Date
    Dec 2010
    Posts
    89
    Mentioned
    4 Post(s)
    Quoted
    8 Post(s)

    Default AveragePixelShift?

    I don't think I've seen another thread on this, but it appears that AveragePixelShift isn't working for me. The function simply won't read any movement (or shifts in pixels). My Simba and SRL should be to date.

    Here's the code I've been using.
    Simba Code:
    program PrintMyPixels;
      {$DEFINE SMART}
      {$i SRL/srl.simba}

      Procedure DebugShiftCount;
      var
        PBox: TBox;
      begin
        PBox := IntToBox(245, 130, 285, 195);
        Writeln(IntToStr(AveragePixelShift(PBox, 250, 500)));
      end;


    begin
      setupSRL;
      Repeat
        DebugShiftCount;
      Until(False);
    end.

    My first thought was that the PBox was off because that bit of code was written by Flight (in his Tutorial) before EoC. So, I updated the box to:

    Simba Code:
    PBox := IntToBox(230, 190, 275, 265);

    The function still doesn't read any change in pixels even if you rotate the camera.
    Any Thoughts?

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Are you on fixed screen min settings etc? Also is your Smart enabled, and the character is already animating when you run the script?

  3. #3
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Doesn't sound like APS is bugged, it sounds like your simba is bugged.

    Force update it all, Close and reopen and give it another go, make sure you have smart enabled etc

  4. #4
    Join Date
    Dec 2010
    Posts
    89
    Mentioned
    4 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by xtrapsp View Post
    Doesn't sound like APS is bugged, it sounds like your simba is bugged.
    That did the trick! Reinstalled Simba, and there doesn't seem to be any problems now. Thanks for the help.

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
  •