Hello all,
Well, modding for 5+ plus Paradox titles, it's my very first time posting here. I hope I am doing this right.
I have been stuck the whole Sunday updating one of my mods, and I am throwing the towel on it. I even believe it might be a bug in the new version for the use of scripted_illustration.
Here we do, I will try to explain as slow as possible, forgive me if I miss something.
We will be covering the court_positions.gui script, which populates the entire list of Court Positions and their behaviors.
Scenarion: On my mod, in the past version, since Paradox was not adding any background to the position cards, I made use of the scripted_illustration system to add my own on each of them. But now on the 1.12 version, Paradox added a system that adds backgrounds to the position cards, checking their primary skill;
This is okay; it adds a different background on each position, checking the position Primary Skill, but I don't need this; I need to change the position based on the Court Position title. My first idea before bring my old code, was to use the same concept but instead of use the visible = "[CourtPositionType.HasPrimarySkill( 'prowess' )]" I could use some operator to compare with the Court Title, ID or Name... no luck here.. have not found any. So, I decided to return to my old code, simple and I know it works.
So I deleted all this Paradox block and added my simple script to use again the scripted_Illustration system:
And obviously, inside the scripted_illustration folder, I added my script again, which is a long one for Vanila and all positions that I add, but it goes...
I logged in, and BEAUTIFUL.... It is working like a charm... Phew... I
I got so happy, but when I came to check the LOG, my error.log was MULTIPLYING gigantly fast the same error....
[02:26:43][illustrations.cpp:73]: No valid texture found for illustration 'courtposition_view_bg'
[02:26:43][game_icons.cpp:121]: %.*s: icon name was empty
[02:26:43][illustrations.cpp:73]: No valid texture found for illustration 'courtposition_view_bg'
[02:26:43][game_icons.cpp:121]: %.*s: icon name was empty
[02:26:43][illustrations.cpp:73]: No valid texture found for illustration 'courtposition_view_bg'
[02:26:43][game_icons.cpp:121]: %.*s: icon name was empty
[02:26:43][illustrations.cpp:73]: No valid texture found for illustration 'courtposition_view_bg'
[02:26:43][game_icons.cpp:121]: %.*s: icon name was empty
[02:26:43][illustrations.cpp:73]: No valid texture found for illustration 'courtposition_view_bg'
[02:26:43][game_icons.cpp:121]: %.*s: icon name was empty
[02:26:43][illustrations.cpp:73]: No valid texture found for illustration 'courtposition_view_bg'
[02:26:43][game_icons.cpp:121]: %.*s: icon name was empty
[02:26:43][illustrations.cpp:73]: No valid texture found for illustration 'courtposition_view_bg'
[02:26:43][game_icons.cpp:121]: %.*s: icon name was empty
[02:26:43][illustrations.cpp:73]: No valid texture found for illustration 'courtposition_view_bg'
...
This goes replicating fast, it reach 1.000.000 lines in 2 minutes...
Well, I have tried everything, and nothing I know can solve this.
100% of all positions have valid textures, they are perfectly addressed, and don't forget the game works perfectly. They show exactly as they should. But I obviously know that this doesn't mean I am not doing something wrong, I bet I am.
I have no clue why it lists an "icon name" error!?!? My guess here is some bug.
The whole MOD is attached below; if any good soul wants to help me, I am stuck now.
Thanks in advance,
Sorry, my terrible English after 14h modding...
Ketaros
Well, modding for 5+ plus Paradox titles, it's my very first time posting here. I hope I am doing this right.
I have been stuck the whole Sunday updating one of my mods, and I am throwing the towel on it. I even believe it might be a bug in the new version for the use of scripted_illustration.
Here we do, I will try to explain as slow as possible, forgive me if I miss something.
We will be covering the court_positions.gui script, which populates the entire list of Court Positions and their behaviors.
Scenarion: On my mod, in the past version, since Paradox was not adding any background to the position cards, I made use of the scripted_illustration system to add my own on each of them. But now on the 1.12 version, Paradox added a system that adds backgrounds to the position cards, checking their primary skill;
Code:
background = {
visible = "[CourtPositionType.HasNoPrimarySkill]"
texture = "gfx/interface/illustrations/court_position_skill_backgrounds/court_position_skill_noprimary.dds"
alpha = 0.2
spriteType = Corneredtiled
texture_density = 1
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds"
blend_mode = alphamultiply
}
}
background = {
visible = "[CourtPositionType.HasPrimarySkill( 'diplomacy' )]"
texture = "gfx/interface/illustrations/court_position_skill_backgrounds/court_position_skill_diplomacy.dds"
alpha = 0.2
spriteType = Corneredtiled
texture_density = 1
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds"
blend_mode = alphamultiply
}
}
...(Repeathing this structure for all the other 5 skills...)
}
This is okay; it adds a different background on each position, checking the position Primary Skill, but I don't need this; I need to change the position based on the Court Position title. My first idea before bring my old code, was to use the same concept but instead of use the visible = "[CourtPositionType.HasPrimarySkill( 'prowess' )]" I could use some operator to compare with the Court Title, ID or Name... no luck here.. have not found any. So, I decided to return to my old code, simple and I know it works.
So I deleted all this Paradox block and added my simple script to use again the scripted_Illustration system:
Code:
datacontext = "[GetIllustration( 'courtposition_view_bg' )]"
background = {
texture = "[Illustration.GetTexture( Character.MakeScope )]"
spriteType = Corneredtiled
texture_density = 1.48
}
Code:
courtposition_view_bg = {
texture = {
trigger = { has_court_position = court_physician_court_position }
reference = "court_positions/court_physician.dds"
}
texture = {
trigger = { has_court_position = chief_eunuch_court_position }
reference = "court_positions/chief_eunuch.dds"
}
texture = {
trigger = { has_court_position = chief_qadi_court_position }
reference = "court_positions/chief_qadi.dds"
}
... (Replicates this 38 times.. for different positions....)
}
I logged in, and BEAUTIFUL.... It is working like a charm... Phew... I
I got so happy, but when I came to check the LOG, my error.log was MULTIPLYING gigantly fast the same error....
[02:26:43][illustrations.cpp:73]: No valid texture found for illustration 'courtposition_view_bg'
[02:26:43][game_icons.cpp:121]: %.*s: icon name was empty
[02:26:43][illustrations.cpp:73]: No valid texture found for illustration 'courtposition_view_bg'
[02:26:43][game_icons.cpp:121]: %.*s: icon name was empty
[02:26:43][illustrations.cpp:73]: No valid texture found for illustration 'courtposition_view_bg'
[02:26:43][game_icons.cpp:121]: %.*s: icon name was empty
[02:26:43][illustrations.cpp:73]: No valid texture found for illustration 'courtposition_view_bg'
[02:26:43][game_icons.cpp:121]: %.*s: icon name was empty
[02:26:43][illustrations.cpp:73]: No valid texture found for illustration 'courtposition_view_bg'
[02:26:43][game_icons.cpp:121]: %.*s: icon name was empty
[02:26:43][illustrations.cpp:73]: No valid texture found for illustration 'courtposition_view_bg'
[02:26:43][game_icons.cpp:121]: %.*s: icon name was empty
[02:26:43][illustrations.cpp:73]: No valid texture found for illustration 'courtposition_view_bg'
[02:26:43][game_icons.cpp:121]: %.*s: icon name was empty
[02:26:43][illustrations.cpp:73]: No valid texture found for illustration 'courtposition_view_bg'
...
This goes replicating fast, it reach 1.000.000 lines in 2 minutes...
Well, I have tried everything, and nothing I know can solve this.
100% of all positions have valid textures, they are perfectly addressed, and don't forget the game works perfectly. They show exactly as they should. But I obviously know that this doesn't mean I am not doing something wrong, I bet I am.
I have no clue why it lists an "icon name" error!?!? My guess here is some bug.
The whole MOD is attached below; if any good soul wants to help me, I am stuck now.
Thanks in advance,
Sorry, my terrible English after 14h modding...
Ketaros
Attachments
Last edited:
- 1