[Tool]Simple resource converter

Results 1 to 22 of 22
  1. #1
    (oO (||||) (||||) Oo) jM2.me is offline
    MemberRank
    Aug 2009 Join Date
    USA (Fuck Yeah)Location
    2,527Posts

    [Tool]Simple resource converter

    Simple tool for converting files from .bin to .txt and .txt to .bin
    I used AES, AESFile, and MHFile from lunba source.
    I might clean up the code a littlebit and upload the source. Maybe I won't, can't promise.

    Following keys are included
    Code:
    20040308    ""
    20090506    "E76B2413958B00E193A1"
    20101117    "A15H3825287T19G082K8"
    Why?

    • I prefer editing resource files in notepad++ instead of provided tool.
    • Easier to encrypt all files with latest key
    • convenience of not having to open original gui



    How to

    • Select files (.bin or .txt) and drop them onto LunaBinConvert.exe file. All .txt will be converted to .bin and .bin will be converted to .txt
    • You can convert multiple files at once.
    • Text files will be encrypted with latest available key. Make sure you client/server supports latest key provided above.


    Download

    • 06/23/2013 Mediafire
      • Fixed issue where only ~100 could be converted. Turns out there are issues when your application uses 2GB of ram. Also I forgot to get rid of MhFileExt pointer resulting in memory leaks...

    • 06/22/2013 Mediafire
      • First release
    Last edited by jM2.me; 23-06-13 at 06:07 PM.


  2. #2
    I play it straight up, yo pokchop1 is offline
    MemberRank
    May 2012 Join Date
    Emporia, KSLocation
    933Posts

    Re: [Tool]Simple resource converter

    Might want to point out that it'll crash around 100+ files, 50-75 or less seems to work well, but in the cmd window it doesn't display the last few bins being converted.
    Last edited by pokchop1; 23-06-13 at 11:02 AM.

  3. #3
    Account Upgraded | Title Enabled! cyucyu is online now
    MemberRank
    Mar 2007 Join Date
    299Posts

    Re: [Tool]Simple resource converter

    thank you! It is very good!

  4. #4
    Bumiayu Berdebu Fou Gilang is offline
    MemberRank
    Mar 2008 Join Date
    Yogyakarta (ID)Location
    414Posts

    Re: [Tool]Simple resource converter

    can i put about 100+ file at once?
    because the old one can only open like 90-ish files

  5. #5
    I play it straight up, yo pokchop1 is offline
    MemberRank
    May 2012 Join Date
    Emporia, KSLocation
    933Posts

    Re: [Tool]Simple resource converter

    Quote Originally Posted by Fou Gilang View Post
    can i put about 100+ file at once?
    because the old one can only open like 90-ish files
    Same file limit, I'll crash after around 75+

  6. #6
    (oO (||||) (||||) Oo) jM2.me is offline
    MemberRank
    Aug 2009 Join Date
    USA (Fuck Yeah)Location
    2,527Posts

    Re: [Tool]Simple resource converter

    Uploaded a new version. Developers were lazy and by default allocated MEGA memory for each file, which is around 20megabytes (~100 files is ~2GB). Also I forgot to delete MHFileExt pointer which could have probably solved the problem.

  7. #7
    Viserion is online now
    MemberRank
    Jan 2009 Join Date
    1,110Posts

    Re: [Tool]Simple resource converter

    It's possible you release/share your source?
    Thanks, good Tool!

  8. #8
    (oO (||||) (||||) Oo) jM2.me is offline
    MemberRank
    Aug 2009 Join Date
    USA (Fuck Yeah)Location
    2,527Posts

    Re: [Tool]Simple resource converter

    Quote Originally Posted by holchan View Post
    It's possible you release/share your source?
    Thanks, good Tool!
    Copy AESFile.h/cpp, AES folder from [CC]Header. Copy MHFileEx from filepack project.
    Create a new project. Loop through list of argumets. If argument file ends with .bin then call OpenBinFile on MHFileEx then call save SaveAsText. Similar procedure for text to bin. Also in MHFileEx change MEGA to actual data size that is read from file header if it's a bin or file size if text file is being open.

    That's the whole source for you. If you want something specific I can probably do it if I get some spare time.

  9. #9
    I play it straight up, yo pokchop1 is offline
    MemberRank
    May 2012 Join Date
    Emporia, KSLocation
    933Posts

    Re: [Tool]Simple resource converter

    If you don't mind me posting the source after I do all that, then I'll go ahead and do it, something better to do with my time.

  10. #10
    (oO (||||) (||||) Oo) jM2.me is offline
    MemberRank
    Aug 2009 Join Date
    USA (Fuck Yeah)Location
    2,527Posts

    Re: [Tool]Simple resource converter

    Quote Originally Posted by pokchop1 View Post
    If you don't mind me posting the source after I do all that, then I'll go ahead and do it, something better to do with my time.
    Sure. Maybe someone will be kind enough to pick this little project and make it better. For example loading keys from a text/config file. Spreading the task across multiple threads, which might be good for slower dualcore cpus.

  11. #11
    Viserion is online now
    MemberRank
    Jan 2009 Join Date
    1,110Posts

    Re: [Tool]Simple resource converter

    Quote Originally Posted by jM2.me View Post
    Sure. Maybe someone will be kind enough to pick this little project and make it better. For example loading keys from a text/config file. Spreading the task across multiple threads, which might be good for slower dualcore cpus.
    Possible you change your project to Form (like PackingTool/Extract) ?

  12. #12
    (oO (||||) (||||) Oo) jM2.me is offline
    MemberRank
    Aug 2009 Join Date
    USA (Fuck Yeah)Location
    2,527Posts

    Re: [Tool]Simple resource converter

    Quote Originally Posted by holchan View Post
    Possible you change your project to Form (like PackingTool/Extract) ?
    Well the original tool provides a form. In notepad++ you can setup an action to be executed after you save the file. Let's say you edit text file, make changes, save, and then notepad++ executes an action to pack the file and copy it to client folder. You can also setup language templates so that quests scripts and such can be formatted/styled. In notepad++ you can search and replace with ease. With compare plugin you can compare two resource files easier as well. Hell you can even setup Excel script to load table data (items, skills, pets) and again setup an action to save, encrypt, and copy to client folder.

    Just giving some ideas how this can be better if you have an efficient setup/workplace.

    I mentioned notepad++ but you can use any text editor.

  13. #13
    Viserion is online now
    MemberRank
    Jan 2009 Join Date
    1,110Posts

    Re: [Tool]Simple resource converter

    How you encrypt/descrypt with notepad++? (Not sure I understand correctly, I'm use Google Translate.

    But man, what is problem to you release your source? ;P
    Last edited by Viserion; 27-06-13 at 12:29 AM.

  14. #14
    I play it straight up, yo pokchop1 is offline
    MemberRank
    May 2012 Join Date
    Emporia, KSLocation
    933Posts

    Re: [Tool]Simple resource converter

    Quote Originally Posted by holchan View Post
    How you encrypt/descrypt with notepad++? (Not sure I understand correctly, I'm use Google Translate.

    But man, what is problem to you release your source? ;P
    Notepad++ doesn't do the encryption or decryption :) you use LunaBinConverter.exe to convert it to a .txt file, then he uses notepad++ to edit them, then he uses the converter to convert it back to a .bin file. Hope this helps!

  15. #15
    Viserion is online now
    MemberRank
    Jan 2009 Join Date
    1,110Posts

    Re: [Tool]Simple resource converter

    Quote Originally Posted by pokchop1 View Post
    Notepad++ doesn't do the encryption or decryption :) you use LunaBinConverter.exe to convert it to a .txt file, then he uses notepad++ to edit them, then he uses the converter to convert it back to a .bin file. Hope this helps!
    But, with plugin it's possible. Luna use encrypt AES

  16. #16
    (oO (||||) (||||) Oo) jM2.me is offline
    MemberRank
    Aug 2009 Join Date
    USA (Fuck Yeah)Location
    2,527Posts

    Re: [Tool]Simple resource converter

    Quote Originally Posted by holchan View Post
    But, with plugin it's possible. Luna use encrypt AES
    You just edit the text file in notepad++. You do not decrypt or encrypt with notepad++.
    If you can setup a macro/action you can make it seem like notepad++ encrypts and decrypts .bin files.
    In reality it will use LunaBinConverter to do the actual encryption and decryption.

  17. #17
    Member brightluna is offline
    MemberRank
    Mar 2013 Join Date
    55Posts

    Re: [Tool]Simple resource converter

    thanks.. btw.. this help me decrypt cocoloa luna, when i use they resource, my client cant run and crash without a notice, then i search them at they client, aes key of cocoloa luna and same like here, lastest AES key , i open with lastest AES key packingtool, no errors, but cant open the files and just give a text " ÿþ/ " , then i use this,.. and.. its work.. the txt version is in UNICODE, as it japan txt... maybe all source code here only can read ANSI only? it im newbie about computer thingty., sorry about this and sorry my bad english
    Last edited by brightluna; 17-07-13 at 03:29 PM.

  18. #18
    Member arkaradet is offline
    MemberRank
    Aug 2011 Join Date
    ThailandLocation
    53Posts

    Re: [Tool]Simple resource converter

    sorry I can download but I'm can't running your file that error win32

  19. #19
    Novice haoerkisss is offline
    MemberRank
    Aug 2015 Join Date
    1Posts

    Re: [Tool]Simple resource converter

    oh! my! god! you just save my life...THANK YOU!!!!!!

  20. #20
    Apprentice LilOldMe is offline
    MemberRank
    May 2018 Join Date
    16Posts

    Re: [Tool]Simple resource converter

    Is it possible to add like 1 or 2 more AES Keys into this ?

  21. #21
    ʕ•ᴥ•ʔ racegod is offline
    MemberRank
    Feb 2014 Join Date
    399Posts

    Re: [Tool]Simple resource converter

    You can do this in your source easily

  22. #22
    Member iamfafary is offline
    MemberRank
    Nov 2016 Join Date
    Krusty KrabLocation
    69Posts

    Re: [Tool]Simple resource converter

    Good day ! just wanted to know how the cryption work here in luna files.

    is it included with the bin editor when u save it?
    will it automatically encrypted when u save it ? and automatically decrypt when open in bin editor ?
    or we need a tool to decrypt and encrypt ? thank you guys!



Advertisement