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
Undecided
Warrant Officer
Posts: 26
Joined: May 22 2015
Human: Yes

Quick question concerning leaders

Post by Undecided »

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: 768
Joined: Jun 27 2015
Human: Yes
Contact:

Re: Quick question concerning leaders

Post by YoMomma »

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
Colonel
Posts: 257
Joined: May 19 2010
Human: Yes

Re: Quick question concerning leaders

Post by vahadar »

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
General
Posts: 131
Joined: Oct 17 2013
Human: Yes

Re: Quick question concerning leaders

Post by Buzzbrad »

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”