[PHP] Furni Icon Extractor

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Valued Member cabeludo007 is offline
    MemberRank
    Nov 2013 Join Date
    My HouseLocation
    147Posts

    big grin [PHP] Furni Icon Extractor

    Hi, Rage!

    I want to share with you my furni extractor written in PHP!
    Spoiler:




    How do this works?
    - The PHP read your furnidata XML and get from them all the furnis, then go to your hof_furni and get from them the furni swfs, parse that and save a cache for when that same swf be called again.
    - The furni sprites are colored according the partcolors element into the furnidata properties.
    - The furni sprites are mounted with their coords and then is saved into the output path.

    How do i set it up and run?
    There is 6 items that you need to change:
    Spoiler:




    HOFFURNI_PATH: the path of your hof_furni folder
    FURNIDATA_FILENAME: The path of your furnidata.xml
    REVISION_FOLDER: if your swf file path is like hof_furni/49504/furni.swf, Set it true, else, false
    OUTPUT_FILE_FORMAT: The format of the name where your png icon will be saved
    OUTPUT_PATH: The output path of your png icon
    MODELS_PATH:This is the folder where the icon model will to be cached. My advice is: create a folder in anywhere you want and set the MODELS_PATH value as that folder path.


    This little app were made with a library that i'm slowly making.
    If you want to use that library for anything you want, ok. if you release some project using this library and keep my credits, thanks . Otherwise, you are a coward.

    [UPDATE]
    Requirements:
    PHP 5.5.4
    Knowledge with PHP

    Download: https://mega.nz/#!QktmxCoQ!zOVEKKwuJSeHOuqoUibTwOr2dSoS-kJQEliSX1JAY40

    VS: https://www.virustotal.com/pt/file/0...is/1470795200/
    Last edited by cabeludo007; 10-08-16 at 06:10 AM. Reason: Requirements


  2. #2
    Member DJGOMEZV is offline
    MemberRank
    Mar 2013 Join Date
    56Posts

    Re: [PHP] Furni Icon Extractor

    Quote Originally Posted by cabeludo007 View Post
    Hi, Rage!

    I want to share with you my furni extractor written in PHP!
    Spoiler:




    How do this works?
    - The PHP read your furnidata XML and get from them all the furnis, then go to your hof_furni and get from them the furni swfs, parse that and save a cache for when that same swf be called again.
    - The furni sprites are colored according the partcolors element into the furnidata properties.
    - The furni sprites are mounted with their coords and then is saved into the output path.

    How do i set it up and run?
    There is 6 items that you need to change:
    Spoiler:




    HOFFURNI_PATH: the path of your hof_furni folder
    FURNIDATA_FILENAME: The path of your furnidata.xml
    REVISION_FOLDER: if your swf file path is like hof_furni/49504/furni.swf, Set it true, else, false
    OUTPUT_FILE_FORMAT: The format of the name where your png icon will be saved
    OUTPUT_PATH: The output path of your png icon
    MODELS_PATH:This is the folder where the icon model will to be cached. My advice is: create a folder in anywhere you want and set the MODELS_PATH value as that folder path.


    This little app were made with a library that i'm slowly making.
    If you want to use that library for anything you want, ok. if you release some project using this library and keep my credits, thanks . Otherwise, you are a coward.

    [UPDATE]
    Requirements:
    PHP 5.5.4
    Knowledge with PHP

    Download: https://mega.nz/#!QktmxCoQ!zOVEKKwuJSeHOuqoUibTwOr2dSoS-kJQEliSX1JAY40

    VS: https://www.virustotal.com/pt/file/0...is/1470795200/
    When I put my furnidata tells me this:

    Notice: Undefined Index Furnitype C:\extract\extract.php in line 55

    But with no habbo

  3. #3
    Member Matthew Carter is offline
    MemberRank
    Jan 2016 Join Date
    85Posts

    Re: [PHP] Furni Icon Extractor

    Doesn't work?

    - I've downloaded PHP 5.5.4
    - I've edited extract.php (Screenshot by Lightshot)

    I get these errors.... (Screenshot by Lightshot)

    Any suggestions?

  4. #4
    Hakuna Matata Matata is offline
    MemberRank
    Sep 2012 Join Date
    DenmarkLocation
    807Posts

    Re: [PHP] Furni Icon Extractor

    Quote Originally Posted by Matthew Carter View Post
    Doesn't work?

    - I've downloaded PHP 5.5.4
    - I've edited extract.php (Screenshot by Lightshot)

    I get these errors.... (Screenshot by Lightshot)

    Any suggestions?
    probably becauser you wrote mpp instead of xampp.

  5. #5
    Member Matthew Carter is offline
    MemberRank
    Jan 2016 Join Date
    85Posts

    Re: [PHP] Furni Icon Extractor

    Quote Originally Posted by Matata View Post
    probably becauser you wrote mpp instead of xampp.
    Did you even look at my screenshot lol? Screenshot by Lightshot you see anything that says "mpp"

  6. #6
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: [PHP] Furni Icon Extractor

    But how many years does it to extract them all?

    Mine is under 1 minute: http://forum.ragezone.com/f353/icon-...5/#post8676581

    And PHP is just shit, just saying.

  7. #7
    Valued Member cabeludo007 is offline
    MemberRank
    Nov 2013 Join Date
    My HouseLocation
    147Posts

    Re: [PHP] Furni Icon Extractor

    Quote Originally Posted by The General View Post
    But how many years does it to extract them all?

    Mine is under 1 minute: http://forum.ragezone.com/f353/icon-...5/#post8676581

    And PHP is just shit, just saying.
    I Don't Care, Just saying.

    ---------------

    Some troubleshooting:

    Screenshot by Lightshot - Replace the \ to \\ in the setting values

    Notice: Undefined Index Furnitype C:\extract\extract.php in line 55 - ​Check your furnidata.xml

  8. #8
    Member Sonay is online now
    MemberRank
    Feb 2016 Join Date
    GermanyLocation
    93Posts

    Re: [PHP] Furni Icon Extractor

    Quote Originally Posted by The General View Post
    But how many years does it to extract them all?

    Mine is under 1 minute: http://forum.ragezone.com/f353/icon-...5/#post8676581

    And PHP is just shit, just saying.
    PHP is the best way. One Habbo Retro use a Emulator in C# your Icon Dumper doesn't work without Java so need to install Java.
    The Homepage is running with PHP so it's easier.

    Yours Sincerely,
    Sonay

  9. #9
    Apprentice Matthew22 is offline
    MemberRank
    Aug 2016 Join Date
    9Posts

    Re: [PHP] Furni Icon Extractor

    Quote Originally Posted by Matata View Post
    probably becauser you wrote mpp instead of xampp.
    After doing what you suggested I still get the same errors.

    Error I am getting:
    Screenshot by Lightshot

    Extract.php
    Screenshot by Lightshot

  10. #10
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: [PHP] Furni Icon Extractor

    Quote Originally Posted by Sonay View Post
    PHP is the best way. One Habbo Retro use a Emulator in C# your Icon Dumper doesn't work without Java so need to install Java.
    The Homepage is running with PHP so it's easier.

    Yours Sincerely,
    Sonay
    Yes without PHP installed you cannot run PHP either.
    #logic

  11. #11
    Account Upgraded | Title Enabled! Jamal7 is offline
    MemberRank
    Dec 2013 Join Date
    547Posts

    Re: [PHP] Furni Icon Extractor

    Quote Originally Posted by The General View Post
    Yes without PHP installed you cannot run PHP either.
    #logic
    For every furni you add you need to run the program again. You can just add a furniviewer.php where it checks if it already exists yes or no and then add it. Maybe your way of getting the icons is better but it cost more time.

  12. #12
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: [PHP] Furni Icon Extractor

    What if I tell you I don't use PHP at all?

  13. #13
    Member Sonay is online now
    MemberRank
    Feb 2016 Join Date
    GermanyLocation
    93Posts

    Re: [PHP] Furni Icon Extractor

    Quote Originally Posted by The General View Post
    Yes without PHP installed you cannot run PHP either.
    #logic
    Everyone has allready PHP installed for the Homepage.

  14. #14
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: [PHP] Furni Icon Extractor

    Quote Originally Posted by Sonay View Post
    Everyone has allready PHP installed for the Homepage.
    No dude. I don't.

  15. #15
    Member selimrecep is offline
    MemberRank
    Jun 2014 Join Date
    72Posts

    Re: [PHP] Furni Icon Extractor

    For habboon edit swf, try this extract.php for fix that:
    Notice: Undefined Index Furnitype C:\extract\extract.php in line 55

    [PHP] extract.php - Habboon Edit SWF - Pastebin.com



Page 1 of 2 12 LastLast

Advertisement