Jump to content

GRF: GRF Editor


Tokei

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  657
  • Reputation:   662
  • Joined:  11/12/12
  • Last Seen:  

Oh great.. this would be better than what I have expected =D

 

A new "and separated Advanced Search" window.   /no1

 

EDIT:

Is it possible to have the "Extract All Selected Files" option in the Advanced Search window ? =D

 

Added in 1.7.8.4

 

 

Hi Dear Tokei!

I have a question related to lzma & grf encryption by GRF Editor + console application + hashield.

As you know, hashield using something (or your work, i do not know really) to patch grfs.

 

I want to do next:

1.) Repack with lzma data.grf & all other game grfs from my client with lzma + apply grf encryption.

 

My question:

Is will it work? Is it have some extra notes which i must to know?

I planning to do next:

 

1.) Repack data.grf with Grf Editor & lzma algorithm

2.) Repack my own grf with GRF Editor & lzma algorithm

3.) Setup GRF Editor encryption & patch cps.dll

4.) When i will have need to do some changes with my own grf, what i should to do? How to apply patch? (if i can premade rgz & rgp files with hashield)

 

GrfCL (console application) does not support compressing LZMA files, but it can read and extract them. The encryption may not work on all clients (no real tests have been made on renewal clients), so you have to test if it works first. It most likely will, but I'd rather give you a fair warning first.

 

If you're using a version above 1.7.4+, you can use both LZMA and the encryption feature, that's not a problem. To apply patches, you can use the Thor format and encrypt the files. RGZ doesn't support LZMA or encrypted files, for obvious reasons. I'm not sure how HaShield will handle encrypted patches, I doubt it will be an issue, but... that's something you'll have to try on your own! I'm not familiar with rgp files.

  • Upvote 1
Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  04/18/15
  • Last Seen:  

Thx 

Edited by desperand
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   344
  • Joined:  02/26/12
  • Last Seen:  

...

@tokei 

 

Dear Tokei, please take a look about problem above.

 

The problem in next:

when i use grf encryption for grfs i can't run game client (exe 2012-04-10) if it located at any folder with russian characters (non english)

 

How reproduce

1. Create folder: D:\какая-то папка\something\RO

2. Place your encrypted files inside

3. Run Client -> it wont run, because of russian characters in path name....

 

But, if you rename "какая-то папка" to "some folder", you able to run game client with encrypted grfs again...

Edited by Anacondaqq
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  657
  • Reputation:   662
  • Joined:  11/12/12
  • Last Seen:  

 

...

@tokei 

 

Dear Tokei, please take a look about problem above.

 

The problem in next:

when i use grf encryption for grfs i can't run game client (exe 2012-04-10) if it located at any folder with russian characters (non english)

 

How reproduce

1. Create folder: D:\какая-то папка\something\RO

2. Place your encrypted files inside

3. Run Client -> it wont run, because of russian characters in path name....

 

But, if you rename "какая-то папка" to "some folder", you able to run game client with encrypted grfs again...

 

 

Please update to 1.7.8.6. The problem should be gone.

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  04/05/16
  • Last Seen:  

I am in need of some help...

I found a file in the Minecraft Xbox 360 edition called requiredGameRule.grf. I seem to not be able to fully decompress it to read it properly.

It would be appreciated if Tokei could give me some information to help me fully decompress it.

(Or anybody that can help)

 

Thank you.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  142
  • Reputation:   8
  • Joined:  02/11/13
  • Last Seen:  

Guess you're wrong here, grf-files in RO are other files then grf files in minecraft...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

Nice Tool

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  79
  • Reputation:   6
  • Joined:  04/20/16
  • Last Seen:  

is there a way to delete the whole data folder via patch? i know you can delete by adding each file one by one... but i want the entire data folder and files deleted. If you do 1 by 1. it will only delete the file and not the folder.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  141
  • Reputation:   45
  • Joined:  08/14/12
  • Last Seen:  

This tool is amazing, thank you.

I'm just getting into GrfCL now. When I try to use the .bat file display info, on this line:

set c=%c% -fileInfo "data\sprite\¸ó½ºÅÍ\high_orc.spr"

I get the error:

#Error : An exception has been thrown
#Error : Given command line : GrfCL.exe   -breakOnExceptions true -open test.grf -info -break -write "Now showing the structure of the current GRF : " -tree data true all -break -fileInfo "data\sprite\A,A3A½AºA.A?\high_orc.spr" -break
#Error : Command being executed : -fileInfo  <data\sprite\A,A3A½AºA.A?\high_orc.spr>
#Exception : The given key was not present in the dictionary.

However, if I open the GrfCL command prompt, then copy and paste the command, it works. Is this an issue with the encoding of the .bat file? That's my assumption as the error shows a different monster sprite folder, but I don't know how to fix this. This is on Windows 10.

Edited by Nitrous
Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  67
  • Reputation:   2
  • Joined:  08/09/13
  • Last Seen:  

@Tokei Hello, I would like to ask if you know how to encode a data files from thai language to Default-1252 ? cause when u saved the files to make a grf, it turns the thai language to null(?) ,

 

https://gyazo.com/a6002f804e9a7c0455b97848ea41c5ac

 

TIA.

Edited by Elektrochemiestry
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  657
  • Reputation:   662
  • Joined:  11/12/12
  • Last Seen:  

Using an encoding different than 1252 or Korean will most likely cause you issues, so no these can't be converted back.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  383
  • Reputation:   121
  • Joined:  03/31/12
  • Last Seen:  

One of the best tool i ever had indeed and very useful. GRF EDITOR by Tokei.

Thank you again!

Link to comment
Share on other sites

  • 5 months later...

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  12/05/16
  • Last Seen:  

Coooolio

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  12/14/16
  • Last Seen:  

thxxxxxxx

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  12/23/16
  • Last Seen:  

Amazing -- I've been looking for this.

Thank you so much <3

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   344
  • Joined:  02/26/12
  • Last Seen:  

@Tokei i have a problem with GRF Editor 1.7.9.5

When starting GRF Editor i receive notice window with next text:

---------------------------
Information
---------------------------
An error has been encountered before the application could load properly.
An unhandled exception has been thrown :



Failed to load the decompression library (Files.lzma.dll).
---------------------------
ОК   
---------------------------

Win10x64, v1607

UAC Enabled. GRF Editor Installed to C:\Program Files (x86)\GRF Editor\

EDIT: Okay, after installing VC++ 2010 redistributable files (x86) problem solved.

Edited by Anacondaqq
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

@Akkarin I cant download this file it says file not found in the download section..

Link to comment
Share on other sites


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1614
  • Joined:  03/26/12
  • Last Seen:  

8 hours ago, Radian said:

@Akkarin I cant download this file it says file not found in the download section..

Then tag @Tokei to reupload it - i can't reupload something if it says it's not found..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  657
  • Reputation:   662
  • Joined:  11/12/12
  • Last Seen:  

Hmmm weird! Reuploaded.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  383
  • Reputation:   121
  • Joined:  03/31/12
  • Last Seen:  

@Tokei may i know what is the changelog of 1.80 from 1.95 Version?

Thank you! Indeed this tool is very very useful!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  657
  • Reputation:   662
  • Joined:  11/12/12
  • Last Seen:  

There's a changelog in the page:

Quote
  • [Added] GrfEditor : Added more default Thor paths when you create a patch file.
  • [Fixed] GrfEditor : Fixed a bunch of annoying UI issues from WPF.
  • [Fixed] GRF : Windows 10 no longer comes with the required VC++ redistributables, so they're now going to be extracted on startup. This should fix the "Failed to load library" errors.
  • Fixed a... file not found issue o.o.
  • Changed logo!

Then again, there are way more changes than that, 1.7.5 was quite a while ago. I only put those I remembered and uploaded it to fix the broken link. Nothing major was changed though.

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  5
  • Reputation:   0
  • Joined:  01/03/17
  • Last Seen:  

Other link? please.

 

Sorry, there is a problem

You are not allowed to download that file.

Error code: 1D161/3

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  01/01/17
  • Last Seen:  

On 1/11/2013 at 7:11 AM, Tokei said:

GRF Editor


Hey everyone,

This is a GRF tool I started to develop for my own personnal use, but I thought I'd share it since I've upgraded the UI. Its primary goal is to be easy to use while offering a wide variety of options and customizations. The software is quite stable and can handle large operations easily.

How to install

  • Download the zip archive provided from the download link at the bottom of this description or directly from there : http://www.mediafire.com/?aflylbhblrzpz0h
  • Install the application with GRF Editor Installer.exe; if you are missing a .NET Framework you will be prompted to download it.
  • Once you are done, you can start the program from the link on your desktop.

 

Key features

  • Overall speed is faster (or at least equal) than any GRF tool.
  • Common operations : add, delete, merge, extract, preview, save.
  • Undo and redo for any operation.
  • It can open any GRF file.
  • Clean and very interactive interface.
  • Saving formats supported : 0x200, 0x103 and 0x102 (through the Settings page) and conversion to the Thor format.
  • Instant filter and search options (example : "map .gat").
  • File association and context menus integration for .grf, .gpf, .rgz and .thor (through the Settings page).
  • Can rebuild separated images into one file easily.
  • Drag and drop (with the ALT key, can be modified in the Settings page). This is a big part of the software; most of the items can be moved around within the application itself or from/to Windows Explorer.

 

Tools

  • Sprite editor : a simple sprite editor with powerful features. Semi-transparent images can be added, you can easily change the order or replace images, etc. This tool can convert images in the wrong type by showing you multiple solutions (merging a new palette, dithering the image by using current palette, using the closest color, and a few more).
  • Grf validation : allows you to validate a GRF with multiple settings. It can detect corrupted GRF entries, invalid sprites, empty files, non-GRF files, duplicate files and a lot more.
  • Flat maps maker : generates flat maps from .gat and .rsw files. Useful to generate WoE maps or to fasten up the loading time.
  • Patch maker : generates a GRF patch based on two different GRFs.
  • Hash viewer : shows the hash code (both CRC32 and MD5) for files.
  • Image converter : converts an image to any format requested (BMP, PNG, JPG, TGA).
  • GrfCL : used to create batch files (.bat) which can automate tasks on GRF files. See the content in GrfCL.rar in the download for more information. This tool can be customized from the sources as well.
  • Palette recolorer : creates new sprites by changing their colors (this tool is now deprecated).
  • Client database editor : allows modifications of the database client files (txt and lua) with easy and simple tools. Work in progress.

 

Grf encryption

 

The encryption feature has been enabled again. It's similar to what it used to be and it has been tested on client versions ranging from 2012-08-01 to 2014-02-05. Some error messages will be displayed if necessary. If you have an issue, copy the error message (with the code, if there's one) and send me the client executable with the cps.dll file generated by GRF Editor. There shouldn't be compatibility issues anymore though!

Thor files

 

Thor files are patches used by Thor Patcher (
). Because of their similarity with the GRF file structure, they have been integrated within GRF Editor. The primary utility of this feature is that it allows you to add encrypted files to a Thor patch. All the other options can be achieved by using Thor Maker. You'll find the necessary steps below, but test your patches before sending them off to players (I've done a lot of testing on my end, but better be safe).

 

If you're using SecureGRF, then make a new GRF, add the files and encrypt it. In GRF Editor, open the encrypted GRF you just made, use "Save as" and name the new file with a .thor extension. That's it, if you want to change the output directory, click on the root node of the project and select the tab "Container options". You can select the output mode and the GRF to merge the patch with. Simply save again if you change these properties.

 

If you're using GRF Editor's encryption, then make a new Thor file (File > New > New Thor) and add the files you want to patch it with. Right-click on the files you want to encrypt and use Encryption > Encrypt.

Technical stuff

  • Requires .Net Framework 3.5 (SP1) Client Profile to run (3.5 or more will work as well).
  • Automatically converts file name encoding to their proper values (you can change the encoding).
  • Data virtualization is used as much as possible to preview files, meaning the files aren't completely loaded.
  • Right-clicking an item will bring up the available options with that file.
  • Preview file formats : txt, log, xml, lua, lub, bmp, png, tga, jpp, db, ebm, pal, gnd, rsw, gat, rsm, str, spr, act, imf, fna and wav.
  • Services are "crash ready", meaning that you will be warned about a failed operation and no work will be lost (the application won't close and crash). It tries to continue operating even if it meets unsual conditions.
  • Operations can be cancelled by clicking on the button near the progress bar.
  • The warning level can be changed to avoid messages like "Please select a folder first."
  • When prompted with an error, use Ctrl-C to copy the current dialog's content.

 

Some screenshots!

1) Previewing an act file, while showing the search feature

f4s9HyJ.png

2) Preview of a model file (rsm)

JJGzEDe.png

3) Preview of GrfCL with the MakeGrf command

grfcl.png

4) Preview of maps

UhmWXUl.png

5) Preview of Grf validation

RhQY5hj.png

6) Search feature (press Ctrl-F or Ctrl-H to bring up within a text editor)

vGwnomr.png

Sources : http://www.mediafire.com/download.php?7z6hkdag4ayj8rs

Got a feedback? I'd gladly hear you out and fix issues you have with the program.


  • Submitter
  • Submitted
    01/10/2013
  • Category
  • Content Author
     

 

accept my request please :D

Untitled.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  657
  • Reputation:   662
  • Joined:  11/12/12
  • Last Seen:  

@xtian711 The link you're looking for is  http://www.mediafire.com/?aflylbhblrzpz0h , it is public.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...