Graphical Culture

For any gfx related subject (flags, portraits, icons, interface...)

Graphical Culture

PostPosted by athousandeyes&one » Thu Apr 13, 2017 00:16

Is it possible to create a custom graphicul culture of for example only black hair and purple eyes or valyrian hair and green eyes? If so it would be much appreciated if someone could point me in the right direction on how to do this.
athousandeyes&one
 
Posts: 3
Joined: Thu Apr 13, 2017 00:08

Re: Graphical Culture

PostPosted by LancelotLoire » Fri Apr 14, 2017 22:37

mod/AGOT/interface/portraits/portraits_valyrian.gfx

Spoiler: show
portraitType = {
name = "PORTRAIT_valyriangfx_male" ###Change this to something like PORTRAIT_customvalyriangfx_male
effectFile = "gfx/FX/portrait.lua"
layer = { # GFX_TYPE:[d|p]INDEX:COLOR_LINK:DONT_REFRESH_IF_VALID:CULTURE_INDEX
"GFX_character_background:p0"
"GFX_valyrian_male_clothes_behind:p3:c0"
"GFX_valyrian_male_headgear_behind:p5:c1"
"GFX_valyrian_male_hair_behind:p1:h:y"
"GFX_western_male_beard_behind:p4:h:y"
"GFX_western_male_base:p2"
"GFX_western_male_neck:d0"
"GFX_western_male_cheeks:d4"
"GFX_western_male_chin:d1"
"GFX_western_male_mouth:d2:o75x49"
"GFX_western_male_nose:d3:o80x65"
"GFX_western_male_eyes:d6:o47x74"
"GFX_western_male_eyes2:d6:e:o74x92:e"

"GFX_character_scars:p7:y"
"GFX_character_reddots:p8"
"GFX_character_boils:p9"
"GFX_character_blinded_eyes:p10"
"GFX_character_eyepatch:p13:y:o32x63"
"GFX_valyrian_male_clothes:p3:c2"
"GFX_western_male_headgear_mid:p5:c3"
"GFX_western_male_ear:d7:o27x54"
"GFX_western_male_beard:p4:h:y"
"GFX_valyrian_male_hair:p1:h:y"
"GFX_character_mask:p12:y:o40x45"
"GFX_western_male_clothes_infront:p3:c4"
"GFX_valyrian_male_headgear:p5:c5"
"GFX_character_imprisoned:p6"
"GFX_player_overlay:p11"
}

hair_color_index = 8
hair_color = { # dark, base, highlight, Golden
{ 115 110 100 } { 255 250 220 } { 255 255 255 }
## RGB colors, { 10 10 10 } { 50 50 50 } { 255 255 255 } is black... I think
}

eye_color_index = 9
eye_color = {
{ 150 30 150 }
{ 118 0 200 }
{ 220 208 255 }
{ 150 30 150 }
{ 118 0 200 }
{ 220 208 255 }
##I believe this value { 34 103 36 } is what Western Valyrians use for green
}

headgear_that_hides_hair = { 10 }
}


I seriously need to add this bit. You'll want to copy the valyrian ones over into a new .gfx file and make the changes in the new file RATHER THAN just change them in the old one. Also there is a need to add an entry or two into graphical_culture, culture and localisation entries. Somebody else can give info for that. Gotta go to work!
User avatar
LancelotLoire
 
Posts: 2633
Joined: Sat Mar 30, 2013 16:32

Re: Graphical Culture

PostPosted by athousandeyes&one » Sat Apr 15, 2017 05:29

Thank you! I admit I have very little idea what I'm doing when it comes to modding this game, most of it is trial and error until I (somewhat) get it right. I'll give it a try tomorrow and see if I can pull it off.
athousandeyes&one
 
Posts: 3
Joined: Thu Apr 13, 2017 00:08

Re: Graphical Culture

PostPosted by LancelotLoire » Sun Apr 16, 2017 00:08

Okay! So looks like nobody replied with the other stuffs haha.

The following is for setting up the graphical cultures. The files for which are located in...
mod/XXXX/common/graphicalculturetypes/

Spoiler: show
Code: Select all
# Valyrian
valyriangfx = {  [b]## customvalyriangfx[/b]
   skin_tone = 0
}


Next up is the culture file.
mod/XXXX/common/cultures/

Spoiler: show
Code: Select all
valyrian = {
   graphical_cultures = { westerngfx } # buildings, portraits, units
   
   high_valyrian = {
      graphical_cultures = { valyriangfx } # portraits
      
      used_for_random = no
      
      color = { 0.15 0.15 0.15 }
      
      male_names = {
         Aerys:400 Aegon:1100 Aegor Aelyx Aemon:400 Aemond Aenar Aenys:200 Aerion:300 Aeryn Aelor Aurion:50 Aethon:50
         Baelor:200 Baelon:300
         Daegar:50 Daemon:400 Daeron:600 Daemion
         Gaemon:200 Haegon Haerys:50
         Jaekar:50 Jaehaerys:400 Jacaerys
         Lucerys Laenor
         Maelys Maegon Maegor:200 Maekar Maerys:50 Matarys Maelor
         Orys:50 Otherys:50
         Qoherys:50
         Rhaegar Rhaegel Rhaekar:50
         Valarr Viserys:400 Vaeron Vaekar:50 Vaermon Vaemond:50 Vaegon Valerion
      }
      female_names = {
         Allyria:50 Alearys:50 Aelinor Alysanne Aerea Alyssa Aelora
         Baela
         Cyeana Cymella:50 Calla      
         Daella:200 Daena Daeoril Daenerys:200 Daenys Daenaera Daenora
         Elaena:200
         Gael
         Helaena Haera
         Jaehaera Jaenara
         Leaysa:50 Laena
         Maera:50 Maega:50 Maegelle
         Naerys Rhae Rhaelle Rhaena:300 Rhaeys:50 Rhaenyra Rhaelinor:50 Rhaenys:300 Rhalla
         Saenrys:50 Syaella:50 Shaera Saera Shaena
         Visenya:200 Vaera:50 Vaella:200 Viserra
      }
      
      from_dynasty_prefix = "of "
      
      # Chance of male children being named after their paternal or maternal grandfather, or their father. Sum must not exceed 100.
      pat_grf_name_chance = 15
      mat_grf_name_chance = 5
      father_name_chance = 0
      
      # Chance of female children being named after their paternal or maternal grandmother, or their mother. Sum must not exceed 100.
      pat_grm_name_chance = 15
      mat_grm_name_chance = 5
      mother_name_chance = 0
      
      disinherit_from_blinding = yes
      
      modifier = default_culture_modifier
   }


This file goes on for more cultures but anyways.. the very first line defines the cultural group. So all the cultures below belong to the same cultural group. So lets say we're creating a valyrian offshoot that has black hair and purple eyes yeah. We'd copy the high_valyrian culture group (The rest of the stuff included), and duplicate it. In the duplication we'd change the line "high_valyrian" to "custom_valyrian". As well as change the graphical_cultures from valyriangfx to customvalyriangfx. After that can add in more names and what not but eh whatever. Skipping to last part!

mod/XXXX/localisation/

Okay so if you were to load the game with only those changes above, we'd be seeing the new culture in game as the "custom_valyrian" culture.

Spoiler: show
Code: Select all
#CODE;ENGLISH;FRENCH;GERMAN;;SPANISH;;;;;;;;;x
high_valyrian;High Valyrian;Haut Valyrien;Hochvalyrisch;;Alta Valyria;;;;;;;;;x

So really only need the code and english portions. Which setting it up like so...
custom_valyrian;Mixed Valyrian;;;;;;;;;;;;;x

The new culture will now appear in game as Mixed Valyrian instead of as custom_valyrian
User avatar
LancelotLoire
 
Posts: 2633
Joined: Sat Mar 30, 2013 16:32

Re: Graphical Culture

PostPosted by athousandeyes&one » Sun Apr 16, 2017 21:49

I seem to be screwing it up. Am I meant to put those into the existing files or create new ones? I ended up overwriting the high valyrians and turning them into a normal looking culture when I put it into the existing files. When I put it into new ones the new culture shows up but instead looks like a normal one. :oops:
athousandeyes&one
 
Posts: 3
Joined: Thu Apr 13, 2017 00:08

Re: Graphical Culture

PostPosted by LancelotLoire » Sun Apr 16, 2017 22:36

The 3 big rules in this scenario are this..

1) DOWNLOAD and use NOTEPAD++ << Notepad itself sucks. Not sure if you're already doing this but needs said again :p
2) If you can get away with using a new file, do so. You can copy the old file to cheat and give yourself a starting point ;)
3) If you can't get away with using a new file, copy the things your gonna be working on. This rule pretty much only applies to the culture file because you're trying to add in new valyrian cultures.


So yeah the common/culture/ file is the only one you'll need to actually do the work within the file (just to keep the valyrian grouping together). I'd suggest copying(NOT CUT) the high valyrian culture and pasting it into a new tab and tweaking it there, then pasting it near the end of the file (while paying close attention to the brackets)
User avatar
LancelotLoire
 
Posts: 2633
Joined: Sat Mar 30, 2013 16:32


Return to Graphics and Art

Who is online

Users browsing this forum: No registered users and 0 guests