Customizing your ENC's compression/decompression method

Page 1 of 3 123 LastLast
Results 1 to 25 of 69
  1. #1
    Banned Yamachi is offline
    BannedRank
    Oct 2006 Join Date
    Jolly EnglandLocation
    3,517Posts

    Customizing your ENC's compression/decompression method

    If you would like to edit the XOR keys used to decompress/compress your custom ENC's to prevent others from using your ENC's on their own server, or their own custom ENC's on your server, this is how you do it:

    1. Open cabalmain.exe in ollydbg
    2. Go to address 0x0042D470. You should see this line: XOR EAX,00000057. This is the 4th XOR key.
    3. Edit the 57 to anything you want, and then change the lines at zpipe.c:123 and zpipe.c:208 to match (ie. change the 0x57 to what you changed it to in cabalmain.exe).
    4. Go to address 0x0042D482. This is your 3rd XOR key.
    5. Repeat step 3, but instead change the lines at zpipe.c:120 and zpipe.c:205.
    6. The 2nd XOR key is at 0x0042D494. You should know what to do with it by now.
    7. The 1st XOR key is at 0x0042D4A5.


    Have fun :)

    P.S. I highly suggest you pack your cabalmain.exe with something like Themida after making this changes, else anyone can easily get your modified XOR keys.


  2. #2
    Account Upgraded | Title Enabled! maxgo1 is offline
    MemberRank
    Aug 2008 Join Date
    EST , PaldiskiLocation
    311Posts

    Re: Customizing your ENC's compression/decompression method

    Awesome! ... you are reading my brains :D , but , however if they place that enc's in Cabal Online , it will work right ? <<--- This is one more thing to have Anti-Copy of Item.enc or other

  3. #3
    Banned Yamachi is offline
    BannedRank
    Oct 2006 Join Date
    Jolly EnglandLocation
    3,517Posts

    Re: Customizing your ENC's compression/decompression method

    Quote Originally Posted by maxgo1 View Post
    Awesome! ... you are reading my brains :D , but , however if they place that enc's in Cabal Online , it will work right ? <<--- This is one more thing to have Anti-Copy of Item.enc or other
    If you're using your own ENC's with your own cabalmain.exe, it will work, but other people won't be able to use your ENC's, nor will they be able to use their own ENC's with your client.

  4. #4
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Customizing your ENC's compression/decompression method

    Thread cleaned. Use the "thanks" button please ;)

  5. #5
    Account Upgraded | Title Enabled! dordort is offline
    MemberRank
    Nov 2004 Join Date
    IsraelLocation
    635Posts

    Re: Customizing your ENC's compression/decompression method

    I tried it, Dont work for me. The client always getting crashed even if Im using the enc's that I compressed with the edited zpipe XOR's. I am sure that I done all of your steps, changed the cabalmain 4 XOR's numbers and did it the same on zpipe.c. The client is always getting crashed, when I try to open it with the original enc's and when I try with the custom XOR enc's. What it can be? Did you tested it, it works for you? =\

    And yes, I tried everything. even tried to set another numbers but the same problem .. =\
    Lol I am sitting on this thing something around 5 hours =.= I cant understand what's wrong.

    And yes, I did compress with the custom XOR keys for all of the ENC files.
    Last edited by dordort; 26-08-09 at 10:01 PM.

  6. #6
    Banned Yamachi is offline
    BannedRank
    Oct 2006 Join Date
    Jolly EnglandLocation
    3,517Posts

    Re: Customizing your ENC's compression/decompression method

    I've tested it and it works perfectly for me. I never post non-working guides here... Make sure you recompressed ALL of the ENC's with the new XOR keys. Also, make sure you didn't get the XOR keys mixed up in cabalmain or zpipe.c. Oh, and you did recompile zpipe.c, right? lol

  7. #7
    Account Upgraded | Title Enabled! dordort is offline
    MemberRank
    Nov 2004 Join Date
    IsraelLocation
    635Posts

    Re: Customizing your ENC's compression/decompression method

    Quote Originally Posted by Yamachi View Post
    I've tested it and it works perfectly for me. I never post non-working guides here... Make sure you recompressed ALL of the ENC's with the new XOR keys. Also, make sure you didn't get the XOR keys mixed up in cabalmain or zpipe.c. Oh, and you did recompile zpipe.c, right? lol
    I recompressed all of the ENC's exept the 2 ENC files in the MAP folder =.= Maybe its because of that? xD I forgot about them hehehehe lol :X

  8. #8
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: Customizing your ENC's compression/decompression method

    I tested it too, it works!

  9. #9
    Account Upgraded | Title Enabled! dordort is offline
    MemberRank
    Nov 2004 Join Date
    IsraelLocation
    635Posts

    Re: Customizing your ENC's compression/decompression method

    I tried again and now I recompressed all of the ENC's for sure, and it doesn't work. Same prob =\ Lol I spend on it something around 10 hours. xD I cant understand what's wrong. Tried everything! by the way if its matter the client is not getting crashed without a message, its showing the "CABAL Online entrocouted an error and needs to close. report to ESTSoft bla bla etc...." immediatly when opening the game and then its closing. I find all of the enc's and I think I did it correctly and I found them all. But anyway, This is the list of the ENC's I have recompressed:

    cabal.enc
    cabal_msg.enc
    caz.enc
    caz_msg.enc
    cont.enc
    cont_msg.enc
    data.enc
    help.enc
    klog.enc
    language.enc
    msg.enc

    Item/item.enc

    Map/extra_obj_msg.enc
    Map/extra_obj.enc

    Maze/maze.enc

    NPC/script.enc
    NPC/script_msg.enc

    Monster/mob.enc
    Monster/mobEx.enc


    Thanks in advance.

    BTW- I did all correct with the edit of zpipe.c and of CabalMain.exe For sure 100 percent... It must be something with the compressing. Maybe I need to change some of the files to another format, like the language.enc that needs to be with Unicode or it will crash. But how I can check this? :X There's too much files to check. Maybe you know which? =\

    Edit: I tested it, and its not belong to the file formats. I tried to decompress the original enc's and then recompress them with the original zpipe and it works. So it must be something with the XOR keys, I think there's a range or something to use because I changed all of the 4 XOR keys to another 2 numbers. Hmm.. maybe you will give me some tested XOR numbers that I can use?
    Last edited by dordort; 27-08-09 at 02:29 AM.

  10. #10
    Account Upgraded | Title Enabled! balmungx30 is offline
    MemberRank
    Sep 2008 Join Date
    cabalnation.comLocation
    233Posts

    Re: Customizing your ENC's compression/decompression method

    Quote Originally Posted by dordort View Post
    I tried again and now I recompressed all of the ENC's for sure, and it doesn't work. Same prob =\ Lol I spend on it something around 10 hours. xD I cant understand what's wrong. Tried everything! by the way if its matter the client is not getting crashed without a message, its showing the "CABAL Online entrocouted an error and needs to close. report to ESTSoft bla bla etc...." immediatly when opening the game and then its closing. I find all of the enc's and I think I did it correctly and I found them all. But anyway, This is the list of the ENC's I have recompressed:

    cabal.enc
    cabal_msg.enc
    caz.enc
    caz_msg.enc
    cont.enc
    cont_msg.enc
    data.enc
    help.enc
    klog.enc
    language.enc
    msg.enc

    Item/item.enc

    Map/extra_obj_msg.enc
    Map/extra_obj.enc

    Maze/maze.enc

    NPC/script.enc
    NPC/script_msg.enc

    Monster/mob.enc
    Monster/mobEx.enc


    Thanks in advance.

    BTW- I did all correct with the edit of zpipe.c and of CabalMain.exe For sure 100 percent... It must be something with the compressing. Maybe I need to change some of the files to another format, like the language.enc that needs to be with Unicode or it will crash. But how I can check this? :X There's too much files to check. Maybe you know which? =\

    Edit: I tested it, and its not belong to the file formats. I tried to decompress the original enc's and then recompress them with the original zpipe and it works. So it must be something with the XOR keys, I think there's a range or something to use because I changed all of the 4 XOR keys to another 2 numbers. Hmm.. maybe you will give me some tested XOR numbers that I can use?

    Hi dordort i will help you now. heres the step

    1. decompress all old ENC's using old zpipe decompression
    2. edit 4 XOR's addresses in cabalmain using ollydbg
    3. after that change the zpipe.c 4 XOR's that you set in your cabal main.
    4. compile it again using gcc method
    5. compress all decompress ENC's using the new zpipe
    6. try to load the game

  11. #11
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: Customizing your ENC's compression/decompression method

    use v22 cabalmain.exe , coudn't make it work in deluxor main.

  12. #12
    Banned Yamachi is offline
    BannedRank
    Oct 2006 Join Date
    Jolly EnglandLocation
    3,517Posts

    Re: Customizing your ENC's compression/decompression method

    Quote Originally Posted by balmungx30 View Post
    Hi dordort i will help you now. heres the step

    1. decompress all old ENC's using old zpipe decompression
    2. edit 4 XOR's addresses in cabalmain using ollydbg
    3. after that change the zpipe.c 4 XOR's that you set in your cabal main.
    4. compile it again using gcc method
    5. compress all decompress ENC's using the new zpipe
    6. try to load the game
    This is exactly what I said in my first post... How nice of you to take exactly what I said and just reword it.

    @dordort: I don't know what you're doing wrong. PM me screenshots of the XOR keys you used in both your client and zpipe.
    Last edited by Yamachi; 27-08-09 at 11:14 AM.

  13. #13
    Account Upgraded | Title Enabled! balmungx30 is offline
    MemberRank
    Sep 2008 Join Date
    cabalnation.comLocation
    233Posts

    Re: Customizing your ENC's compression/decompression method

    Quote Originally Posted by Yamachi View Post
    This is exactly what I said in my first post... How nice of you to take exactly what I said and just reword it.
    i just make it simple sir

  14. #14
    Account Upgraded | Title Enabled! dordort is offline
    MemberRank
    Nov 2004 Join Date
    IsraelLocation
    635Posts

    Re: Customizing your ENC's compression/decompression method

    Quote Originally Posted by balmungx30 View Post
    Hi dordort i will help you now. heres the step

    1. decompress all old ENC's using old zpipe decompression
    2. edit 4 XOR's addresses in cabalmain using ollydbg
    3. after that change the zpipe.c 4 XOR's that you set in your cabal main.
    4. compile it again using gcc method
    5. compress all decompress ENC's using the new zpipe
    6. try to load the game
    As I said, I know how to do it. I just dont know what's wrong, but I did everything fine.

    Edit: Okay I found the problem! That's not matter what cabalmain we use, But: when making the cabalmain to load up to woman9/man9 ECH's to see the SIGMetal Armors, It is crashing =\ With the original XOR's we can load the extra ech's (when changing the names between man9.ech and man8.ech it works, But if not its getting crashed too.) And when changing to the custom XOR's it works fine, But when trying to open it with the extra ECH edit it is always getting crashed, even if Im replacing the man8 man9 names, It still getting crashed. :S This is very big problem, Because anyone wants to see the armors but with the custom XOR's it is dont working. Do you have any idea on how to fix it? =\

    **Important Edit: The problem is belong only to the file man9.ech. Because when deleting it from the client the client works without crash. Its something wrong with that file.
    Last edited by dordort; 27-08-09 at 03:16 PM.

  15. #15
    Banned Yamachi is offline
    BannedRank
    Oct 2006 Join Date
    Jolly EnglandLocation
    3,517Posts

    Re: Customizing your ENC's compression/decompression method

    Like I said, don't worry about SIGMetal yet, as it doesn't work. You don't actually understand what's happening when you change the names of the ech files. Anyways, do me (and everyone else) a favour and don't use huge red text in future -.-

  16. #16
    Account Upgraded | Title Enabled! dordort is offline
    MemberRank
    Nov 2004 Join Date
    IsraelLocation
    635Posts

    Re: Customizing your ENC's compression/decompression method

    Quote Originally Posted by Yamachi View Post
    Like I said, don't worry about SIGMetal yet, as it doesn't work. You don't actually understand what's happening when you change the names of the ech files. Anyways, do me (and everyone else) a favour and don't use huge red text in future -.-
    Hehe OK I wouldn't xD. anyway thank you for your attention and if I will know something new I'll tell you.

    Edit: Yamachi I found the source of the problem with the extra ECH's crashes!!! This is genius! =D When making the cabalmain to load the woman8, man8, woman9, man9 ECH's, the file man9.ech is loading 2 extra enc files from the new version. cont2.enc and cont2_msg.enc. When putting these files in the client it is working without any crashes (For normal XOR's). And I tried to make it work with the Custom XOR's and it works, I just recompressed these files with my custom zpipe (cont2.enc, cont2_msg.enc), putted them in my client Data and it works!!! =]]

    Edit: There's something really weird here. when editing the XOR's keys and making the cabalmain to load the extra ECH's, The client is asking for the new cont2.enc and cont2_msg.enc and when putting these files in the Data folder the game is working properly. But, when using the original XOR's keys and making the client to load the extra ECH's the client is asking for these 2 files, But when using them the client still getting crashed. how I know this? because there's diffrent when these 2 files in the Data folder and when its not. owwwww its very hard to explain :S But for now the best solution is to use a custom XOR's keys with these 2 extra files. (cont2 files).
    Last edited by dordort; 27-08-09 at 04:45 PM.

  17. #17
    Go go go! Cath22 is offline
    MemberRank
    Aug 2008 Join Date
    Cabal-ArenaLocation
    713Posts

    Re: Customizing your ENC's compression/decompression method

    may i ask to confirm, I need to repack and pack the custom enc to make the cabalmain to work?

  18. #18
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Customizing your ENC's compression/decompression method

    Yes you need to re-compress every enc file using the modified zpipe so the modified cabalmain can load them.

    Please change your signature as it's insulting to other members. There is no arrogance or refusal to help but as i have stated many many times here we aren't doing it for you just because you can't figure it out and we aren't re-writing guides that dozens/hundreds of people have followed successfully just because one or two people can't figure it out without someone reading it to them over MSN.

  19. #19
    Go go go! Cath22 is offline
    MemberRank
    Aug 2008 Join Date
    Cabal-ArenaLocation
    713Posts

    Re: Customizing your ENC's compression/decompression method

    ok ive changed it, one thing though why the client crashes when i start it?

  20. #20
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Customizing your ENC's compression/decompression method

    I would guess you got something wrong. Having 2 values that don't match in zpipe and cabalmain would almost certainly cause a crash.

    Did you remember to recompile zpipe after editing it?

  21. #21
    Go go go! Cath22 is offline
    MemberRank
    Aug 2008 Join Date
    Cabal-ArenaLocation
    713Posts

    Re: Customizing your ENC's compression/decompression method

    i have another problem when i decompress the data.enc theres nothing in it the data.txt so when i recompress and load it in the client there is no items. what did i do wrong?

  22. #22
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: Customizing your ENC's compression/decompression method

    well when i decompress data.enc i can read it....

  23. #23
    Valued Member Ledjik is offline
    MemberRank
    Oct 2007 Join Date
    125Posts

    Re: Customizing your ENC's compression/decompression method

    did you try to decompress/decrypt the latest data.enc and item.enc? because i get the same problem as Cath22 mentioned but with old data.enc and item.enc it works.

  24. #24
    Banned Yamachi is offline
    BannedRank
    Oct 2006 Join Date
    Jolly EnglandLocation
    3,517Posts

    Re: Customizing your ENC's compression/decompression method

    Quote Originally Posted by Ledjik View Post
    did you try to decompress/decrypt the latest data.enc and item.enc? because i get the same problem as Cath22 mentioned but with old data.enc and item.enc it works.
    I'm using the latest EU versions of both, and mine work fine.

  25. #25
    Valued Member Ledjik is offline
    MemberRank
    Oct 2007 Join Date
    125Posts

    Re: Customizing your ENC's compression/decompression method

    how did you do it? did you use the same decrypter released by Phantom*? thanks!



Page 1 of 3 123 LastLast

Advertisement