Jump to content

Search the Community

Showing results for tags 'php-grf'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Bulletin Centre
    • Community News
    • Repository News
    • Ragnarok News
  • Hercules Development Centre
    • Development Discussion
    • Suggestions
    • Development Centre Archives
  • Support & Releases
    • General Server Support
    • Database
    • Scripting
    • Source
    • Plugin
    • Client-Side
    • Graphic Enhancements
    • Other Support & Releases
  • Hercules Community
    • General Discussion
    • Projects
    • Employment
    • Server Advertisement
    • Arts & Writings
    • Off Topic
  • 3CeAM Centre
    • News and Development
    • Community
  • International Communities
    • Filipino Community
    • Portuguese Community
    • Spanish Community
    • Other Communities

Categories

  • Client Resources
  • Graphic Resources
    • Sprites & Palettes
    • Maps & Textures
    • Other Graphics
  • Server Resources
    • Server Managers / Editors Releases
    • Script Releases
    • Source Modifications
    • Plugins
    • Pre-Compiled Server
  • Web Resources

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Discord


Skype


IRC Nickname


Website URL


Location:


Interests


Github

Found 1 result

  1. 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)
×
×
  • Create New...

Important Information

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