Question Regarding Adding Purchasable DLC Lore to Stores
Posted: Tue Jul 07, 2026 12:11 pm
Hi! Not sure if this is the right place to post this but here goes:
So I've been making a personal addon to add more purchasable lore to shops. Thus far, I've been using Forbidden Cults as a guide, as they added the Fay Willows books to both the Elvala and ZIgur libraries. This has resulted in me managing to add the lore I wanted purchasable to the Last Hope library, including Forbidden Cults lore like the "Mightier than Gods" and "Researcher Dremnot's Demystification of the Gods" series.
The problem arises when I want to do the same for the Kroshkkur library (in fact, my original intention was to only have the said two series I mentioned above available here and not anywhere else). I am simply unable to do so, as I'm guessing I'm not referencing the correct 'define_as' values of the said lore. I've already added the new lore objects to the "/data-cults/zones/town-kroshkkur/objects.lua" but the Kroshkkur library simply refuses to recognize the 'define_as' value I've given it.
For reference:
In my kroshkkur.lua file which is to be loaded when data.file == "/data-cults/zones/town-kroshkkur/objects.lua" via Entity:loadList, I have the following:
for i = 4, 9 do
local l = mod.class.interface.PartyLore.lore_defs["cults-godslayers-"..i]
newEntity{ base = "BASE_LORE",
define_as = "GODSLAYER_RESEARCH"..i,
subtype = "kroshkkur", unique=true, no_unique_lore=true, not_in_stores=false,
name = l.name, lore="cults-godslayers-"..i,
rarity = false,
encumberance = 0,
cost = 90,
}
end
In my addons_cult.lua which is to be loaded when data.file == "/data-cults/general/stores/cults.lua", also via Entity:loadList:
if loading_list.KROSHKKUR_LIBRARY then
table.insert(loading_list.KROSHKKUR_LIBRARY.store.fixed, {id=true, "GODSLAYER_RESEARCH4"})
table.insert(loading_list.KROSHKKUR_LIBRARY.store.fixed, {id=true, "GODSLAYER_RESEARCH5"})
table.insert(loading_list.KROSHKKUR_LIBRARY.store.fixed, {id=true, "GODSLAYER_RESEARCH6"})
table.insert(loading_list.KROSHKKUR_LIBRARY.store.fixed, {id=true, "GODSLAYER_RESEARCH7"})
table.insert(loading_list.KROSHKKUR_LIBRARY.store.fixed, {id=true, "GODSLAYER_RESEARCH8"})
table.insert(loading_list.KROSHKKUR_LIBRARY.store.fixed, {id=true, "GODSLAYER_RESEARCH9"})
end
This does not work for the Kroshkkur library and results in the library being filled with random objects drawn from, I believe, /data/general/objects/objects-maj-eyal.lua.
Can someone more knowledgeable in the ways of modding ToME4 point out exactly what I seem to be getting wrong?
Thanks a ton in advance!
So I've been making a personal addon to add more purchasable lore to shops. Thus far, I've been using Forbidden Cults as a guide, as they added the Fay Willows books to both the Elvala and ZIgur libraries. This has resulted in me managing to add the lore I wanted purchasable to the Last Hope library, including Forbidden Cults lore like the "Mightier than Gods" and "Researcher Dremnot's Demystification of the Gods" series.
The problem arises when I want to do the same for the Kroshkkur library (in fact, my original intention was to only have the said two series I mentioned above available here and not anywhere else). I am simply unable to do so, as I'm guessing I'm not referencing the correct 'define_as' values of the said lore. I've already added the new lore objects to the "/data-cults/zones/town-kroshkkur/objects.lua" but the Kroshkkur library simply refuses to recognize the 'define_as' value I've given it.
For reference:
In my kroshkkur.lua file which is to be loaded when data.file == "/data-cults/zones/town-kroshkkur/objects.lua" via Entity:loadList, I have the following:
for i = 4, 9 do
local l = mod.class.interface.PartyLore.lore_defs["cults-godslayers-"..i]
newEntity{ base = "BASE_LORE",
define_as = "GODSLAYER_RESEARCH"..i,
subtype = "kroshkkur", unique=true, no_unique_lore=true, not_in_stores=false,
name = l.name, lore="cults-godslayers-"..i,
rarity = false,
encumberance = 0,
cost = 90,
}
end
In my addons_cult.lua which is to be loaded when data.file == "/data-cults/general/stores/cults.lua", also via Entity:loadList:
if loading_list.KROSHKKUR_LIBRARY then
table.insert(loading_list.KROSHKKUR_LIBRARY.store.fixed, {id=true, "GODSLAYER_RESEARCH4"})
table.insert(loading_list.KROSHKKUR_LIBRARY.store.fixed, {id=true, "GODSLAYER_RESEARCH5"})
table.insert(loading_list.KROSHKKUR_LIBRARY.store.fixed, {id=true, "GODSLAYER_RESEARCH6"})
table.insert(loading_list.KROSHKKUR_LIBRARY.store.fixed, {id=true, "GODSLAYER_RESEARCH7"})
table.insert(loading_list.KROSHKKUR_LIBRARY.store.fixed, {id=true, "GODSLAYER_RESEARCH8"})
table.insert(loading_list.KROSHKKUR_LIBRARY.store.fixed, {id=true, "GODSLAYER_RESEARCH9"})
end
This does not work for the Kroshkkur library and results in the library being filled with random objects drawn from, I believe, /data/general/objects/objects-maj-eyal.lua.
Can someone more knowledgeable in the ways of modding ToME4 point out exactly what I seem to be getting wrong?
Thanks a ton in advance!