Automatic Badges Updater

Results 1 to 5 of 5
  1. #1
    Member Tafelglotzer is offline
    MemberRank
    Jan 2017 Join Date
    76Posts

    Automatic Badges Updater

    Hey, another useful tool i've created.

    How it works?
    It compares the badges from Habbo with the badges of your hotel.
    The missing badges are downloaded and saved in your album1584 directory.
    At the same time, it adds "badge_name_xxx=xxx" and "badge_desc_xxx=xxx" to your external_flash_texts.txt

    You external_flash_texts will not be ovewriten, it will be appended dont worry.After its finished, you can find the result in the src/logs/ folder

    Setup
    Download and extract the zip file.
    Open the config.php and adjust the path to your album1584 and external_flash_texts.txt

    The "locales" are basiclly the domains. For example the locale "de" gets converted to "https://www.habbo.de"
    It can handle multiple locales, just add it.

    Executing it
    You can execute it in to ways.

    1) Manually
    - Simply open the "start.bat" file.

    2) Automatic (recommended)
    - Create a cronjob which for example runs every day at 12:00. This way you dont have to worry about starting the programm manually.


    How to create a cronjob
    Sorry for the images being german, because im german. But you should be able to create a cronjob anyways, its really simple.

    1) Open the seachbar and search for "task". Open something similar called "Task Sheduler"




    2) On the right side, click on something similar called "create a simple task"



    3) Enter a name, optionally a description.




    4) Choose when it should be executed, for example: daily




    5) Enter a startdate and time




    6) The action is opening a program




    7) Klick on the seach button and search for the "start.bat" file




    8) Finally, it should look something similar to this




    The cronjob is now active. I recommend to test it first. To do that click on something similar called "execute"




    If you have questions or problem let me now in the comments, i try to answer it.

    Some other tools ive created: github.com/tafelglotzer
    Attached Files Attached Files
    Last edited by Tafelglotzer; 30-06-17 at 10:21 AM.


  2. #2
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,375Posts

    Re: Badges Updater

    It would be better to include this in a CMS cron system and handle it via DB, as I personally find scheduled tasks on Windows to be far more annoying to work with.

    Good release :-)

  3. #3
    Member Tafelglotzer is offline
    MemberRank
    Jan 2017 Join Date
    76Posts

    Re: Badges Updater

    You can do this if you want. I mean its open source.
    However i prefer using the task sheduler, because you just set it up once and it just works. Also you easily can delete the task if you dont want to use it anymore.

    Thanks for the feedback

  4. #4
    Apprentice Angel97 is offline
    MemberRank
    Mar 2012 Join Date
    16Posts

    Re: Badges Updater

    when i opne the start.bat it closes alone

  5. #5
    Member Tafelglotzer is offline
    MemberRank
    Jan 2017 Join Date
    76Posts

    Re: Badges Updater

    Quote Originally Posted by Angel97 View Post
    when i opne the start.bat it closes alone
    Add to the bottom of start.bat this: pause
    After that open updater.php and set display_errors + display_startup_errors to true

    It now should display the error



Advertisement