Dragon Age: Inquisition
0 of 0

File information

Last updated

Original upload

Created by

Svarty

Uploaded by

svartalfimposter

Virus scan

Safe to use

Tags for this mod

About this mod

YOU choose what any shop sells. Copy the mod for more stores!
Amulet, Armour, Accessory, Crafting, Material, Quest, Ring, Rune, Schematic, Specialization, Valuable, Weapon

Permissions and credits


WHAT IT DOES

  • Provides a menu for the user to select ANY* store
  • Provides a menu for the user to select items to add to the store they selected
  • Adds 5000 of each item selected to the store


HOW TO USE
  • Get DAI Mod Manager. Install this mod in the usual manner
  • Click the mod in the list of mods
  • Click the Configure Button
  • Drag the box edges bigger so all the options fit in your window
  • Select the store you want to change
  • Select upto 30 items you want in the store
  • Click the Save Button
  • Merge as usual
  • Visit the store to find your stock

There are also options for cheaper prices and shop paying you more when you sell things - together these can be used to generate gold.

Want to change more than one store? Copy the mod!

Configurable mods only work with DAI Mod Manager at the moment, not Frosty.



Please report problems you have in the comments tab.

If you want to request new items for the store, you can do that, too (no guarantees). Please don't ask for enormous amounts of stuff all at once as this is incredibly demoralising: Adding GUIDs is a boring process.

Romance and specialisation items seem to crash the game when added to the stock - there is probably a plot flag setting that I'm not familiar with, so these won't be added any time soon.


KNOWN ISSUES
Only the first half of the items show up in the store on some of my characters. 
I don't know what's going on here or how to fix this, please help!


FIXED! Merging twice causes ModManager to throw an error.
You need to restart ModManager each time you want to merge. That's why it's advisable to follow the instructions in the HOW TO SAVE YOUR CHOICES section.

I've solved the first cause of this: The assets needed to be enabled at the start because the previous merge disabled them.

The second issue was that the data remains in memory between merges and the way I detect the first slot in the shop is by putting Arcane Horror Rags (it had to be something) in it. So...
The fix is to leave the rags in the shop and reduce available slots by 1.
You will now be able to merge as much as you like, the shop will have 29 moddable slots and there will always be Arcane Horror Rags in the shop.



HOW TO SAVE YOUR CHOICES
OPTIONAL
If you wish to PERMANENTLY have the same items in the store, you should get Notepad++ and change the menu like this: 
Manually Changing default values:
Get Notepad++ from here: https://notepad-plus-plus.org/download (DO NOT USE NORMAL NOTEPAD, it will break the mod)
Open the daimod in Notepad++

Here is what one element of the menu looks like:
ConfigElementsList.AddEnumElement ( "StoreItem1", "Stock Item  1", typeof(StoreItem),  0 );
The numbers at the end of the line are what you are looking for (highlighted in bright green), here 0 is the default. Change this to the number on the menu that you want to be Stock item 1 on the menu by default. For example, Stock Item 1 above is set to menu item 0 (the first item on the menu).

Remember to File > Save from the menu
Done.


WHICH STORES ARE WHICH?
I think these are correct...
Redcliffe 1 = On left as you enter town
Redcliffe 2 = On right as you enter town
Redcliffe 3 = Dwarven Bookseller
Skyhold = Bonny Sims /  Her stand-in
Mercenary Contract = Skyhold Trade Agreement store
Val 1 = Pierre Marie?
Val 2 = Val Royeaux (expensive)
Val3 = Havel
Val4 = Val Royeaux Schematics Merchant
Val5 = Val Royeaux (weapons and upgrades)
Val6 = Saphi
Val7 = Barnabus
Val8 = codex
Val9 = Val Royeaux (Skyhold customization)
Val special = DERABOAM
Please report incorrect ones, if you find them! 



MY MODS
Svarty's Blade Switcher https://www.nexusmods.com/dragonageinquisition/mods/3360
Svarty's Longsword Grip Appearance Switcher https://www.nexusmods.com/dragonageinquisition/mods/3181
Svarty's Mount Anywhere https://www.nexusmods.com/dragonageinquisition/mods/3115
Svarty's Better Herb Nodes https://www.nexusmods.com/dragonageinquisition/mods/3113
Svarty's Better Metal Nodes https://www.nexusmods.com/dragonageinquisition/mods/3101
Svarty's Configurable Metal https://www.nexusmods.com/dragonageinquisition/mods/3071
Svarty's Configurable Staff II https://www.nexusmods.com/dragonageinquisition/mods/3049
Svarty's Configurable Store II https://www.nexusmods.com/dragonageinquisition/mods/3035
Svarty's Configurable Armour II https://www.nexusmods.com/dragonageinquisition/mods/3018
Multiplayer Armour Enabler https://www.nexusmods.com/dragonageinquisition/mods/2974
Svarty's Configurable Greataxe https://www.nexusmods.com/dragonageinquisition/mods/2788
Svarty's Configurable Armour Upgrades Appearance and Power II https://www.nexusmods.com/dragonageinquisition/mods/2747
Svarty's Configurable Headwear  https://www.nexusmods.com/dragonageinquisition/mods/2604
Svarty's Configurable Store https://www.nexusmods.com/dragonageinquisition/mods/2577
Warden Armour Colour Changes https://www.nexusmods.com/dragonageinquisition/mods/2569
BUG FIX Sturdy and Superior Hunter Coat and Armour https://www.nexusmods.com/dragonageinquisition/mods/2392
Svarty's Configurable Bianca Upgrade Passive Powers https://www.nexusmods.com/dragonageinquisition/mods/2383
Bianca Invisible Upgrades https://www.nexusmods.com/dragonageinquisition/mods/2381
ConversationCameraZoom for Frosty https://www.nexusmods.com/dragonageinquisition/mods/2220
Gaspard No Mask and Other Mods REMADE https://www.nexusmods.com/dragonageinquisition/mods/2184
Svarty's Configurable Armour Upgrades Appearance and Power https://www.nexusmods.com/dragonageinquisition/mods/2180
Svarty's Haven Recipe Store https://www.nexusmods.com/dragonageinquisition/mods/2174
Svarty's Configurable Armour https://www.nexusmods.com/dragonageinquisition/mods/2150
Svarty's Live Like Whomever https://www.nexusmods.com/dragonageinquisition/mods/2156
Svarty's Configurable Axe and Mace https://www.nexusmods.com/dragonageinquisition/mods/2145
Svarty's Configurable Greatsword https://www.nexusmods.com/dragonageinquisition/mods/2109
Svarty's Configurable Dual-Blade Daggers https://www.nexusmods.com/dragonageinquisition/mods/2106
Svarty's Configurable Sword https://www.nexusmods.com/dragonageinquisition/mods/2102
Svarty's Configurable Bianca Upgrades https://www.nexusmods.com/dragonageinquisition/mods/2098
Bianca Brytol Bolter https://www.nexusmods.com/dragonageinquisition/mods/2095
Svarty's Configurable Staff https://www.nexusmods.com/dragonageinquisition/mods/2085
Svarty's Configurable Shield https://www.nexusmods.com/dragonageinquisition/mods/2084
Svarty's Configurable Maul https://www.nexusmods.com/dragonageinquisition/mods/2075
Svarty's Armour Switcher https://www.nexusmods.com/dragonageinquisition/mods/2056
Svarty's Configurable Daggers https://www.nexusmods.com/dragonageinquisition/mods/2050
Svarty's Configurable Bow https://www.nexusmods.com/dragonageinquisition/mods/2046
Svarty's Better Hats II https://www.nexusmods.com/dragonageinquisition/mods/2016
Svarty's Configurable Stormbreak Staff https://www.nexusmods.com/dragonageinquisition/mods/2002
Svarty's Better DLC Armour Recipes II https://www.nexusmods.com/dragonageinquisition/mods/1998
Choose Your Own Avenger https://www.nexusmods.com/dragonageinquisition/mods/1975
Svarty's Better Hat Recipes Plus The One Hat https://www.nexusmods.com/dragonageinquisition/mods/1967
Battlemage Cowl - No Ears REMADE Plus https://www.nexusmods.com/dragonageinquisition/mods/1966
Svarty's Better Weapon Upgrade Recipes https://www.nexusmods.com/dragonageinquisition/mods/1958
Svarty's Better Armour Upgrade Recipes https://www.nexusmods.com/dragonageinquisition/mods/1955
Svarty's Better DLC Armour Recipes https://www.nexusmods.com/dragonageinquisition/mods/1950




CREDITS
This mod would not have happened without esCanor's hex editing tutorial, borglet's inventory tutorial and was made considerably easier thanks to Anhamirak's spreadsheets of GUIDs.
Many thanks to solerajudoca for producing the array entries and menu for over a hundred schematics (v11 onwards). 
Thanks to ViktoriaLanders for producing the GUID list for Valuables (v8 onwards).
I also want to thank Nexusmods.
I want to thank everybody involved with the Mod Manager and Mod Maker projects, especially WarrantyVoider, Galaxy/Eham, Zhentar, Dawnless Sky, Chrono414,
Tirnoney, esCanor, Dheuster and VoidRealms for their tutorials, without which I couldn't have done any DAI modding.
Tirnoney again for extra advice and help.
Thanks to ethicalinfant, plus electricfish and munchyfly on Discord. drag6295 for belief that I could actually do something,
Thanks to aggiedad and sixamsims for reporting and feedback.
Thanks to dhague2cfo and pdporter for testing and feedback.
Thanks to Fenix9514 for testing and diagnosing the multiple-abilities quirk on my configurable weapon mods.
Thanks again to MamaJMarie who discovered the cause of the Greyed Out Button problem.
Thanks to tranquilizerouz for testing the ModMaker v16 DAIMOD versions on their system.
Thanks to Deathern156 for testing Configurable Greataxe, identifying a bug in modding tools that made the mod fail on some systems.
Thanks to myaedanAstrallium for reporting errors and MichaelRRC1997 for testing Configurable Store II.
I do not apologise for my crappy, inefficient scripts - the coding snobs can bite me!

Join DAImodding Discord!
Join DA Community Discord!
Join Frosty Discord!



My beginner's guide to changing slots: https://www.tapatalk.com/groups/daitools/how-to-change-weapon-armour-upgrade-slots-beginner-t1850.html
Learn more about Configurable mods here: https://www.tapatalk.com/groups/daitools/viewtopic.php?f=41&t=1514&p=12249#p12249


Tools used:
Thank you to everybody involved in those projects!

How this mod was made:
  • I edited each store using Frosty -
Added 30 new item slots, put a DIFFERENT item in each slot that were not the same as any of the existing items in stock (this is important because the system would index to the same item instead of creating a new slot - I need new slots so I can swap the items in them later and just ignore the indices).
Set each new slot to amount to 5000. 
  • Wrote the script- 
The script provides a menu and then references the user choices to a huge two-dimensional array of GUIDs (containing all the items the user could pick) which are then written over the 30 new items in the store. 
A quality of life imrpovement is the recipe section which changes the amount in stock to 1 if the item is a recipe.
I noted the offsets of the store buy and sell modifiers using Mod Maker and used Frosty to discover what they should be in hex (I know they're Floats and tried using https://gregstoll.com/~gregstoll/floattohex/ with the endian box ticked, but I got confused).
  • I then combined the ebx with the script using the Config Script Editor tool.
  • Used Notepad++ (Language C#) to clean up the code and set the minpatchversion number to 10 so more people can (try to) use it.
  • Tested it using ModMaker's compiler.

For multiple stores;
I added 30 slots to every store with the CreatureCodex unlocks in them, which aren't in any stores to begin with so they won't clash. I then had to write/copy code to discover the positions of the data in each store, since it's not static when you have lots of stores as it is when you only have to worry about one store. "you use different moves when you're fighting half a dozen people than when you only have to be worried about one."









*doesn't include DLC stores (yet).