• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

ThePatriot1776

Colonel
53 Badges
Sep 13, 2012
1.116
327
  • Surviving Mars
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Res Publica
  • Cities in Motion
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Rule Britannia
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: Dharma
  • Surviving Mars: First Colony Edition
  • Europa Universalis IV: Golden Century
  • Imperator: Rome
  • Surviving Mars: First Colony Edition
  • Europa Universalis IV: Call to arms event
  • Crusader Kings III
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Crusader Kings II
  • Crusader Kings II: The Republic
  • 500k Club
  • Crusader Kings II: Holy Fury
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Crusader Kings II: Jade Dragon
  • Age of Wonders III
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • War of the Roses
I decided to restart my old mod for Expanded Israel, but making it compatible with CK2+. I ran into a bit of a problem when I added a society. The following screenshot appears only when I have my sub-mod activated.

7BwHi8D.jpg


Here are the two gfx files I made. The first is generalstuff.gfx.

Code:
spriteTypes = {
    spriteType = {
        name = "GFX_religion_icon_strip"
        texturefile = "gfx\\interface\\religion_icon_strip.tga"
        noOfFrames = 56
    }
    spriteType = {
        name = "GFX_religion_icon_strip_small"
        texturefile = "gfx\\interface\\religion_icon_strip_small.tga"
        noOfFrames = 56
    }
    spriteType = {
        name = "GFX_religion_icon_strip_big"
        texturefile = "gfx\\interface\\religion_icon_strip_big.tga"
        noOfFrames = 56
    }
    spriteType = {
        name = "GFX_secret_religion_icon_bg"
        texturefile = "gfx\\interface\\secret_religion_bg.tga"
    }
}

The second is monastic_order_nazarene.gfx.

Code:
spriteTypes = {
 
    spriteType = { #The 4 ranks pictures
        name = "GFX_monastic_order_nazarene_ranks"
        texturefile = "gfx\\interface\\societies\\rank_icons_monastic_order_nazarene.dds"
        noOfFrames = 4
    }
 
    spriteType = { #The rank you are
        name = "GFX_monastic_order_nazarene_ranks_highlight"
        texturefile = "gfx\\interface\\societies\\rank_icons_monastic_order_nazarene_highlight.dds"
        noOfFrames = 4
    }
 
    spriteType = { #The ranks when not available
        name = "GFX_monastic_order_nazarene_ranks_locked"
        texturefile = "gfx\\interface\\societies\\rank_icons_monastic_order_nazarene_locked.dds"
        noOfFrames = 4
    }
    ##### monastic_order_nazarene #####
 
    spriteType = { #the background of the society menu
        name = "GFX_society_main_background_monastic_order_nazarene"
        texturefile = "gfx\\interface\\societies\\society_bg_monastic_order_nazarene.dds"
    }
 
    spriteType = { #the background of the side menu with the members/other societies
        name = "GFX_society_expansion_background_monastic_order_nazarene"
        texturefile = "gfx\\interface\\societies\\society_exp_bg_monastic_order_nazarene.dds"
    }
 
    spriteType = { #icons on the socities list
        name = "GFX_icon_small_monastic_order_nazarene"
        texturefile = "gfx\\interface\\societies\\symbol_small_monastic_order_nazarene.dds"
        noOfFrames = 2
    }
 
    spriteType = { #where the influence of the society is written
        name = "GFX_society_influence_monastic_order_nazarene"
        texturefile = "gfx\\interface\\societies\\society_influence_monastic_order_nazarene.dds"
    }
 
    spriteType = { #circle around members
        name = "GFX_society_portrait_ring_monastic_order_nazarene"
        texturefile = "gfx\\interface\\societies\\portrait_ring_monastic_order_nazarene.dds"
    }
 
    spriteType = { #circle around members
        name = "GFX_society_portrait_ring_small_monastic_order_nazarene"
        texturefile = "gfx\\interface\\societies\\portrait_ring_small_monastic_order_nazarene.dds"
    }
 
    spriteType = { #where your society currency is written
        name = "GFX_society_currency_monastic_order_nazarene"
        texturefile = "gfx\\interface\\societies\\society_currency_monastic_order_nazarene.dds"
    }
 
    spriteType = { #the background for the society event
        name = "GFX_event_window_society_quest_background_monastic_order_nazarene"
        textureFile = "gfx/interface/society_quest/mission_bg_monastic_order_nazarene.dds"
    }
}

Thank you for any help. I appreciate it.
 

Attachments

  • interface_error.jpg
    interface_error.jpg
    1 MB · Views: 3
Last edited:
I am not sure, afaik none of the things you posted should mess up the main menu.
However, have you verified that you have no other files modified? I am specifically thinking of .gui or anything else related to the interface. I think .gfx files do only define graphical stuff, which gets applied in the game through .gui files so I imagine those would be the culprit.
Also, does this only happen with CK2+ enabled, or also when you start your mod on its own?
 
@ThePatriot1776
Did you added a second
Code:
spriteTypes = {
}
block into the file ? If so, you should not. You only have on block per file of this one, but you can add
Code:
spriteType = { blabla }
as much as you want.
To avoid such problems, it is better to add your new stuff into a new dedicated .gfx file (as you did for the society stuff correctly).
 
I am not sure, afaik none of the things you posted should mess up the main menu.
However, have you verified that you have no other files modified? I am specifically thinking of .gui or anything else related to the interface. I think .gfx files do only define graphical stuff, which gets applied in the game through .gui files so I imagine those would be the culprit.
Also, does this only happen with CK2+ enabled, or also when you start your mod on its own?

It also happens with just CK2+ enabled by itself and when I do my own mod separately. I even deleted the new society entirely with the problem still persisting. It's an odd one that's for sure.

@ThePatriot1776
Did you added a second
Code:
spriteTypes = {
}
block into the file ? If so, you should not. You only have on block per file of this one, but you can add
Code:
spriteType = { blabla }
as much as you want.
To avoid such problems, it is better to add your new stuff into a new dedicated .gfx file (as you did for the society stuff correctly).

I only have one sprite types code in each file. Are you suggesting I combine the two gfx files?

EDIT: I am using CK2+'s generalstuff.gfx with a special one for the monastic order.
 
Last edited:
It also happens with just CK2+ enabled by itself and when I do my own mod separately. I even deleted the new society entirely with the problem still persisting. It's an odd one that's for sure.
Usually this kind of issue rises when the game fails to find a graphic file, iether because the graphic isn't here or because the path to find it is wrong. Then the game load a default graphic (or crashes).

I only have one sprite types code in each file. Are you suggesting I combine the two gfx files?

Just taking a closer look, in generalstuff.gfx, these are additions or modifications ? Did you add a religion icon ?

Code:
    spriteType = {
        name = "GFX_secret_religion_icon_bg"
        texturefile = "gfx\\interface\\secret_religion_bg.tga"
    }
This entry lacks a noOfFrames value.
 
Usually this kind of issue rises when the game fails to find a graphic file, iether because the graphic isn't here or because the path to find it is wrong. Then the game load a default graphic (or crashes).



Just taking a closer look, in generalstuff.gfx, these are additions or modifications ? Did you add a religion icon ?

Code:
    spriteType = {
        name = "GFX_secret_religion_icon_bg"
        texturefile = "gfx\\interface\\secret_religion_bg.tga"
    }
This entry lacks a noOfFrames value.

I didn't add any icons. I used the existing icons for Judaism and its heresy.

Thank you for catching the noOfFrames value. I'll add that and see if it works. :)

What I'm doing is starting over again with Expanded Israel named as Aliyah (The Return). Since CK2+ did a wonderful job with Christianity I decided to add in the original branch of Christianity that existed from the time of Jesus's ministry till the 6th century. They were the Nazarenes and hated by both Christians and Jews. It's a pretty interesting history surrounding them.

As time goes on, I'll re-use all the original stuff I had for Expanded Israel like the tribal traits and special events for Jewish characters. I doubt I'll go as far as I originally planned with special dynasties for all 12 tribes of Israel, but have the historical Ben David one in there as Exilarch under the Abbasids.
 
I didn't add any icons. I used the existing icons for Judaism and its heresy.

Thank you for catching the noOfFrames value. I'll add that and see if it works. :)
So, did you need to change anything in the generalstuff.gfx file ? I am a bit confused.