FFOnline Aka AuraKingdom Quickbms - Nif

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Darkboy140
Posts: 2
Joined: Fri Aug 21, 2015 6:59 am

FFOnline Aka AuraKingdom Quickbms - Nif

Post by Darkboy140 »

Hello I really need help and don't know where to get started, but first let me explain what I'm doing.

I've been extracting models from aura kingdom since closed beta days. Where I made animation videos with the model on a program called MMD.
My process was Extract .pkg with QuickBMS > open Nif file with nifskope export as obj > rigged object to be able to move.

Gaining popularity on my videos I have attain permission form the publisher AeriaGames to be able to edit/mod their client and extract their files for art related use.
"Example: https://www.youtube.com/watch?v=7yGFa-YbZVI"

The issue I'm face with at the moment is quickbms script is outdated, Because even though I can extract the files. For some reason now when I try to open the models in nifskope i would get an error like this """failed to load file header (version 14000005, 20.0.0.5)"" ".
The other issue is the script isn't extracting everything from the game. Though there's no point if I can't view it and extract the model into an object.

So I'm trying to figure out how to go about this, and be able to view the model and extract them again. So here's a sample of the .nif file I am able to view through nifskope(old file) and a new one I just extracted that I can't view.
http://www.mediafire.com/download/9fo7s ... 53/nif.rar

Any help with this would be appericated here is the quickbms script I'm using.


Thanks in advance.!

Code: Select all

# Aeriagames pkg.idx/pkg???.pkg (script 0.1.2)
#   Eden Eternal
#   Kitsu Saga
#   Dragon Slayer
# script for QuickBMS http://quickbms.aluigi.org

comtype unzip_dynamic
getdstring DUMMY 260
getdstring SIGN 32
math PKG_OLD = -1
get FULLSIZE asize
do
    get DUMMY long
    get OFFSET long
    get DUMMY long
    get ZSIZE long
    getdstring DUMMY 0x28
    get SIZE long
    getdstring NAME2 260
    getdstring NAME 260
    get DUMMY long
    get PKG long
    get DUMMY long
    if PKG != PKG_OLD
        string PKG_NAME p= "pkg%03d.pkg" PKG
        open FDSE PKG_NAME 1
        math PKG_OLD = PKG
    endif
    string NAME += NAME2

    goto OFFSET 1
    get TMP1 byte 1
    get TMP2 byte 1
    if TMP1 == 0x88 && TMP2 == 0x1c
        savepos OFFSET 1
        math ZSIZE -= 2
    endif
    clog NAME OFFSET ZSIZE SIZE 1
    savepos CURR
while CURR < FULLSIZE
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by aluigi »

The files are extracted correctly so I guess it's a new Gamebryo version or a customization made by the developers to avoid editing.
Just guessing, hope someone will give you more information.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by aluigi »

It's for sure not related to your problem anyway, I have released the script 0.2:
http://aluigi.org/bms/aeriagames.bms
A8ws
Posts: 17
Joined: Sun Oct 18, 2015 12:04 am

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by A8ws »

Hello,
I used the v.2 script on aura kingdom but unfortunately some models are not extracted correctly showing a massage of failure to open with NifSkope or some textures are damaged/not extracted correctly. Probably this is due to updates but if possible please check the script if it needs changes
Thanks
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by aluigi »

Is it possible maybe that these nif files have been slightly modified by the developers?

I ask because when I made the script I extracted all the content of the game and I checked all the images that were all correct, so it's difficult to think that possible decompression errors affect only that specific type of files and all the others are perfect.

I have also checked the updates and they were just a few so not related to this problem.

*edit*

Do you have a couple of the full names of these wrong nif files?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by aluigi »

I would like to link a new script I have made for downloading the original files directly from the servers of the game:
http://aluigi.org/bms/packver01.bms

How it works:

If you use the script with GameDataFileList.txt, it will generate a new file called GameDataFileList_URL.txt containing all the links for downloading the files of the game. Open it with Notepad++ and you can just click on the links to open them.

If you use the script with the downloaded files, it will decompress them in their original locations reported in the file.

This script allows you to verify if there are differences between the downloaded files and those extracted by my aeriagames.bms script and gives more freedom to get only the original updated files in which you are interested instead of extracting the whole archive.
A8ws
Posts: 17
Joined: Sun Oct 18, 2015 12:04 am

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by A8ws »

Thank you for replying. When you say full name, what exactly do you mean? When i used the v0.2 script to extract the files to a folder the models all had one letter and 3 numbers in their name (e.x. r715)
Some of the models are ok but some give me error.
This is what the error says:
""version 20.3.1.1 (20.3.1.1) is not supported yet""
""failed to load file header (version 14030101, 20.3.1.1)""
"failed to load nif from 'C:/Users/****/Desktop/New folder/ride/model/r960.nif'"
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by aluigi »

Exactly, just that r960.nif

I have downloaded it from http://aurakingdom.patch.aeriagames.com ... 0514173840
Decompressed with packver01.bms

I extracted the same file from the pkg archives of the game (pkg411.pkg) using my aeriagames.bms script and compared it with the downloaded file.

Result: the files are identical at 100%.

So there are no problems from my side, the script works perfectly.
I can't help with 3d files so you should rely on the Gamebryo community or someone who has knowledge about it.

What I can do is moving the topic in the 3d section where it will have more visibility, let me know if that would be better.
A8ws
Posts: 17
Joined: Sun Oct 18, 2015 12:04 am

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by A8ws »

Well once again thanks for replying. Its good to know that there is nothing wrong with the bms. As for contacting with gamebryo i'll leave it for now.
Moving the thread will be good
Thanks

Edit: forgot to say that when i said texture problem i mean that the model is ok but when i add the texture folder and the textutes get attached to the model then the model looks weird
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by aluigi »

A8ws
Posts: 17
Joined: Sun Oct 18, 2015 12:04 am

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by A8ws »

Well i read what the post was saying and after trying to replace the file but nothing changed so i guess something else might be the problem. Hope someone has a solution to this problem
Again thanks for your reply
genzxx
Posts: 4
Joined: Tue Jul 05, 2016 10:27 pm

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by genzxx »

Hi aluigi, your tool is awesome, I can use the script packver01.bms to decompress almost files except .ini files. Here is some .ini files:

Code: Select all

http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_Card.ini?20160602095704
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_CardEnchant.ini?20160602095720
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_CardFight.ini?20160602095740
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_CardSpell.ini?20160602095756
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_CoupleEvent.ini?20160602095840
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_CoupleTitle.ini?20160602095915
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_DiagramGroup.ini?20160602095939
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_DiagramNode.ini?20160602100009
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_Achievement.ini?20160602100027
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_Enchant.ini?20160602100100
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_EquipSet.ini?20160602100202
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_EudemonBattle.ini?20160602100224
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_EudemonBattleBiology.ini?20160602100247
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_EudemonBattleEnchant.ini?20160602100317
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_EudemonBattleMap.ini?20160602100340
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_EudemonBattleMission.ini?20160602100359
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_EudemonBattleSpell.ini?20160602100418
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_Festival.ini?20160602100438
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_Fight.ini?20160602100457
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_ItemCombo.ini?20160602100553
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_LifePlan.ini?20160602100801
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_Node.ini?20160602100843
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_Partner.ini?20160602100859
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_ProduceRank.ini?20160602100914
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_Questions.ini?20160602100933
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_RecommendActivity.ini?20160602100954
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_Title.ini?20160602101135
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_TreasureIndex.ini?20160602101209
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_ItemMallEnchant.ini?20160602101304
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_ItemMall.ini?20160620090057
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_TextIndex.ini?20160624161849
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_Mission.ini?20160624162011
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_Item.ini?20160624162045
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_Dialogue.ini?20160624162225
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_Combine.ini?20160624162339
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_Biology.ini?20160624162356
http://aurakingdom.patch.aeriagames.com/release/20131002145600bz2/data/db/_T_Spell.ini?20160624173123

I don't know how to deobfuscate or decompress .ini files, please help me make the script to do that!

Thank you very much!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by aluigi »

Can you upload some of these files?
genzxx
Posts: 4
Joined: Tue Jul 05, 2016 10:27 pm

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by genzxx »

aluigi wrote:Can you upload some of these files?

Sorry! I don't know what you mean? You can use the links above to get ini files. If you want more files, please check in this GameDataFileList_URL.txt
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by aluigi »

The script tells you what you need to do:

Code: Select all

  Error: ini files are obfuscated and not supported yet, extract them from the pkg files with http://aluigi.org/bms/aeriagames.bms
So... do it :D
genzxx
Posts: 4
Joined: Tue Jul 05, 2016 10:27 pm

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by genzxx »

aluigi wrote:The script tells you what you need to do:

Code: Select all

  Error: ini files are obfuscated and not supported yet, extract them from the pkg files with http://aluigi.org/bms/aeriagames.bms
So... do it :D

I did! I've used the script aeriagames.bms (v0.2.1), but some files cannot extract from pkg (Ex: C_Item.ini, T_Item.ini,....). So I used older version of the script in the first post (v0.1.2), all files extract fine, but look like some files have been encrypted (or something like that...), you can check .ini files in the link below (Ex: C_Item.ini, T_Item.ini,....)

http://www.mediafire.com/download/t7t14 ... 48/data.7z
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by aluigi »

Upload the whole pkg, I want to understand why 0.2.1 doesn't work.
genzxx
Posts: 4
Joined: Tue Jul 05, 2016 10:27 pm

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by genzxx »

aluigi wrote:Upload the whole pkg, I want to understand why 0.2.1 doesn't work.

Never mind, I've tried to extract pkg again, and it works great for now! Maybe I do something wrong in the previous work!

Thank you for your support!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by aluigi »

:D
idextroyer
Posts: 5
Joined: Sat Sep 09, 2017 1:51 am

Re: FFOnline Aka AuraKingdom Quickbms - Nif

Post by idextroyer »

Hello Aluigi. The script 0.2.1 Aeriascript is working fine on all FFOnline or Aura Kingdom versions but there is this Private server that cannot be extracted and give this error

0.7.7
Image
0.8.0
Image

pkg.idx and pkg455.pkg
https://mega.nz/#F!po5xSbbC!V8Leb8YFMz8gLGDYYI5THQ

If possible can I request a seperate script? Thanks
Site: aurakingdom.to