Editing Modding:Working with LSX files

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 7: Line 7:


==== Working with .lsx, or rather .xml files ====
==== Working with .lsx, or rather .xml files ====
Depending on experience level & what your goals are different strategies can be taken to modify the files. For my mod, which is doing sweeping changes I use python. It also helps me to query the data & find what I'm looking for directly instead of trying to look through the same file in multiple locations. The advantage of doing it programmatically is that you can just re-run the script if a patch updates the same nodes you've changed. At the bottom I've included the script I use to generate my mod, python is a bit outside the scope of this tutorial but it should give you a skeleton & the general workflow for how to work with the files. The mod in question adds level 13 to all base classes, this makes it so you can take level 12 in a mod which increases max level without the game crashing when you level up next time. It gives feat on every level, and triples the spell slots/sorcery points/ki points etc on level up.
Generally you shouldn't open up these files & modify them manually, it's much better to do it programmatically, I suggest python because it's really easy to get started. Not only will it save you a ton of time in the long run, but whenever a new patch hits you can just regenerate your mod by re-running the script & it will respect whatever changes hit in the patch. At the bottom I've included the script I use to generate my mod, python is a bit outside the scope of this tutorial but it should give you a skeleton & the general workflow for how to work with the files. The mod in question adds level 13 to all base classes, this makes it so you can take level 12 in a mod which increases max level without the game crashing when you level up next time. It gives feat on every level, and triples the spell slots/sorcery points/ki points etc on level up.


==== How does BG3 load resources? ====
==== How does BG3 load resources? ====
Contributions are considered to be licensed under CC BY-NC-SA 4.0 and (where possible) CC BY-SA 4.0. See Copyrights for details. Per our Content Rules, you are promising that any new text you add was written by yourself, or is available under a license that permits its inclusion in bg3.wiki. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)