Jump to content

Models to portraits/species classes - A python file


Recommended Posts

What does it do:

I made this file so I could add species to Vanilla Framework and have them 'just work'.
After looking at the policies and species_classes files, I was deterred.

 

Setup:
So this script assumes you have populated the models folder according to the naming convention used in Vanilla Framework.
Then regenerates ALL of the polices text files for playable races (and pre-sapients), and all the species classes for playable races (not pre-sapients).

 

Assuming you have a folder made like this:
Aquatics_VF.png.daeff0c584d85193f455068dfe37a8a7.png
Models_VF.png.e4ce8d198a6cbf30aae4f234d3de680c.pngPortraits_VF.png.847fe6641f1a1657d5b52b8ddf450c8b.png

I've removed the _test, so it will now overwrite the Vanilla Framework (or others) if it has the same name.

 

 

 

How to use:

Firstly you'll need python installed.
Later if I get to it I'll see if I can make it an executable or something.

But in this form it is safer as people can read it to see what it's doing.

 

Taken straight from the python file:

 

--- HOW TO RUN THE CODE ----
----------------------------
Assuming something like Linux, run in terminal:
python3 Stell_VanF.py --folderpath 'Some/Path/To/Paradox Interactive/Stellaris/mod/Vanilla Framework' --run_all True

 

Or Windows:
python3 Stell_VanF.py --folderpath 'C:\Users\CHANGEYOURNAME\Documents\Paradox Interactive\Stellaris\mod\Vanilla Framework' --run_all True

 

Or just run it in idle like I do ?
----------------------------



If I have time I will likely update this script, as I find this easier than producing the images themselves.
Feel free to use/modify this script, and to suggest changes if you have any to suggest.

I also generally recommend anyone to read a script before they use it.

 

 

Stell_VanF.py

Edited by Goregath
Updated
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use