Jump to content
  • 0

[Guide] GRF Editor: Encrypting


Haziel

Question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   1
  • Joined:  11/20/15
  • Last Seen:  

thanks to this! helps a lot

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   46
  • Joined:  03/27/13
  • Last Seen:  

Very nice guide!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  73
  • Reputation:   82
  • Joined:  02/08/15
  • Last Seen:  

Thanks a lot Hazi! :]

Link to comment
Share on other sites

  • 0

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

Thanks it helps a lot ^_^

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  197
  • Reputation:   19
  • Joined:  11/20/11
  • Last Seen:  

hello, is there a patcher that can  update the files in a encrypted grf? Or does the entire grf need to be replaced if there is any updates ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  520
  • Reputation:   64
  • Joined:  11/19/11
  • Last Seen:  

6 hours ago, mirabell said:

hello, is there a patcher that can  update the files in a encrypted grf? Or does the entire grf need to be replaced if there is any updates ?

 

Thor Patcher can.

1. Generate encrypted thor using GRF Editor 

2. Patch it using Thor Patcher

Edited by Sryx
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  197
  • Reputation:   19
  • Joined:  11/20/11
  • Last Seen:  

On 2/10/2017 at 9:23 PM, Sryx said:

Thor Patcher can.

1. Generate encrypted thor using GRF Editor 

2. Patch it using Thor Patcher

 Is there a git or svn for thor where i can get the lastest build ? cause i seen a few but they all different modified version. Not sure which is the best and most stable to use. thanks in advance

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  520
  • Reputation:   64
  • Joined:  11/19/11
  • Last Seen:  

3 minutes ago, mirabell said:

 Is there a git or svn for thor where i can get the lastest build ? cause i seen a few but they all different modified version. Not sure which is the best and most stable to use. thanks in advance

 

1. GRF Editor 

 

2. Thor Patcher 

http://thor.aeomin.net/

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  225
  • Reputation:   39
  • Joined:  01/20/12
  • Last Seen:  

Got an error while reading maps after encrypting GRF

 

[Status]: Loading maps (using GRF files)...
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'
[Warning]: map_gat2cell: unrecognized gat type '-842150451'

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  12/14/15
  • Last Seen:  

Cool!

Thanks, I may try it later.

Edited by letschange
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  11/15/15
  • Last Seen:  

Hi, just wondering if cps.dll can add more than 1 grf?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  135
  • Reputation:   4
  • Joined:  07/29/17
  • Last Seen:  

Hi Sir @Haziel

Please help me after i encrypt my entire GRF including cps.dll  i encountered an errors on my client. Suddenly it can't read my lua files inside GRF. What supposed to be the problem?

Sorry i don't have screenshots i forgot to make one.

Link to comment
Share on other sites

  • 0

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

how do i proceed when i got the grf already encrypted, the dll works BUT when i convert the grf to a thor patch and it patches everything but the grf is unencrypted, i tried adding the whole folder to the thor patch (the cps.dll and grf) and also single file (the grf) and in both ways it unencrypts the grf altho everything works well

little help would be much appreciated!

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   596
  • Joined:  11/25/11
  • Last Seen:  

14 minutes ago, CaptnRex said:

how do i proceed when i got the grf already encrypted, the dll works BUT when i convert the grf to a thor patch and it patches everything but the grf is unencrypted, i tried adding the whole folder to the thor patch (the cps.dll and grf) and also single file (the grf) and in both ways it unencrypts the grf altho everything works well

little help would be much appreciated!

Are you sure it`s getting unencrypted? It will always show the files, but they will be unreadable.
Try extracting them from the .thor file and checking if you can open them with normal softwares.

Link to comment
Share on other sites

  • 0

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

what im doing at the moment is sending a thor patch to delete the current grf file then a following thor patch downloads the grf among some bgm and the dll, i opened the game but upon opening the grf with grf factory i can see the files, i did not try to extract them tho, i noticed it wasnt encrypted because the file didnt have a padlock in the icon anymore, it shows when its encrypted in win7

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   596
  • Joined:  11/25/11
  • Last Seen:  

It fades when it turns into a thor, but extract it, you probably won't be able to use it.
Also, you can just encrypt the files, don't need to encrypt the entire GRF. Encryption is per file.

 

Rewrote the guide and added a little bit of info, it won't work on Clients before 2012-04-10.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  10/08/15
  • Last Seen:  

In the DLL NAME field in grf editor, I renamed the cps.dll to 123.dll. Do I also need to diff my client to read renamed .dll?  Or theres nothing to do with diffing?

Im using NEMO. Thanks

Edited by Haziel
Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   596
  • Joined:  11/25/11
  • Last Seen:  

When you output the file, the GRF Editor will generate a diffed client already on the output folder.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   0
  • Joined:  09/30/14
  • Last Seen:  

can i ask something is there a way to protect the files that is for sale, in scenario like if a client bought your custom sprites, they can distribute it already because they already have the files, 

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   596
  • Joined:  11/25/11
  • Last Seen:  

4 hours ago, piavon said:

can i ask something is there a way to protect the files that is for sale, in scenario like if a client bought your custom sprites, they can distribute it already because they already have the files, 

Only if you convince him to use encrypted files without knowing the password, which is kinda also avoidable since the DLL will work on any client with the same name.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   0
  • Joined:  09/30/14
  • Last Seen:  

14 hours ago, Haziel said:

Only if you convince him to use encrypted files without knowing the password, which is kinda also avoidable since the DLL will work on any client with the same name.

thanks for the reply, i think its really hard to protect your creation especially if youre going to sell them

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   0
  • Joined:  01/11/18
  • Last Seen:  

Hi @haziel  I encrypted the GRF files and generated the ragexe with a dll file. But when I ran the ragexe, it is unable to ready GRF files. Could you show me how to fix it? I'm using client 20180530bRagexeRe

Thx @Haziel I switched to client 20180620 and it's working fine now. ?

Edited by Gorder
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  308
  • Reputation:   24
  • Joined:  11/26/12
  • Last Seen:  

work perfect yey! ^_^ thanks to the developer and long live~~~

Edited by chatterboy
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  308
  • Reputation:   24
  • Joined:  11/26/12
  • Last Seen:  

On 8/8/2018 at 8:09 AM, Gorder said:

Hi @haziel  I encrypted the GRF files and generated the ragexe with a dll file. But when I ran the ragexe, it is unable to ready GRF files. Could you show me how to fix it? I'm using client 20180530bRagexeRe

Thx @Haziel I switched to client 20180620 and it's working fine now. ?

it works for me just follow his instructions 

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
Answer this question...

×   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...