Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 02/27/19 in all areas

  1. 3 points
    CarlosHenrq

    php-grf

    Hi guys, I'm here to share with you my new project php-grf, with this guy you can use PHP to read and write grf files. This only supports grf files with version 0x200; This supports read and writing in grf files; This code is based on https://github.com/MagicalTux/grf The code ahead will show you how to extract all files inside grf. <?php require_once 'php-grf/lib/autoload.php'; // Instance a reader/writer for your grf file $grf = new GrfFile('php-grf/tests/test200.grf'); foreach ($grf->getEntries() as $entry) { $dir = dirname($entry->getFilename()); if (is_dir($dir) === false) mkdir ($dir, 0777, true); $file = str_replace('\\', '/', $entry->getFilename()); $buffer = $entry->getUnCompressedBuffer(); $fp = fopen($file, 'wb'); fwrite($fp, $buffer); fflush($fp); fclose($fp); } // Dispose all resources used $grf = null; Enjoy it, has any issue or problem with the lib? Please report it and help to keep it good for you all use. Repo URL: https://github.com/carloshenrq/php-grf Other useful repositories: https://github.com/arminherling/GRF/ (Read-only C#) https://github.com/MagicalTux/grf (Read-Write C)
  2. 1 point
    CarlosHenrq

    php-grf

    I don't know the code from ROChargenPHP, but I suppose yes. He reads GRF or a data folder extracted. This is only for reading and writing at GRF files. Not for parsing .spr, .act or .pal files. We can create an PHPGrfEditor with this one :v I've searched a little and found this Grf class in ROChargenPHP https://github.com/ScDarko/ROChargenPHP/blob/master/loaders/class.Grf.php Just for update, this now reads and writes grf files.
  3. 1 point
    vykimo

    php-grf

    Yes in fact rochargenphp uses the same principle as you, isn't it?
  4. 1 point
    CarlosHenrq

    php-grf

    Hi! As I'm building an updater (like thor patcher), this can allow me to create new features like check files inside GRF comparing local files with server files and download only files not equals to the server. Another practical application is something like RoChargenPHP.
  5. 1 point
    yes ... ... of course not recommend its better to have multiple plugins to track your progress in your server that's the reason most of the time why rathena members doesn't want to upgrade their server to the latest revision because once they have bought a source modification, they couldn't upkeep it (don't have src knowledge), and so they stuck their revision .... .... and eventually their server became so outdated and have to do a server wipe if you just having a single plugin, once the plugin break, you will wonder where the error come from, because it will have over thousand of lines
  6. 1 point
    bWolfie

    The Horizon Project

    good luck but honestly would have preferred you finished your control panel project. that was rather disappointing.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.