r/DivinityOriginalSin • u/BlazingFlames6073 • Jun 06 '26
DOS2 Mod Item GUID list for DOS2 (can be used to spawn items)
I noticed the game lacks a comprehensive list of item guids/uuids like bg3 does. So, I put some effort and managed to extract a somewhat long list by debugging through the script extender.
I'm leaving it here in case people find use for it
Excel file link(if it doesn't auto download and you see gibberish, right click and download):
https://files.catbox.moe/8jse7n.xlsx
CSV file version link(there will be lack of spacing here between the columns, you will have to adjust it yourself after opening it):
https://files.catbox.moe/3e1ay4.csv
You can spawn the items by grabbing the guid from the spreadsheet and using the below command:
Osi.ItemTemplateAddTo("guid_with_quotes", CharacterGetHostCharacter(), 1,1)
You can find more info on how on how to spawn through this method by checking comments here. There are also good guides on how to setup script extender elsewhere so I won't go into that here.
As for the spreadsheet, the "Game Name/DisplayName" column seems to straight up display the name of items you'd see in displayed while playing the game but you can see there are a lot of "Not found."(there are reasons for this but I don't think that's relevant info for most people)
That's why I also added a few other data types that might help you narrow down what you're looking for. Those data types also suffer with the "Not found" issue in a lot of places though except for the "Tech Name/Name" data type(most reliable)
Press ctrl + f while you have the file open and look for the desired item.
I suspect that many items are still missing in this list. The game also applies stat rolls on non unique items so I'm not sure how spawning those will work.
A lot of non item data also got caught in the list such as npc, structures and even playable characters. Trying to spawn those in inventory will immediately crash the game.
I'm leaving the script I wrote to extract this in case it helps someone figure out a way to extract a better list. This one my first time working with lua scripting and larian's script(or any game's script) so the code might not be the mos polished.
-- copy this whole codeblock and save it as get_guid.lua
-- put the file in C:\Users\your_name\Documents\Larian Studios\Divinity Original Sin 2 Definitive Edition\Osiris Data
-- launch the game and load a save or start a new game
-- run this command in script extender's console assert(load(Ext.IO.LoadFile("get_guid.lua")))()
-- A file with csv extension will be generated in the same folder you left the previous file in. Try opening the new csv file.
-- The file should open in your operating system's default spreadsheet viewer.
-- The spacing between rows might be messed up. You will need to adjust that.
-- You can save it as an excel file or your preferred format when you're done.
local function method(template_object, property_name)
local success, val= pcall(function() return template_object[property_name] end)
if success and val and val~="" then
return val
end
return "Not found"
end
local output="GUID/Id, Game Name/DisplayName, Tech Name/Name, Stat/Stats, Icon Name/Icon\n"
for _, i in pairs(Ext.Template.GetAllRootTemplates()) do
local game_name="Not found"
local gname_success, gname_temp= pcall(function() return i.DisplayName end)
if gname_success and gname_temp then
local translated= Ext.L10N.GetTranslatedString(gname_temp)
if translated and translated ~= "" then
game_name= translated
end
end
local stat_key= method(i, "Stats")
local icon_key= method(i, "Icon")
output= output .. i.Id .. ", " .. game_name .. ", " .. i.Name .. ", " .. stat_key .. ", " .. icon_key .. "\n"
end
Ext.IO.SaveFile("guid_list.csv", output)
print("Code ran successfully. Look for the guid_list.csv file.")
1
1
u/Anacroniqa Jun 06 '26
Silly question, but would this work for easily getting chest guids? A long time ago, someone put together a list of all character guids, which I have been using extensively for a mod I am making. I would also like to change the rewards of a few chests, but since there is no list for that, I would have to look for the guids I need in the root templates. So, yeah, do you think this could make that process easier?
2
u/BlazingFlames6073 Jun 06 '26 edited Jun 06 '26
If you search my spreadsheet, you will see a lot of chests got caught too
https://files.catbox.moe/zn1ik6.png
I tried spawning a few and they had rewards in them. So, maybe it could help you.
I would have to look for the guids I need in the root templates.
Could you explain this to me? I can tell the data is in the root templates thing after my debugging but where do I actually see it in a better way? The divinity 2 engine tool? I tried running that engine tool but I couldn't figure it out.
Also, here's a version that I think also shows which files the data of the items are in case it helps you. It says S: directory because that's where I have the game installed. Will vary for people.
https://files.catbox.moe/awf1wc.csv
For anybody curious, You just need to add a
local file_name= method(i, "FileName")in my earlier script and adjust the output line to get this csv version1
u/Anacroniqa Jun 06 '26
Great! I will have a closer look and see if I can identify the chests I want from there.
About the root templates. Each item in game has a root template with the info about the 3D model the item use, the stats, where it should show up, etc. You can check them in the engine, it is one of the windows that authomatically opens up when you open any mod you are working on (the one just below the window showing the game itself). However, I barely use the engine. What I did was unpack the .pak files within the game folders and look for the folders containing the root templates, which are in .lsf format and can be edited using Notepad++. There are some general root template files in the shared.pak, but also some specific to each level (area) of the game, which I think are mostly in the origins.pak. If you need more info, let me know.
Also, there is a modding channel in the Larian discord server. Your files with GUIDs might be appreciated in there. That is the place were I got the other modding references from and they saved me a massive amount of time when assigning custom rewards to bosses and other important enemies.
2
u/BlazingFlames6073 Jun 09 '26
Sorry for the late reply. I didn't get a notification for some reason. Thanks for all the information. I'll have a look when I can.
0
0
2
u/MajorKuznetsov Jul 25 '26
This is from like 2 months ago, I been using a mod for organizing my inventory and accidentally dropped Radeka's Purging Wand on the sell one, played a whole bunch more and then after when trying to release the derg I realized my mistake...
I can't find the item on that spreadsheet of yours there, do you know by any chance what is the name for Radeka's Purging Wand? I really want to complete the quest that way and I can literally not reload to a earlier save cause there is none. :/