.enc question

Results 1 to 12 of 12
  1. #1
    Account Upgraded | Title Enabled! SpeedDevil is offline
    MemberRank
    Jul 2009 Join Date
    BelgiumLocation
    484Posts

    .enc question

    While adding a custom attack skill I would error out on loading until I made some room by deleting some lines in the cabal.enc I didn't need. Now it's shown me there is a limit to how much cabal.enc can contain and I was wondering if anyone of TDP could give me a simple tip if it's hardcoded or not. (Would prefer to avoid wasting my holiday time :D )

    Greetz,
    Speedy

    P.S.: Running on decoded files which are larger in filesize, perhaps that could have an impact?


  2. #2
    ANTI emi is offline
    MemberRank
    Mar 2009 Join Date
    ZHLocation
    1,378Posts

    Re: .enc question

    I am not sure i understand what are you doing.
    After you decrypted enc file to add whatever you want,did you repack it?

  3. #3
    Account Upgraded | Title Enabled! SpeedDevil is offline
    MemberRank
    Jul 2009 Join Date
    BelgiumLocation
    484Posts

    Re: .enc question

    Quote Originally Posted by emi View Post
    I am not sure i understand what are you doing.
    After you decrypted enc file to add whatever you want,did you repack it?
    My client runs with decoded files.

  4. #4
    Account Upgraded | Title Enabled! Amaymon is offline
    MemberRank
    Apr 2011 Join Date
    RomaniaLocation
    252Posts

    Re: .enc question

    This is something that didin`t happens before,could you post some images?

  5. #5
    Account Upgraded | Title Enabled! SpeedDevil is offline
    MemberRank
    Jul 2009 Join Date
    BelgiumLocation
    484Posts

    Re: .enc question

    Quote Originally Posted by Amaymon View Post
    This is something that didin`t happens before,could you post some images?
    Well then,

    Here I removed some stuff I didn't need.



    The client starts and the skill works.



    Here I added some dummy stuff, just a copy & paste from an existing line.



    And then my client crashes at loading.



    Let me know if this is enough info.

    Speedy
    Attached Thumbnails Attached Thumbnails cabal_dec_1.png   cabal_dec_2.png   cabal_dec_3.png   cabal_dec_4.png  

  6. #6
    Account Upgraded | Title Enabled! Amaymon is offline
    MemberRank
    Apr 2011 Join Date
    RomaniaLocation
    252Posts

    Re: .enc question

    Well what can i understand from that,ur cabal.enc run without to be encrypted,or what?

  7. #7
    Account Upgraded | Title Enabled! SpeedDevil is offline
    MemberRank
    Jul 2009 Join Date
    BelgiumLocation
    484Posts

    Re: .enc question

    Yes it does. Makes things easier as I simply modify, save and execute without having to pack everytime.

  8. #8
    Account Upgraded | Title Enabled! Amaymon is offline
    MemberRank
    Apr 2011 Join Date
    RomaniaLocation
    252Posts

    Re: .enc question

    Well i don`t know exactly,but you shouldn`t remove any linies from cabal.enc,you should left them,try another original cabal.enc with your custom dummy stuffs.

  9. #9
    Cya nerds PunkS7yle is offline
    MemberRank
    Feb 2010 Join Date
    1,448Posts

    Re: .enc question

    Have you tried testing it with a client that runs on encryted enc files ? Also I wouldn't do that for a public server if I were you, there are many ways you could exploit in a server by editing few enc lines.

  10. #10
    Account Upgraded | Title Enabled! SpeedDevil is offline
    MemberRank
    Jul 2009 Join Date
    BelgiumLocation
    484Posts

    Re: .enc question

    Quote Originally Posted by PunkS7yle View Post
    Have you tried testing it with a client that runs on encryted enc files ? Also I wouldn't do that for a public server if I were you, there are many ways you could exploit in a server by editing few enc lines.
    I am fully aware you can hack quite a bit but I'm hosting for close and rl friends so it would be sad if one of them started hacking.

    To topic, the lines I deleted were the lines from EP3 or 4 for items to have an aura at +15 as that simply does not work with our server files. If I added only half of the dummy lines it would still run so it was clear it had something to do with filesize.

    Now what I didn't know and consulted my brother about (who modified the exe to run .dec's) is that the client first reads the .enc files and in the first 4 bytes it'll find the filesize if unpacked. Then it reads the .dec and if it's filesize does not match what it read in the .enc it'll error out.

    I really should stop posting questions only to find the answer shortly after :/ (everytime, I search and search for hours, make a post and just a little bit later it hits me xD )

    Apologies,
    Speedy
    Last edited by SpeedDevil; 12-04-11 at 07:46 PM.

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

    Re: .enc question

    Make sure you're not adding duplicate entries. CABAL doesn't like it if you use the same ID for multiple things :P If, however, it truly is a limit applied by a fixed array size, you might possibly be able to edit it. I've never personally tried increasing an array via odbg, before. However, I have a feeling it would cause issues (overlapping memory).

    EDIT: Ah, yes. I came across the same issue when I was first experimenting with loading custom ENC's, back before *Phant0m released his (un)packer. Simply pushing the size into the register works (can't remember which register, though).
    Last edited by Yamachi; 12-04-11 at 07:52 PM.

  12. #12
    Account Upgraded | Title Enabled! SpeedDevil is offline
    MemberRank
    Jul 2009 Join Date
    BelgiumLocation
    484Posts

    Re: .enc question

    I thought that after making a topic for almost no reason, since I found the problem shortly after, I'd post some result. ^^"

    After some mucking about it all worked out nicely. Still wonder about anicodes for skills. I added a skill id=464 but had to add the animation as SKIL2H_067 in the .ech to have an anicode=1201. I seem to be able to work around anicodes but I haven't yet found how they are determined.

    Something along the lines of:
    Sword skills: 1000 + ( XXX x 3 ) where XXX is SKILxH_XXX in the ech
    Magic skills: no clue yet

    But then as expected the anicode for 464 didn't work.

    YouTube - CDev - new skill test

    It's not that great a skill but it's taught me alot. Wasn't easy doing it all in hex, Yamachi's templates sure made it a hell of alot easier, kudos to you sir. Hope my next one will be better. (3D software with animation would rock tho)

    Greetz,
    Speedy



Advertisement