Results 1 to 4 of 4

Thread: phxImageEditor bug

  1. #1

    phxImageEditor bug

    Hi, I've been messing around with this Library trying to learn and understand it and came across a small bug that I thought I would share.

    I had a large .png file consisting of many frames of an animated character, I used the Import from texture button and then the Rectangular Patterns option from the Tools menu to set up the patterns. I then saved to an appropriately named phximg file.

    I then tried to use this file in a Sprite test program I had created using the 1945.phximg file, but it didn't work. I tried this several times until i discovered what was wrong:

    It seems the Rectangular Pattens tool does not default the Pivot values to anything meaningful and I was ending up with Pivot values of something like 10794700,1

    After manually editing the Pivot values for each pattern, the Test program worked fine. So my fix was to edit the TPHXImage.LoadFromStream source to check and adjust of necesary.

    Anyway, sorry to be so long-winded.

  2. #2

    phxImageEditor bug

    Yeah i've overlooked that when creating the pivots (they wherent in when i wrote the pattern thing. It will be fixed when the next version is ready.

    As always i have my hands full with work, the automation industry is hectic this autumn.
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

  3. #3

    phxImageEditor bug

    Thankyou Andreaz.

    Here's something else you might look at, at the same time:

    If you have a long list of patterns and you delete one of them using the icon bottom, second from left, then it's position is taken by the last pattern in the list.

    Thankyou for your work itr.

  4. #4

    phxImageEditor bug

    Quote Originally Posted by JoePublic
    Thankyou Andreaz.

    Here's something else you might look at, at the same time:

    If you have a long list of patterns and you delete one of them using the icon bottom, second from left, then it's position is taken by the last pattern in the list.

    Thankyou for your work itr.
    Yeah, that sounds familliar, it's no real delete tbh, it just swaps the item with the last one in the list and decreases the count. Guess i was to lazy writing that...
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

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
  •