Crusader Kings III

Crusader Kings III

View Stats:
Untrostlich Jun 8, 2022 @ 11:41pm
Regarding the artifact "Branch of the Tree of Life", can this artifact of yours be used normally?
I'm not sure if it's a problem with my mod or the game code. It seems that the "Branch of the Tree of Life" artifact has not been able to work since version 1.4, and the new "Branch of the Tree of Life" " found through adventure inspiration doesn't give any Attributes available for religion.
This is how it behaves in-game
https://steamcommunity.com/sharedfiles/filedetails/?id=2818774446
You are of a faith....OMG, the script of the game does not add any religious definition to this treasure?? No religion can use this treasure???
< >
Showing 1-5 of 5 comments
Untrostlich Jun 8, 2022 @ 11:46pm 
And I'm pretty sure the issue has nothing to do with the language I'm playing in.

Because even if I change the name of the religion to English, even if I don't organized it, I use the organized religion that has existed since the beginning of the game to find the "Branch of the Tree of Life", and the be founded artifact is still unusable.
Last edited by Untrostlich; Jun 8, 2022 @ 11:47pm
Untrostlich Jun 9, 2022 @ 12:35am 
I tried to find the game files and event script files and the corresponding archives, and found some very strange things...
Such a string of codes can be found in the game's save file

rarity=illustrious
owner=28825
template="branch_general_template"
visuals={
type="pedestal_branch_relic_slavic"
icon="artefact_icons_unique_artifact_holy_branch.dds"
asset="ep1_western_urn_fancy_01_a_entity"
portrait_asset=""
}

quality=100
wealth=100
title=3125
characters={ 28825 16794307 16796503 }
variables={
data={ {
flag="relic_religion"
tick=0
data={
}
}
{
flag="historical_unique_artifact"
tick=0
data={
type=boolean
identity=1
}
}
}
}

Then you can find such a piece of code in a script file that creates an artifact in the game directory

# Create the artifact
create_artifact = {
name = artifact_pedestal_branch_name
description = artifact_pedestal_branch_description
type = pedestal
template = branch_general_template
visuals = pedestal_branch_relic_hinduism
wealth = scope:wealth
quality = scope:quality
history = {
type = created_before_history
}
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
}

scope:newly_created_artifact = {
set_variable = { #This is needed to determine what religion the branch will work for.
name = relic_religion
value = $RELIGION$
}
set_variable = { name = historical_unique_artifact value = yes }
add_scaled_artifact_modifier_piety_effect = yes
add_scaled_artifact_modifier_grandeur_small_effect = yes
if = {
limit = {
OR = {
rarity = famed
rarity = illustrious
}
}
add_2_scaled_artifact_modifier_devotion_effect = yes

}
else = {
add_scaled_artifact_modifier_devotion_effect = yes
}
save_scope_as = epic
}
}

After one-to-one correspondence, a problem can be found.
There is something like this under the file that generates the artifact in the game directory

set_variable = { #This is needed to determine what religion the branch will work for.
name = relic_religion
value = $RELIGION$
}

This piece of code does not seem to take effect when generating the artifact. As a result, the artifact is not assigned a religious ID

Because there is also a restricted religion called "Small Religious Sculpture", the corresponding religious restriction code is valid, and the code of this paraphernalia is like this.

rarity=common
owner=7520
template="small_religious_carving_template"
visuals={
type="pouch"
icon="artifact_pouch.dds"
asset="ep1_indian_pouch_basic_01_a_entity"
portrait_asset=""
}

quality=20
wealth=10
title=4294967295
characters={ 7520 16788638 }
variables={
data={ {
flag="relic_religion"
data={
type=religion
identity=3
}
}

Corresponding to the code of "Branch of the Tree of Life" I sent above, it can be found that the code of "Branch of the Tree of Life" is not assigned any religious ID in the "flag="relic_religion""" field...

So I wonder if everyone has the same problem and how can this problem be solved?
NorPhi Jul 18, 2022 @ 1:12pm 
I've the same problem but I got the artefact from a siege and the history says it was given to my victim.
Use Paradox's forum to report bugs. It's unlikely they'll notice a report posted here.
You seem to know your way around scripting, so the obvious short-term fix would be to make a mod that assigns it to a religion.
PDX-Trinexx  [developer] Jul 18, 2022 @ 6:26pm 
Originally posted by Untrostlich:
I tried to find the game files and event script files and the corresponding archives, and found some very strange things...

Thanks for reporting this to us! I'll forward it to the rest of the team and see if we can get to the bottom of it.
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Jun 8, 2022 @ 11:41pm
Posts: 5