Dragon Age: Inquisition Modding Tools

All about modding tools for Dragon Age: Inquisition
It is currently Thu Jul 20, 2017 4:21 pm

All times are UTC



Welcome
Welcome to the Dragon Age Modding tools forum

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!


Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Tutorial: HEX editing in "EBX" files
PostPosted: Sat Dec 27, 2014 11:31 am 
Offline

Joined: Wed Dec 17, 2014 9:50 am
Posts: 7
Has thanked: 1 time
Have thanks: 27 time
Hi,

this is a very basic tutorial for beginners who want to start editing HEX values in "EBX" files and import them back into the game. I will use an example by creating a custom patch, which changes the 1 gold respec amulet in Haven/Skyhold from a single-purchase to infinite stock.

This tutorial uses:
- "HxD", which is a freeware Hex Editor. Available here: http://mh-nexus.de/en/downloads.php
- Ehamloptiran's research tool, since we want to export and import "EBX" files. Available here: post849.html#p849

Step 1: Locate the "EBX" file

Now, we want to edit the vendor / store which sells the respec amulet. Most of the stores are located in da3 > equipment > stores. The one we are looking for is called "store_respec", the name is pretty much self-explanatory.

Image

Double click on "store_respec", and a preview window will open. Hit "Debug" on the top menu and choose "Export EBX", which allows you to save the "EBX" file. Don't close the preview window yet, we still need it.

Image

You can also use the DAI Tools to export "EBX" files, but for now only Eham's research tool allows importing back into the game.

Step 2: Using the preview to locate offsets

Now, we want to locate the offset which determines the available stock of the respec amulet. By looking into the preview, you can see that the first part belongs to the item asset "equip_acc_amulet_respect_cheap" - the respec amulet which costs 1 gold. Further below you can locate the offset, which stores the value about the available stock.

Image

In our case, this will be the line:
Code:
<NumberInStock Offset="0x00000574" Type="DAI_Int">1</NumberInStock>

As you can see the value of "NumberInStock" is 1, it means after buying it once the respec amulet is out of stock and won't be purchasable anymore. You can also see, that the offset referrs to 0x00000574 - this is the adress where the value can be edited in the HEX editor.

Step 3: Open the exported "EBX"-file with your HEX-editor.

You can use any HEX editor you wish, but I will be using HxD for screenshots in this tutorial.
We now know that we need to look for the adress "00000574" with the hex editor, in order to edit the value.

Image

You can see that the value is saved as "01 00 00 00" (-> NumberInStock "1"), now let's take a look at the value of the expensive amulet with infinite stock.

Image

Code:
<NumberInStock Offset="0x00000598" Type="DAI_Int">-1</NumberInStock>


The value "-1" means it has no given number as a limited stock, so it will be purchasable with infinite stock. Let's take a look at the data at the offset "00000598".

Image

We can simply copy the offset data "FF FF FF FF" (-> NumberInStock "-1") from the expensive amulet and overwrite the offset of the cheap one.

Image

After you're finished with editing, save your "EBX" file. Be aware that the file extension has to be ".ebx" when you save the file.

Step 4: Importing "EBX" files

Go back to your preview window, hit "Debug" again and choose "Import EBX" this time.

Image

Choose your edited "EBX" file and hit OK to import.

Step 5: Confirm changes in the preview

Open the asset again by double-clicking on "store_respec". The value at the offset you edited with your HEX-editor should be updated with the new offset values now. As long as you don't close your preview window you can also compare them side-by-side.

Image

Step 6: Save to test patch and confirm in-game

You can now save the changes to a test-patch and confirm your imported "EBX" settings.

Image

It worked!


Last edited by esCanor on Mon Dec 29, 2014 10:16 am, edited 9 times in total.

Top
 Profile  
 
 
 Post subject: Re: Tutorial: HEX editing in "EBX" files
PostPosted: Sat Dec 27, 2014 11:37 am 
Offline
Site Admin
User avatar

Joined: Fri Dec 05, 2014 3:43 am
Posts: 629
Has thanked: 14 time
Have thanks: 751 time
Awesome. Easy to follow. Thumbs up.


Top
 Profile  
 
 Post subject: Re: Tutorial: HEX editing in "EBX" files
PostPosted: Wed Mar 30, 2016 10:17 pm 
Offline

Joined: Sun Mar 27, 2016 2:28 am
Posts: 14
Has thanked: 3 time
Have thanks: 0 time
esCanor wrote:

Image


what do you call this language?


Top
 Profile  
 
 Post subject: Re: Tutorial: HEX editing in "EBX" files
PostPosted: Wed Mar 30, 2016 10:26 pm 
Offline

Joined: Sun Mar 27, 2016 2:28 am
Posts: 14
Has thanked: 3 time
Have thanks: 0 time
Why did you copy FF FF FF FF? Why not just FF?

The 598 would be just the FF in that column. The second FF is offset 599 and so forth.

I'm confused!


Top
 Profile  
 
 Post subject: Re: Tutorial: HEX editing in "EBX" files
PostPosted: Sun Apr 30, 2017 5:45 am 
Offline

Joined: Sun Apr 30, 2017 5:41 am
Posts: 1
Has thanked: 0 time
Have thanks: 0 time
Use "010 Editor" hex editor instead of HxD:

http://www.sweetscape.com/store/

There's a free trial version, and it interprets each set of 4 bytes (00 00 FF FF) as different types of data in the bottom right corner:

http://i.imgur.com/Ar7cdcF.png

If you know you're looking for a float (120.000) for example, you can just edit the float in that corner, and 010 will set the hex values for you.

(Thanks goes to MokChaoticran over on the NexusMod forums for showing this to me)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred