jTynne Posted July 16, 2012 Group: Members Topic Count: 33 Topics Per Day: 0.01 Content Count: 399 Reputation: 199 Joined: 11/09/11 Last Seen: December 14, 2020 Share Posted July 16, 2012 File Name: jTynne's Palette Renaming Tool File Submitter: jTynne File Submitted: 15 Jul 2012 File Category: Spriting & Paletting Tools Content Author: jTynne Okay, so, basically I needed a tool that would copy and rename .pal files into all the different class palette names since the "All In One" palette diff no longer works with RE game clients. The result was me asking for someone to write something that did just that, and clydelion is in the process of writing a program that can do that. I've created a php script based off of something Yommy posted to us in #rathena that did similar. I've adjusted his script base to do the following: - Script reads numerically numbered .PAL files from one directory and renames them into all the different class names (and genders). - Script tar.gz's the output directory and provides a download link for easily downloading the files. - Script can easily be edited to do what YOU need it to do. From the "readme.txt" file: == Instructions == 1. On a PHP enabled machine, upload the contents of this package to a web directory (or localhost if you're that cool). 2. Next, CHMOD 777 "base" and "output" directories. 3. Upload palettes as #.PAL (capital extension -- you MUST honor the case) to the "base" folder. Note: Numbering starts at 0 and ends at whatever you define in the palette.php file. Find: for($i = 0; $i < 100; $i++) { and change the 100 to the max number of palette files you have in the "base" directory. 4. Run palette.php from your browser. You'll see a bunch of confirmation messages. 5. You can then download the contents of the "output" directory by clicking the download link provided at the bottom of the page. Unfortunately, I'm not that great with PHP, so I doubt I'll be able to extend this script much further. If someone else would care to collaborate or modify it further, please do let me know. If you'd like to share your appreciation for this release, my Paypal is: [email protected] - 50% proceeds go back to rAthena. Questions? Comments? Please reply! Click here to download this file Hopeful Planned Development - Automatically add all files to a specified GRF archive (.gpf or .grf) file for easy implementation. (If you're able to do this PLEASE contact me, as I'm clueless!) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.