Quick question concerning leaders

Have a question about how to mod something? Or have an issue with one of our mod tools? Post here.

Moderators: Balthagor, Moderators

Post Reply
Message
Author
Undecided
Warrant Officer
Posts: 26
Joined: May 22 2015
Human: Yes

Quick question concerning leaders

#1 Post by Undecided » Aug 10 2017

Where in the scenario file can I find the line(s) that dictate what leader names/portraits will be associated with a given country?

YoMomma
Brigadier Gen.
Posts: 715
Joined: Jun 27 2015
Human: Yes
Contact:

Re: Quick question concerning leaders

#2 Post by YoMomma » Aug 11 2017

I only know for modern games. There is a file Leaders2020.csv in sandbox. You gotta find the region number and the portrait number. The portraits can be found in Graphics.

I had to fix Hillary, for some reason she is there to stay in my vanilla file, while Trump is president, but for my mod i had to fix it. Anyway prolly ignore that. But damn it was confusing and going through all the portraits. Prolly an easier way.
Gameplay 1st

vahadar
Lt. Colonel
Posts: 247
Joined: May 19 2010
Human: Yes

Re: Quick question concerning leaders

#3 Post by vahadar » Aug 17 2017

All leaders are listed in the DEFAULT.PPLX file (in \Maps\DATA), this file is called in the .scenario file

You can add new line there, and even call them with events using event 20 in the .CSV file

exemple in the PPLX file :

With region num :

Code: Select all

//Mod Vietnam revolt
2024,2,Bao,Dai,,,,,,595,,,,,,,,2197,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
Here i'm creating a line with id 2024 (for SR1936), leader Bao Dai with pic num 595 for country id 2197 (which is Vietnam in the .cvp file)

Without region num :

Code: Select all

//Mod Vietnam revolt
3134,2,Duy,Tan,Emperor,,0,0,14,3022,,,,,,,,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
This is for a 14 years old Duy Tan, emperor in 1914, id line 3134, using picture num id 3022

Then back to our events in the The Great War - 1914.CSV file to specify the id of the line i added in the .PPLX file (here is 3134 for Duy Tan), making this emperor leader of Vietnam.

Code: Select all

//Setting Vietnam2197 leader Duy Tan3134 at game start
70040, 0, 0, 20, 10, 2197,-1 , 0, 0, 0, 1, 0,3134,,, , , , , ,
picnum ids of leader are found in \Graphics\People

Hope this helps

Buzzbrad
BattleGoat Team
Posts: 123
Joined: Oct 17 2013
Human: Yes

Re: Quick question concerning leaders

#4 Post by Buzzbrad » Aug 17 2017

I'd also recommend taking a look at our wiki. It has a lot of modding info: https://supremeruler.gamepedia.com/Supreme_Ruler_Wiki

Post Reply

Return to “Modding Issues & Support”