* *

News

Nexon has recently updated Mabinogi to a 64 bit client. This update has broken many mods in memory patchers for the time being. The mod creators are working hard to essentially rebuild all mods from scratch, and this process will take some time. Please be patient, and stay tuned for more updates.

Keep in mind that you must register an account, and be logged in to view any content on this site.

Mabinogi Status

Erinn Timer

Time
Erinn Time 14:58
Local 01:34
Server 01:34
Moongate Prior G16 [ + / - ]
11:11 Tir Chonaill
12:22 Dunbarton
13:33 Emain Macha
14:44 Bangor
14:44 Emain Macha
16:66 Emain Macha

Ceo in days.

Price [ + / - ]
01:12 Emain Macha - Island in South Pathway
01:48 Sen Mag 5th house from West
Rua [ + / - ]
01:39 Resting
02:15 Resting

Themes





Author Topic: Texture Reduction Pack/Tutorial  (Read 5058 times)

0 Members and 1 Guest are viewing this topic.

Offline Rydian

Texture Reduction Pack/Tutorial
« on: February 25, 2012, 02:55:07 am »
Texture Reduction Pack/Tutorial

Reducing the size of the game textures can provide noticeable performance improvements, both in area-loading and in-game.
Seeing as the game has become more resource-hungry over time, this can provide a benefit even for users with decent machines.

Hanging around in Dunby I go from 43 fps with no mod to 57 fps with 16x16 textures.
The pack gives similar or smaller improvements in most area, but has the potential for some graphical issues (noted at the bottom).
It's not exactly a mind-blowing improvement, but hopefully it can help you.




This first pack only compresses the world, leaving characters and monsters and stuff alone.  Use this to try to get faster loading times into maps and such while still being able to fashionogi.
http://rydian.net/downloads/mabinogi/texture_reduction_r287_world.zip

The second pack compresses the world plus characters/clothes/monsters and stuff as well, everything except FX/GUI and faces (to avoid going into the uncanny valley).  Use this pack if you're on the most potato of potatoes.
http://rydian.net/downloads/mabinogi/texture_reduction_r287_all.zip

Otherwise follow the below tutorial to make your own!



  • Rip textures out of the game.

    This is done mostly via MabiUnpack or another such tool.  Download and run it.

    Go to File - Open, and browse to your package folder.
    C:\Nexon\Library\mabinogi\appdata\package
    That's a common install location but it may vary if you installed Mabi elsewhere (or through Steam).
    Find the xxx_full.pack file and open it first.



    Go to Extract - All Files and choose a folder for it to dump them into.  Repeat this process for each XX_to_XX.pack file in that folder (if you have any), ignore language.pack.  You should be dumping the textures to a place that you don't need admin rights to modify, somewhere in your local user account (like your desktop or documents folders), if you're doing this in program files on C:\Nexon\ somewhere you'll likely need to run the various tools and batch files as admin.  It's easier to dump the files elsewhere, then simply copy them to your data folder at the end.



    Once that's done, go take the later data folders and dump them onto the earlier one in order.  So for example if I have 87_full.pack and 87_to_88.pack and 88_to_89.pack, then I'd take 87's folder and dump 87_to_88 ontop of it, then dump 88_to_89 on top of it, and so on.

    Now that you have a dump of the latest game data package, go into it and delete everything except the material folder, since that's where all the game's textures are.  Also go into the material folder and delete the _define folder, since it doesn't have textures.

    And there you have it, a folder with all the game's textures in it.


  • Grab proper tools and set them up.

    We'll need DDS Utilities and a batch creator for it.
    I've prepared a zip containing both of those tools here.
    Put them into their own folder, and put the /material/ folder in there too.


  • Set up and run the batch job to reduce the textures.

    Make a new batch file.  If you don't know how, simply open a notepad document for it, but when you save, name it "run.bat" with the quotes.

    The contents of the batch file are below.
    Quote
    recomp C:\Users\Rydian\Desktop\data\material -s 0.5 -force
    Substitute the folder/path with the one you're using, to point it to the material folder.

    Save it, and run it.  It should make a second batch file, which we need to modify to make sure the textures don't get too small.  As before, edit it with notepad, and we want to modify the second line.  Replace it with this.
    Quote
    set params=-prescale 16 16 -RescaleBox -overwrite
    If you know what you're doing, feel free to change the dimensions to something higher, but not something lower or you risk mabi crashing.

    Then run the second batch file and it should start resizing all the textures, but it might hang up on a few.  If you get this type of error...



    Simply press enter to skip that texture.  You should only have to skip a small number of textures, if it's erroring for every one something might be wrong, check your folder/path settings.

    Once that job is finished, it's time to clean up the textures and stick them back in!  You'll find the resized textures in a new folder called 0.500.


  • Remove problematic textures.

    While it may seem fine to stick the textures back in right away, there's likely to be some corrupt/blank ones, so we want to get rid of those first.  Open the material folder inside the new folder, and then do a search for dds.  This will bring up all the dds files in the material folder.  Then you can simply sort the list by filesize to see which ones are 0KB.  Delete them.

    You may notice that some things look way worse than others... for example eyes look terrible and lots of magic effects are reduced to mere squares.  This is because the game doesn't keep all of it's textures separate, it sometimes uses one texture file for many related graphics (akin to a sprite sheet).  In this case you can either resize those specific graphics down to something larger than 16x16 (for example 128x128), or not resize them at all, personal preference.

    The eye/mouth files are in material\char\face.
    The magic/effect files are in material\fx.
    Various UI-related things are in material\fx\cursor.




  • Put textures into the game.

    Now that you have working resized textures, pack them back into the game.

    The easiest and most suggested method is to put them into the /data/ folder (where other mods go).
    This will generally be your Mabi install folder, then /data/material/.
    If you're using a code patch mod like Abyss/Kanan's, it should work automatically.

    Otherwise (less suggested) you can pack the textures.  If you really want to do this method, then...
    Download Data Packer and put it in your Mabinogi install folder.
    After that, run the data packer and click the Find button, wait a minute for it to finish.
    When it tells you it's done, click the modify button and tell it yes, then wait for confirmation.



    If all went well, you should be playing the game with resized textures now.

Offline CoalChris

  • the One who Ninja'd Johnny Courteous
  • Honored Member
  • ******
  • Posts: 3666
  • 2500011880 credits
  • View Inventory
  • Send Money To CoalChris
  • Total upvotes: 1
  • Tail-tay-an,Tall-tee-an,Teil...I'll just say Tal!
Re: Texture Reduction Pack/Tutorial
« Reply #1 on: February 25, 2012, 06:28:53 am »
Awesome! Finally a guide on how you did that lag-reducing texture mod of most of the game! I would totally try it out if I wasn't about to sleep and if I didn't have a problem logging into the game.
Keep up the good work. ^^

Offline roflala

Re: Texture Reduction Pack/Tutorial
« Reply #2 on: February 27, 2012, 06:48:15 am »
Thumbs up for guides ^^
If EU ever gets somewhat fixed, I'll surely need this
Thank you for the work!

Offline Persona

Re: Texture Reduction Pack/Tutorial
« Reply #3 on: February 27, 2012, 05:30:02 pm »
Sticky in the guides section anyone?

Offline jonny123100

Re: Texture Reduction Pack/Tutorial
« Reply #4 on: February 27, 2012, 06:10:48 pm »
Sticky in the guides section anyone?
LF> Sticky, this guide deserves one.
Kibato of Mari, leader of irresistible guild

Offline Rydian

Re: Texture Reduction Pack/Tutorial
« Reply #5 on: February 29, 2012, 09:12:13 am »
Thanks guys.

Since somebody asked on IMs, the premade pack I linked leaves the eyes and mouths alone so they don't look bad.

Offline Lady Playtime

Re: Texture Reduction Pack/Tutorial
« Reply #6 on: February 29, 2012, 08:17:13 pm »
B> Permission to steal this for my own guide.
Join me on Twitch, I stream!
^ Click to join me ^




Contact me by email: [email protected]. by Skype: Playtime.xel, PM me here, or say my name in a post and I'll find you!
Quote from: Marck
[12:37:42 AM] Marck: ...
[12:37:44 AM] Marck: Adam
[12:37:50 AM] Marck: You can take over MM now, I'm freaking stupid


Offline Lady Playtime

Re: Texture Reduction Pack/Tutorial
« Reply #8 on: March 01, 2012, 03:14:12 pm »
http://mabimods.net/index.php?topic=9140.msg141755#msg141755

Near the bottom, I didn't feel like reformatting everything to fit it.  I'll do it eventually.
Join me on Twitch, I stream!
^ Click to join me ^




Contact me by email: [email protected]. by Skype: Playtime.xel, PM me here, or say my name in a post and I'll find you!
Quote from: Marck
[12:37:42 AM] Marck: ...
[12:37:44 AM] Marck: Adam
[12:37:50 AM] Marck: You can take over MM now, I'm freaking stupid

Offline Resonance

Re: Texture Reduction Pack/Tutorial
« Reply #9 on: June 03, 2012, 02:02:55 pm »
For some reason the ReComp.exe is not downloading for me properly x.x...

It appears in download list but not download folder. It will not allow me to run it from the browser either D:

Or am I just not understanding something here?

Offline Persona

Re: Texture Reduction Pack/Tutorial
« Reply #10 on: June 03, 2012, 02:27:39 pm »
For some reason the ReComp.exe is not downloading for me properly x.x...

It appears in download list but not download folder. It will not allow me to run it from the browser either D:

Or am I just not understanding something here?
If you're using Firefox, go to the download list then right click the program and click Open Containing Folder. It will also go to that specific file in that folder.

Offline Resonance

Re: Texture Reduction Pack/Tutorial
« Reply #11 on: June 03, 2012, 03:21:00 pm »
If you're using Firefox, go to the download list then right click the program and click Open Containing Folder. It will also go to that specific file in that folder.

This doesn't work either, I tried it :P

I am using Nightly (Firefox 15) and tried on IE too but no joy...

Offline Rydian

Re: Texture Reduction Pack/Tutorial
« Reply #12 on: June 04, 2012, 12:39:54 am »
It's a commandline batch program, and some anti-virus programs (like norton/mcafee) are psychotic about anything that could potentially be used to hide a virus and will often delete files they find suspicious without asking you first.

Offline Bluntmanburn

Re: Texture Reduction Pack/Tutorial
« Reply #13 on: June 30, 2013, 01:09:05 am »
any way u can update it to r156 plz and thanks  ;D

Offline ShaggyZE

  • As the great Andrew Martin once said "One is glad to be of service"
  • Godly Member
  • *******
  • Posts: 6049
  • 10000000049 credits
  • View Inventory
  • Send Money To ShaggyZE
  • Total upvotes: 398
  • (Alexina) IGN: Ishaggyzel
Re: Texture Reduction Pack/Tutorial
« Reply #14 on: June 30, 2013, 06:36:01 am »
since its just the \material\ folder it should still work fine, however it would be missing some of the newer content, but the reason for this tutorial is so you can learn to update it on your own; else it kinda defeats the purpose.
"People are stupid; given proper motivation, almost anyone will believe almost anything. Because people are stupid, they will believe a lie because they want to believe it's true, or because they are afraid it might be true. People's heads are full of knowledge, facts, and beliefs, and most of it is false, yet they think it all true. People are stupid; they can only rarely tell the difference between a lie and the truth" ― Wizard's First Rule

Offline Bluntmanburn

Re: Texture Reduction Pack/Tutorial
« Reply #15 on: July 17, 2013, 03:54:25 pm »
lol thanks... but i got my computer fixed so i don't need it...  8) thanks for the help tho...

Offline xyxtyxeven

Re: Texture Reduction Pack/Tutorial
« Reply #16 on: July 21, 2013, 12:41:42 pm »
When I attempt to do the 2nd bat step, which is resizing to make sure the textures arent too small, it keeps giving me "The directory or file cannot be created" followed by "problem with output directory"

Not sure what's going on ;/

Offline Rydian

Re: Texture Reduction Pack/Tutorial
« Reply #17 on: August 26, 2013, 01:55:40 am »
When I attempt to do the 2nd bat step, which is resizing to make sure the textures arent too small, it keeps giving me "The directory or file cannot be created" followed by "problem with output directory"

Not sure what's going on ;/
This is way late, but you should be copying the textures to a place that you don't need admin rights to modify, somewhere in your local user account (like your desktop or documents folders), if you're doing this in program files on C:\Nexon\ somewhere you'll likely need to run the batch files as admin.


Offline Rydian

Re: Texture Reduction Pack/Tutorial
« Reply #19 on: June 16, 2017, 10:22:58 pm »
Okay updated for r253 since Sidhe FlabberGasterblaster is a thing now, also made a 32x version that doesn't look as crappy.

Offline Rothchild

Re: Texture Reduction Pack/Tutorial
« Reply #20 on: February 08, 2018, 04:16:03 pm »
We'll need DDS Utilities and this batch creator for it.  Install the DDS utilities, and extract ReComp.exe (from the second download) somewhere.
Hey Rydian, the mediafire link is broken. I wanted to reduce some of the avon SM textures so my multiclient runs smoothly. Do you happen to have an updated link?

Offline Rydian

Re: Texture Reduction Pack/Tutorial
« Reply #21 on: February 08, 2018, 05:32:38 pm »
Ah okay I updated the first post with a link to the zip with what should be needed, edit the bat as needed.

Offline Rothchild

Re: Texture Reduction Pack/Tutorial
« Reply #22 on: February 08, 2018, 06:18:43 pm »
Ah okay I updated the first post with a link to the zip with what should be needed, edit the bat as needed.
Much appreciated my friend.

Offline Rydian

Re: Texture Reduction Pack/Tutorial
« Reply #23 on: June 24, 2018, 04:52:55 am »
Alright I reworded the guide a bit (second to last step has filter instructions and last step suggests data folder) and changed directory mentions and other wording a bit.  Also added some more 16x shots and updated the pack to r280 to account for the new Avalon maps and raids.

Offline Rydian

Re: Texture Reduction Pack/Tutorial
« Reply #24 on: May 22, 2019, 10:42:04 pm »
Updated the premade pack to r287, just 16x16 but made a version for (hopefully) just the world and then a version that hits characters/clothes/monsters too.