Coder Social home page Coder Social logo

refrontier's Introduction

ReFrontier

Tools for *packing, *crypting and editing various Monster Hunter Frontier Online files.

Repo made public as of 07/17/2019 on occasion of the game in question being shutdown in December 2019. Tool was intended for personal use only, so it might be a bit messy to foreign eyes. You're likely looking for ReFrontier itself and can safely ignore the other tools.

Huge thank you to enler for their help!

ReFrontier options:

Unpacking Options:
-log: Write log file (required for repacking)
-cleanUp: Delete simple archives after unpacking
-stageContainer: Unpack file as stage-specific container (for certain stXXX.pac files and maybe others)
-autoStage: Automatically attempt to unpack containers that might be stage-specific (this is very experimental, since there is no reliable way to detect a stage-specific container)
-nonRecursive: Do not unpack recursively (useful for modifying specific files in archives, also check -noDecryption/-ignoreJPK)
-decryptOnly: Decrypt ecd files without unpacking
-noDecryption: Don't decrypt ecd files, no unpacking
-ignoreJPK: Do not decompress JPK files

Packing Options:
-pack: Repack directory (requires log file  - double check file extensions therein and make sure you account for encryption, compression)
-compress [type],[level]: Pack file with jpk [type] at compression [level] (example: -compress 3,10)
-encrypt: Encrypt input file with ecd algorithm

General Options:
-close: Close window after finishing process

JPK type 4 compression test (tested on vanilla mhfdat.bin):

File compressed using type 4 (level 1): 9453891 bytes (64,26 % saved) in 0:04.48
File compressed using type 4 (level 2): 8589271 bytes (67,53 % saved) in 0:06.84
File compressed using type 4 (level 3): 8172392 bytes (69,11 % saved) in 0:08.80
File compressed using type 4 (level 4): 8029894 bytes (69,65 % saved) in 0:10.96
File compressed using type 4 (level 5): 7828552 bytes (70,41 % saved) in 0:12.83
File compressed using type 4 (level 6): 7641173 bytes (71,12 % saved) in 0:14.54
File compressed using type 4 (level 7): 7577461 bytes (71,36 % saved) in 0:16.67
File compressed using type 4 (level 8): 7504253 bytes (71,63 % saved) in 0:18.50
File compressed using type 4 (level 9): 7354422 bytes (72,20 % saved) in 0:20.00
File compressed using type 4 (level 10): 7320949 bytes (72,33 % saved) in 0:21.84
File compressed using type 4 (level 15): 7108825 bytes (73,13 % saved) in 0:30.62
File compressed using type 4 (level 20): 6673194 bytes (74,78 % saved) in 0:36.12
File compressed using type 4 (level 25): 6596009 bytes (75,07 % saved) in 0:43.72
File compressed using type 4 (level 30): 6525732 bytes (75,33 % saved) in 0:50.87
File compressed using type 4 (level 35): 6456423 bytes (75,59 % saved) in 0:58.75
File compressed using type 4 (level 40): 6290231 bytes (76,22 % saved) in 1:03.79
File compressed using type 4 (level 45): 6254283 bytes (76,36 % saved) in 1:10.46
File compressed using type 4 (level 50): 6216416 bytes (76,50 % saved) in 1:17.08
File compressed using type 4 (level 55): 6187694 bytes (76,61 % saved) in 1:23.79
File compressed using type 4 (level 60): 6155631 bytes (76,73 % saved) in 1:32.16
File compressed using type 4 (level 65): 6130964 bytes (76,82 % saved) in 1:38.39
File compressed using type 4 (level 70): 6109653 bytes (76,91 % saved) in 1:46.84
File compressed using type 4 (level 75): 6076931 bytes (77,03 % saved) in 1:52.92
File compressed using type 4 (level 80): 6052472 bytes (77,12 % saved) in 1:59.99
File compressed using type 4 (level 85): 6045761 bytes (77,15 % saved) in 2:01.77
File compressed using type 4 (level 90): 6045761 bytes (77,15 % saved) in 2:02.25
File compressed using type 4 (level 95): 6045761 bytes (77,15 % saved) in 2:04.26
File compressed using type 4 (level 100): 6045761 bytes (77,15 % saved) in 2:05.03
Vanilla file from COG with type 4       : 5363764 bytes (79,72 % saved)

Some more useful tools and projects:

refrontier's People

Contributors

mhvuze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

refrontier's Issues

Project license

I noticed the project is unlicensed. Do you plan to release it under an open source license?

Some helpful information from the GitHub Docs: Licensing a repository

We created choosealicense.com, to help you understand how to license your code. A software license tells others what they can and can't do with your source code, so it's important to make an informed decision.

You're under no obligation to choose a license. However, without a license, the default copyright laws apply, meaning that you retain all rights to your source code and no one may reproduce, distribute, or create derivative works from your work. If you're creating an open source project, we strongly encourage you to include an open source license. The Open Source Guide provides additional guidance on choosing the correct license for your project.

Got this issue when trying to encrypt music

sup

got this error :
System.IndexOutOfRangeException:
LibReFrontier.Crypto.LoadUInt32BE(Byte[] buffer, Int32 offset)
LibReFrontier.Crypto.getRndEcd(Int32 index, UInt32& rnd)
LibReFrontier.Crypto.encEcd(Byte[] buffer, Byte[] bufferMeta)
ReFrontier.Program.Main(String[] args)

i suppose this is not normal.

there is another way to reencrypt music ?

How could i use this to dump monster icons?

I maintain a spreadsheet that lists/categorizes every monster from the MH series. I recently managed to finally dump the spritesheets from MH1, MHF, MH2, MHF2 and MHFU which i couldn't find in their original resolution anywhere online.

But now the only icons that are missing are all the ones from Frontier. I have the game files (from fist.moe) but can't figure out how to use this tool for my purpose. I previously tried a tool i found that was made for MHFU/MHP3rd but that doesn't work on the Frontier files.

How to unpack ecd files

I want to do a Spanish translation for MHF and I really don't know how to unzip the .bin files (ecd I think?) with this program.

I tried to put different lines in the console but this just closed it.

I know practically nothing about decrypting files and if you can help me I would appreciate it.

How to use? (Beginner)

I'm so sorry but I'm new in using source code. Been looking for a whole day how to use Github code but I understand nothing. Did try using Visual Code but also have zero experience and broke it, now my SDK is unrepairable and cannot be detected even after installing all version to 4.0 to 7.0 (+all type of C++/C# extension).

I just wants to extract the monster.pac files for 3D
any help?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.