Sponsor

Quick Jump Full Board List
Forum Home Freedom Dragon Nest(Freedom) How To Fix Mod Packs/Files After The Recent Update

Events Notification - Guild Bulletin Jan 26, 2011 10:02 pm

TOGGLE

FREEDOMPLAYS Official Site


Welcome To cDN Freedom Guild Board

●Account trading or request & advertising threads will be deleted upon sight●
!!!Flaming & insulting replies will get deleted without prior notice if situation gets out of hand!!!
!!!Freedom WILL NOT entertain any drama brought in by non-guildies. Please keep them to yourselves!!!



Latest Update
||
Daidalos Nest & Nightmare Stage||

Future Update

|| Silver Hunter ||




Interact with us by joining our >>QQ Group<< !



 

How To Fix Mod Packs/Files After The Recent Update

Sep 26, 2014 12:07 am
Since i've had quite a lot of people ask me how i have the English patch working in this vid in kdn


After the supposed disabling of mods, figured i'd quickly write up an explanation and small guide on what people need to do allow their mods to work properly again after these recent changes. Credit's go to Sieg and Chocorollos for the info that helped make this work around.

Firstly, as far as why the mods do not work any more, Eyedentity recently introduced a new software to dn where when you start up the client, it will firstly look at all the .pak files in your clients folder and it will compare their sizes. If it finds that any of the .pak files in there are smaller than 450mb , it will not execute them and instead cause the client to crash ( Normally seen with the "Shadder" error). To work around this problem, we need to make our mods (.pak files) larger or equal to the 450mb benchmark.

There are 2 relative options to do this.

1- Use a random file that is greater than 450mb when creating your mod. If for example you are creating a English patch, you'd take the random 450mb file ( that is not of the same type as your mod file that you want to make ( like .txt file and .txt file)) and put it in the same folder as the uistring file. When you compile that English patch, it will be greater than the required 450mb check that dn needs, will not crash your client and will work properly as intended. But this method can be less efficient if you don't know how to make mods and can be a massive pain to share since uploading and downloading at least 450mb worth of data might be annoying to some people (especially if you have bad internet).

2- Increase your mod file's size by filling it with a bunch of NULL's that serve as just extra bytes without altering the contents. This method is much more efficient and "beginner friendly" compared to the above. Credits go to sieg for the main explanation and i'll be covering this method in detail to try to make sure people can fix their mods without any issues. Small warning though, you will be using the command prompt and very minor programming to do this so make sure you follow exactly what is explained below to avoid any issues with your computer.



Step- 1 - trunc.exe



In order to start, we will firstly need to download the trunc.exe function from here:

https://code.google.com/p/trunc/downloads/detail?name=trunc.exe&can=2&q=


What trunc.exe does is it will extended your file size to be what ever size of bytes you desire by adding in NULL characters ( i.e '\0' ) . These NULL characters just serve to increase your files byte size and will have no effect on your mod file ( similar method is used in Linux with the truncate function or in C++ with the SetEndOfFile function).

Once you have downloaded it, do not try to open it since it will briefly open the command prompt then close again. In order for it to work, you need to run it from the command prompt ( also known as cmd).

If you are using windows 7, go to the start button and in the search function type in cmd and pick the first option ( it will be "cmd.exe") then open it.

If you are using Windows 8 or 8.1, go to the search on the right side of your screen and search cmd. You will see it called "Command Prompt". Click it once and it will open.

Do not open the cmd as an administrator. That will not be necessary for this task.

If you are using Mac or any other OS.... ya i can't really help there since i only tested this on windows...sorry....

If you've opened the cmd without any issues, your computer screen should look something like this


Now we will need to put the trunc.exe file that we just downloaded into the same location that we see is displayed in our command prompt.

To do this, simply open up any random file and move to the same location that is displayed in the cmd. I advise using the "Downloads" file since that will be common to most people and will help you follow what i'm doing more easier.



In the above, you will just remove the last part and make it the same as in your cmd. In my case, i'll delete the \Downloads section so that it looks exactly like what's in the cmd before the > character. Then press enter.

If you did everything correctly so far, you'll be in a file that looks something like this



Simply move the trunc.exe file to this file then close the window. Do not touch anything else.

Step- 2 - Changing The File Size

First test to make sure you put everything correctly.

In the Cmd right after the > symbol, type in "trunc"  . Do not put any spaces between > and trunc.

If you did that correctly it should look like this in the cmd



Where "Michael" will be your user account name ( such as jenny, bob, ect).

Before moving on, we will need to make a temporary file on the desktop to put our changed mods. This way if we make a mistake, we can still fix it in a secluded area.

On your Desktop, create a file called "temp" and paste a copy of the original mod file you plan on using there. It should look like this:



Right click on the mod file inside temp and view it's properties. From here we are going to use the trunc function to change the file in this exact location to the size we want to make it.

Since we need at least 450mb, we'll need to set the byte count to to be slightly higher due to internal functions with the.pak file that uses more bytes than we instructed. For now we will simply set the .pak  to roughly 500mb just to be safe. If you are worried about space on your computer, don't be. I'll touch on how to change the amount of space that used on your computer by the mod file without reducing the size of the file later. For now we'll simply use the trunc function to set our mod file to be the desired size.

On the cmd, you can either retype trunc or simply press the up key on your keyboard which will retrieve the last things you typed in.

You will need to put 2 things after the word trunc. First thing will be the exact location of your mod file that you want to change and the second thing will be how many bytes you want to make your file change to such that it looks something like this in your cmd:

>trunc your_file_location byte_size

The spaces will mean the start of a new parameter.

We're going to tell the trunc function to change the mod file to about 500mb. In bytes this is 500 million bytes. We need to put this 500 million bytes as a decimal value such that it is like this in your cmd

500000000

The picture below should hopefully show what i mean



When you press enter after typing the above, you should get a message that says it was successful. Close the properties box of your mod file and open it again. You'll see that your mod file's size has become nearly 500mb ( where some bytes were used for other functions). The image below shows what i mean.



If you are not worried about extra memory consumption on your computer. Then you don't have to worry about the rest of the steps. After this step, your mod will now work with dn when you put it in the same folder as your dnlauncher. This process will trick eyedentity's software to think you are using a 450mb+ file filled with data when you're not and will let your mod work.

If you wish to reduce the size of your mod file or want to share it, keep reading.

Step- 3 - Changing the Size on Disk

Small warning, these next little bits might be a bit harder to do compared to the above. But if you follow exactly what is instructed below then you should be fine.

Since we don't want to have a giant 450mb+ file clogging up our computer, we need to reduce the files size on our disk without changing the size we want identity software to view  of min 450mb. To do this we are going to use the fsutil function and sparese.

fsutil is a default function already on your windows computer so you won't have to download anything.

First close the cmd and reopen it so we have a clean start. After the > type in

>fsutil sparse

This will show us the 4 sparse commands we can use namely being:

1- queryflag
2- queryrange
3-setflag
4-setrange

What sparse is basically gonna do is it will tell the cmd that out of the 500million bytes from our mod file, we only want the computer to use the first X number of those bytes on the disk and not worry about the rest of those bytes.

Before you do anything else, make 2-3 more copies of your 450mb mod file in the temp folder! This is to have a back up of the file incase you make a mistake and be forced to do all the steps all over again.

Now we need to setflag of our mod file, meaning we want to tell the sparse command to ignore everything that is does not see as activated and focus on only our specific file ( easiest way i can say it without going indepth about flags lol..)

Using the same location of our mod file, we will put this after setflag so that in your cmd.

You can double check that the flag is set for our mod by using the queryflag command by pressing up and changing setflag to queryflag. If it says the file is set as sparse, then you can continue. If you did above correctly your cmd will look like this



We now need to setflag of our original mod file ( the one which is the small amount of mb and not the 450mb one). Copy that original mod file and paste it into the temp folder and rename it to x ( for easier use). Then do the exact same as above but this time for x.pak so that in the end your cmd should look like this:




If you've followed everything so far, good job. Now what we are going to do is we want to see what the range of x.pak and our 450mb mod file is and set the 450mb mod file to only use the same amount of data as our x.pak on our disk.

To do this first we need to see what the range is of each of those 2 files.

Press up to scroll back to the mod files location and change setflag ( or queryflag if that's what it is) to queryrange then press enter.

Do this again for the x.pak file and it should end up looking like this in the cmd.



Important note: the Length is in hexadecimal format. Do not worry much about what that means but what i want you to make sure is that the very last number of both the x.pak is NOT a letter ( meaning not one of the following letters being A B C D E F). When i say last number i mean for example in the x.pak the underlined number below

Offset: 0x0     Length: 0x2edae3

If your last number is a letter as stated above, i want you to retype that value ( 0x2edae3 for example) into this link:

http://www.binaryhexconverter.com/hex-to-decimal-converter

And convert it from hex to decimal before continuating. Keep that window open.

If your last number of the x.pak is not a letter, feel free to continue reading.

The next step is for us to set the range of data used on our our 450mb file to be the same as the x.pak.

This format will be like follows:

>fsutil sparse setrange Your_File_Location Offset_Value Length_Value

After your file location, you will retype the length of x.pak first but we will need to increase the last number by 1. In my case since my last number is 3, i will increase that number to 4.

If your last number is a 9, change that 9 to the letter A ( lower case version)  ( since A is the hexadeciaml value of 10).

After typing the x.pak range first put a space then retype the range of the 450mb mod file ( you do not need to change it).

in the end you need to have something that looks like this:


If you had a letter ( either A B C D E F) at the first red line, i want you take that decimal, increase it by 1 and then put it into this link

http://www.binaryhexconverter.com/decimal-to-hex-converter


Then convert the number that was +1'd to hex. So if after converting to decimal you got the number 123456, you will increase than number by 1 to become 123457 and then put this new number in the converter above.

When you have that new hex value, you will put a 0x at the start and type that into the spot where the second green line is in the picture. If for example i take my 123457 example and convert it to hex, it becomes 1E241 . I will then type right where the green line is 0x1E241.

After you finish that, press enter and then reopen the 450mb mod file's properties. If you did everything above correctly the size on disk of the 450mb mod will become very small such as in this picture.



Now when you put this mod file into your clients folder, it will trick eyedentitys software and make it see it as a legit file and will run your mod without any issues.

If your size on disk is either 64kbs, 128kbs or 0 bytes ( or anything that is less than 1 million bytes), that means you made a mistake when setting the range or forgot to add a number/lettter and caused the file to become corrupt. Delete that file and use one of the other copies. Change one of the copies names and to the oringal name ( so for example instead of Resource01-English -copy make it Resource01-English) then repeat all of step 3 again.

If you wish to share your mod, you will now instead of directly uploading it to a site have to compress it first then upload it. The compresset will ignore all the extra NULL bytes and make the final file the same size as the original mod ( so it will pretty much upload a 500mb file as a 3mb file instead of a direct 500mb file). However when the person who downloads your 3mb mod extracts it, they will have 500mb version on their disk size instead of the lowered value since their sparse command is based on each individual machine and not on the file itself. But that much is not a big issue. Simply link them to this thread and tell them to read step 3 if they want to reduce the file size.

Return to the list

Signature

Dragon Nest
NA DN - LvL 60 Ice Witch - RoseofLove
CDN - LvL 80 Elestra - RoseofLove
CDN - LvL 80 Gear Master - LilyofHope
CDN - LvL 80 Light Fury - EnvyEX
CDN - LvL 80 Raven - WrathEX
KDN - Lvl 80 Flurry - 장미Spear

Youtube Channel (RevertibleFate): http://www.youtube.com/user/RevertibleFate

Brave Frontier
Revert ( ID: 2211212567)

Bookmark and share to your friends

Sep 26, 2014 12:08 am
For now i'll leave a copy of the English patch that will work after the changes for kdn and cdn as well as a fixed chat filter for any one who plays in Chinese.
Note, when you extract the files, their size on disk will be 500ish mb. If you want to reduce this value and save some room on your disk follow step 3's instructions above. Remember to remove the mod before updating the client to avoid potential bugs. Also as far as kdn's English patch, it's using the same uistring as the cdn's so some items ( like altheum) will have square boxes on them because i had the chinise versions of those items for an easier time to search in the market place.

1- CDN English Patch

http://www.mediafire.com/download/w99fcup4dzzlnxd/Resource01-Cdn+eng+patch.zip


2- Chat Filter mod

http://www.mediafire.com/download/n8khzuowxrn7lmy/Resource00-ChatFilterDisabler.zip


3- KDN English Patch

i do not plan on updating this since certain English guilds in kdn  have caused unnecessary drama with me in the past and i do not wish to help those guilds. If you would like me to send you a copy of the English patch for kdn that i used in the video above, send me a private message and i'll give you the link.


[ The post was edited by Revertible at Sep 26, 2014 12:50 am ]

Signature

Dragon Nest
NA DN - LvL 60 Ice Witch - RoseofLove
CDN - LvL 80 Elestra - RoseofLove
CDN - LvL 80 Gear Master - LilyofHope
CDN - LvL 80 Light Fury - EnvyEX
CDN - LvL 80 Raven - WrathEX
KDN - Lvl 80 Flurry - 장미Spear

Youtube Channel (RevertibleFate): http://www.youtube.com/user/RevertibleFate

Brave Frontier
Revert ( ID: 2211212567)

MMOsite Special Offer

    Sep 26, 2014 12:08 am
    Reserved.

    Signature

    Dragon Nest
    NA DN - LvL 60 Ice Witch - RoseofLove
    CDN - LvL 80 Elestra - RoseofLove
    CDN - LvL 80 Gear Master - LilyofHope
    CDN - LvL 80 Light Fury - EnvyEX
    CDN - LvL 80 Raven - WrathEX
    KDN - Lvl 80 Flurry - 장미Spear

    Youtube Channel (RevertibleFate): http://www.youtube.com/user/RevertibleFate

    Brave Frontier
    Revert ( ID: 2211212567)
    Sep 26, 2014 12:09 am
    Reserved..

    Signature

    Dragon Nest
    NA DN - LvL 60 Ice Witch - RoseofLove
    CDN - LvL 80 Elestra - RoseofLove
    CDN - LvL 80 Gear Master - LilyofHope
    CDN - LvL 80 Light Fury - EnvyEX
    CDN - LvL 80 Raven - WrathEX
    KDN - Lvl 80 Flurry - 장미Spear

    Youtube Channel (RevertibleFate): http://www.youtube.com/user/RevertibleFate

    Brave Frontier
    Revert ( ID: 2211212567)
    Sep 26, 2014 2:41 am
    dude upload a guide video picture are useless i don't understand
    i have a 560mb file and the game still crash like crazy

    Sep 26, 2014 2:45 am
    what it i use part 2 change size  for some of my other mod like loading screen rite
    can it work/anyway just upload a video dude look hardcore






    CDN - LvL 68 abyss walker - Ikaros1

    Sep 26, 2014 8:42 am
    Nice guide! It will be quite helpful for those who likes using english pak (like me HEHEHE)

    I didn't know about that and patched my kDN (without the mod in the folder, ofc). But then, it messed up with everything from my lencea... Like, no skill tree shows up or even skill icons...

    Is there a way to fix it? Or just re-installing... I hope it's not the latter cause it were taking ages to download it T_T

    MMOsite Special Offer

      Sep 26, 2014 8:07 pm
      Reply 0#  Revertible

      okay already done with STEP 1-2 but the problem is the


      STEP 3: QUERYRANGE



      this is always show when i go QUERY RANGE T.T

      a little help?


      [ The post was edited by Claudiuz at Sep 28, 2014 12:05 am ]

      Signature

      Dragon Nest KOREA!! :3

      TempXianM (Windwalker - Lv. 73) - Currently Leveling
      Darna (Artillery - Lv. 62)
      Ryuza (Ripper - Lv. 70)
      PureSoul (Light Fury - Lv 80) - My Main
      Chibibi (Shooting Star - Lv. 45) - Bored

      Sep 27, 2014 12:39 pm
      Well, now there is an easier way.

      I tested it, works and has no malware: http://forum.mmosite.com/thread/2/49/20140927/Program_to_make_mods_compatible_with_CDNKDN-54268c50da4541413-1.html

      Sep 27, 2014 8:53 pm
      Reply 7#  Claudiuz

      Looks like you're running in windows xp.

      Don't worry much about that format.

      Windows xp's version of sparse is a bit different as that it displays the values in decimal format ( normal numbers) instead of hexadecimal format( the one with the letters). The first number there which is  [0] is the offset which is the same value as 0x0 in my example.

      The 2nd number there which is [500000000] Is the length which is the same value as 0x1dcd6500 in my example.

      All you have to do is the same as above but when you set your range, both numbers will be in decimal format instead of hexadecimal format ( so after the location, you'd put the decimal length +1 of x.pak first then the decimal length of your 500mb mod file second ( which would be the 500 million value))
      As far as the english patch goes, send me a private message on mmosite and i'll send you the link. Might want to remove your email cause not really the safest thing to put on these kind of public websites...

      Signature

      Dragon Nest
      NA DN - LvL 60 Ice Witch - RoseofLove
      CDN - LvL 80 Elestra - RoseofLove
      CDN - LvL 80 Gear Master - LilyofHope
      CDN - LvL 80 Light Fury - EnvyEX
      CDN - LvL 80 Raven - WrathEX
      KDN - Lvl 80 Flurry - 장미Spear

      Youtube Channel (RevertibleFate): http://www.youtube.com/user/RevertibleFate

      Brave Frontier
      Revert ( ID: 2211212567)
      Sep 27, 2014 10:26 pm
      Could have just posted the link for Eng patch. Chocorroles linked it in one of the other threads.
      This one...

      Sep 28, 2014 12:06 am
      Reply 9#  Revertible

      ooohhh thanks about that hahaha

      still my head bleeds of all this DECIMALS Stuff

      Later ill PM you :3

      Signature

      Dragon Nest KOREA!! :3

      TempXianM (Windwalker - Lv. 73) - Currently Leveling
      Darna (Artillery - Lv. 62)
      Ryuza (Ripper - Lv. 70)
      PureSoul (Light Fury - Lv 80) - My Main
      Chibibi (Shooting Star - Lv. 45) - Bored

      MMOsite Special Offer

        Oct 8, 2014 3:55 am
        [b]Reply [url=http://forum.mmosite.com/thread/2/217/20140926/How_To_Fix_Mod_PacksFiles_After_The_Recent_Update-542510c01d0d18613-1.html#p5427b38881e8ad]11#[/url] [i]Claudiuz[/i][/b] [br] [br]I Have The same Problem As Claudiuz Pictures Could Help :3

        Oct 14, 2014 12:03 pm
        ok i do everything like u but when i move the files in my DN folder its going back to normal size mean
        500 000 000 bytes

        check the pictures below
        pic1 everything is done like u sayed
        pic2 size of the file before i move it
        pic3 size after move

        pls help

        http://imgur.com/a/zJVfR#0

        Oct 16, 2014 6:05 pm
        Reply 13#  ri4i

        When you do sparse setrange <file> <size1> <size2>, make sure that you add +1 to size1.

        Signature


        -Dragon Nest-
        [NA] Arshura (Lv. 70 Blade Dancer), lsunagi (Lv. 70 Abyss Walker) in <ALLMIGHTY>
        [CDN] MrQD (Lv. 70 Raven), DarkBring (Lv. 34 Bringer), Irangola (Lv. 20 Piercer) in <FREEDOM>
        Oct 16, 2014 10:10 pm
        [quote]Quote: Originally Posted by [url=http://forum.mmosite.com/member/info/4077624/2]MrQD[/url] at Oct 16, 2014 6:05 pm
        [b]Reply [url=http://forum.mmosite.com/thread/2/217/20140926/How_To_Fix_Mod_PacksFiles_After_The_Recent_Update-542510c01d0d18613-1.html#p543d7392a42ab0]13#[/url] [i]ri4i[/i][/b] [br] [br]When you do [i]sparse setrange <file> <size1> <size2>,[/i] make sure that you add +1 to size1. [url=http://forum.mmosite.com/thread/2/217/20140926/How_To_Fix_Mod_PacksFiles_After_The_Recent_Update-542510c01d0d18613-1.html#p54406b67a18682][STB_STATIC_IMAGE_HOST]images/back.gif[/STB_STATIC_IMAGE_HOST][/url][/quote]
        tryed that way also i didnt saw it when i make the pics but anyway still when i move the mods they are going to the 476mbs

        Oct 28, 2014 2:10 am
        not sure if its me but i cant see your "pictures" after a few
        can you reupload?

        MMOsite Special Offer

          Apr 2, 2015 8:52 pm

          Hey Revertible, by any chance do you have a mod for Dragoon's Weak spot? I tried really hard to find any available mods out there but fail miserably. The one I found has invalid shader error on it.

          In need of dire help here..

          May 17, 2015 7:51 am
          Shader error means you didn't change the mod size correctly.

          Dec 30, 2015 3:21 am
          Reply 1#  Revertible


          Do u perhaps have a mod for all original voice pak for characters?

           

          Quick Reply:How To Fix Mod Packs/Files After The Recent Update

          Smiles
          refresh
          Go Advanced »