Well tested open source PHP Cabal helper classes

Results 1 to 13 of 13
  1. #1
    Programmer cyberinferno is offline
    MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    707Posts

    happy Well tested open source PHP Cabal helper classes

    While I was building a CMS in PHP for Cabal server, I noticed that lot of PHP code was scattered around in this section. Some worked and others did not. It was bit hard to find pieces of important code like decoding style etc. which actually worked and did not fuck up the data. Hence once I wrote/found working code I decided to make a bunch of open source helpers classes that can be used by any PHP developer who intends to build control panels for his/her website.

    Link: https://github.com/cyberinferno/cabal-online-helper

    Currently there are some character helpers methods as well as game constant listing methods only. Tests have been written for all the available methods too.

    In the future I have plans of adding item code and item option generating helper methods, methods to help edit server files to manipulate drops, start/stop/restart server etc.

    Feedback and feature suggestions are always welcome. If you find issues please report it in Github itself so that it is easy to track.

    Happy server development guys!


  2. #2
    PwrGames PwrDex is online now
    MemberRank
    Jul 2011 Join Date
    /var/log/cabalLocation
    788Posts

    Re: Well tested open source PHP Cabal helper classes

    Keep going on this project.
    Item generation is described here in ragezone, however the slot and craft options could be server specific.

  3. #3
    Programmer cyberinferno is offline
    MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    707Posts

    Re: Well tested open source PHP Cabal helper classes

    Quote Originally Posted by PwrDex View Post
    Item generation is described here in ragezone, however the slot and craft options could be server specific.
    I will make a note of it!

  4. #4
    Lurker AzureSensei is offline
    ModeratorRank
    Aug 2013 Join Date
    RageZoneLocation
    315Posts

    Re: Well tested open source PHP Cabal helper classes

    Moved to appropriate subsection.

  5. #5
    Programmer cyberinferno is offline
    MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    707Posts

    Re: Well tested open source PHP Cabal helper classes

    Version 1.1.0 released with support for reading cabal_msg.dec file as well as World_drop.scp!

  6. #6
    Programmer cyberinferno is offline
    MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    707Posts

    Re: Well tested open source PHP Cabal helper classes

    Version 1.2.0 released with item code as well as item options generation helper classes. README has been updated with basic usage details for anyone who wants to start using the library!

  7. #7
    Programmer cyberinferno is offline
    MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    707Posts

    Re: Well tested open source PHP Cabal helper classes

    Version 1.3.0 has been released with the following things

    * ItemCode extract method: This will return the original item code, binding and grade from the given generated item code
    * ItemOption extract methods: This will returns slot count, craft count, slots options and craft options from the given generated item option

  8. #8
    Programmer cyberinferno is offline
    MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    707Posts

    Re: Well tested open source PHP Cabal helper classes

    Version 1.4.0 has been released with the following things

    * Binary item list decode feature. This method can used to decode inventory as well as warehouse data from their respective tables saved in Cabal server database.

  9. #9
    Programmer cyberinferno is offline
    MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    707Posts

    Re: Well tested open source PHP Cabal helper classes

    Version 1.5.0 has been released with the following things

    * Remove item slot option from item option code feature has been added.

  10. #10
    Programmer cyberinferno is offline
    MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    707Posts

    Re: Well tested open source PHP Cabal helper classes

    Version 1.6.0 has been released with the following changes

    * Remove all slot options from item option feature added.
    * Remove binding from item code feature added.
    * Max grade of an item has been updated from 15 to 20 in ItemCode class to generate items with +20 grade.

  11. #11
    Enthusiast semicolon143 is offline
    MemberRank
    Dec 2017 Join Date
    127.0.0.1Location
    27Posts

    thumbs up Re: Well tested open source PHP Cabal helper classes

    Quote Originally Posted by cyberinferno View Post
    Version 1.1.0 released with support for reading cabal_msg.dec file as well as World_drop.scp!
    Hi there,

    Can you give us an example on how to use your cabal_msg reader support?

    Thanks in advance.,

  12. #12
    Programmer cyberinferno is offline
    MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    707Posts

    Re: Well tested open source PHP Cabal helper classes

    Quote Originally Posted by semicolon143 View Post
    Hi there,

    Can you give us an example on how to use your cabal_msg reader support?

    Thanks in advance.,
    Convert cabal_msg.enc to cabal_msg.dec and then use the class CabalMsg getArray method to get the full content of the file. Do something like this after placing cabal_msg.dec in same folder as PHP code:

    PHP Code:
    <?php
    require 'vendor/autoload.php';
    $cabalMsgDecoder = new cyberinferno\Cabal\Helpers\FileSystem\Client\CabalMsg('cabal_msg.dec');
    echo 
    '<pre>' print_r($cabalMsgDecoder->getArray(), true) . '</pre>';
    If you can want only some info like item details then you can call getArray by sending top level key as parameter:

    PHP Code:
    $cabalMsgDecoder->getArray('item_msg'); 

  13. #13
    Enthusiast semicolon143 is offline
    MemberRank
    Dec 2017 Join Date
    127.0.0.1Location
    27Posts

    Re: Well tested open source PHP Cabal helper classes

    Hi again,

    Do you have an item encoder?

    From your decoder to re-encode methods?

    From this
    [itemCode] => 1
    [itemOption] => 0
    [itemInventorySlot] => 2

    to HEX Binary value?Looking forward for your reply.

    TIA



Advertisement