• 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.

unmerged(289986)

Private
1 Badges
Mar 22, 2011
12
0
www.ilgrandeiverno.net
  • Rome Gold
Hello ;)

Free for use, testing and so on. Plase read carefully the readme.pdf included and use it at your own risk.

Download link:
http://samuelpotente.altervista.org/EUR/download/EUchargen_PERL_v01_20130107.zip



-------------------------------------------

EUROPA UNIVERSALIS ROME Character Generator 0.1
(PERL VERSION)


Description: PERL script used to massively generate character files to add in game. Useful when modding and/or adding characters.

Note: this script is experimental. Use it at your own risk. Be careful when adding characters into your /history/characters directory to not overwrite/duplicate previous ID numbers of default EU Rome characters.


What you can do with EURchargen.pl:
1) Randomly generated Military, Charisma and Finesse stats
2) Set minimum / maximum values for Military, Charisma and Finesse
3) Randomly generated names and family of the characters.
4) Randomly generated gender or specific gender (male/female) by parameter request
5) Randomly generated personality traits assignment
6) Set minimum / maximum number of traits to add
7) Soft exclusion of opposite traits (i.e. not 'corrupt' AND 'honest' on the same character)
8) Set specific traits to be added by default (ex. 'lustful' to gain character fertility)
9) Set number of characters to be automatically created (max. 500 at once)
10) Set numeric ID# range to use in character filename (ex. 100819 - Name.txt)

To-do list for next release:
1) Adding more COUNTRIES (now ROME only) culture/names templates
2) Adding TEMPLATES to get specific kind of characters (i.e. researcher, generals, governors, etc.) with useful traits and base stats for their future in game profession.
3) Improving better country/culture/religion management
4) Porting to PHP for easier use


HOW TO

1) DO YOU HAVE PERL INSTALLED? (Damn it….)

The script has been developed in PERL so, first of all, you need a PERL installation to run it. If you have a Linux operative system that's not a trouble. If you have a recent Mac OSX o.s. still you should have PERL preinstalled under your linux terminal. If you only have Windows (and worst of all a recent Windows like Vista/7/8 start praying. Go on the net and read how to install a PERL environment on your local machine or how to get a free/commercial hosting/vps that provides you a PERL installation.
Don't worry, I'm planning to quickly port the script on PHP, so you can upload it on a free hosting service and run it from there without messing with PERL environment. But at the moment if you want to test my script you have to run it on a local machine with PERL or on a useable remote server with PERL.

2) UNZIP THE FILE (with complete path to subdirectories).
This package comes with main script directory 'EURchargen' and some subdirs.

Code:
- [EURchargen]                # main script directory
       - EURchargen.pl        # MAIN SCRIPT
       - subroutines_inc.pl   # useful functions used by main

         [DATA]               # DIR (data, config, defaults, and so on)
             - config_inc.pl  # included base configuration
             - DEFAULT_inc.pl # used if no parameters passed by user
             - ROM_inc.pl     # The ONLY (for now) country template

         [CHAR]               # DIR (you'll find here your characters)
         [LOGS]               # Useless for now -.-
         [DOCS]               # Useless for now -.-


3) GRANT FILE/DIRECTORIES PERMISSIONS
Basically you must be sure you have set EXECUTION permission on EURchargen.pl and read/write on CHAR directory. using FTP clients like CuteFTP or FileZilla you can edit file properties directly by a menu. By terminal you can add permission by:

Code:
$ chmod +x EURchargen.pl
$ chmod +rw data

Possibly you could have to logon with administrative permission or to use super-user permission to change files permission. In that case try adding "sudo" before chmod command.

4) CHANGE (IF NEEDED) PATH TO YOUR PERL
PERL is installed in a specific directory. In my script it is assumed than you have perl installed in /usr/bin/perl but you can have it installed anywhere. First of all, find where your perl is installed to and write down or copy the path. Then EDIT EURchargen.pl main script. The FIRST line contains the path to perl. Simply replace the path to PERL, if needed. Save and close your editor (a simple text editor it's good. I.e. notepad++, VI, emacs, gedit... DON'T USE MS WORD!!).

DONE! YOU CAN USE THE SCRIPT!
Now you can start the script. EURchargen uses some default parameters if you don't provide anything. The common syntax to pass parameters is the following:

Code:
$ ./EURchargen.pl PARAMETER1=VALUE1 PARAMETER2=VALUE2 PARAMETER3=VALUE3

Not important in which order you pass parameters to script, BUT:

PARAMETER=VALUE
No spaces, commas or any sign between PARAMETER, '=' (equal sign) and VALUE.
ONE space to separate each P=V couple. --> PARM1=VAL1 PARM2=VAL2 PARM3=VAL3 …


All parameters are OPTIONAL. By default EURchargen will generate a single character, random gender, starting his/her life as an adult in 474, roman, with random stats and traits. At the moment you can add the following parameters:

TOTCHARS: number of characters to create (default 1, max 500)
MINMIL, MAXMIL: minimum and maximum Military stat
MINCHA, MAXCHA: minimum and maximum Charisma stat
MINFIN, MAXFIN: minimum and maximum Finesse stat
MINTRAITS, MAXTRAITS: min and max personality traits to add
GENDER: M or F (by default R = random for each character)
FERTILITY: has 'lustful' trait pre-set (default = no)
YEARSTART: starting date of character's life (default 474)
YEAREND: if greater than YEARSTART, birth will be within start and end (default = start)
IDSTART: start ID numeration for files (default: 100800)

Example:

Code:
$ ./EURchargen.pl TOTCHARS=30 GENDER=F FERTILITY=YES MINCHA=10
will generate 30 nice reproductive women starting their game at Rome as adult in 474, with a VERY high charisma and random Military/Finesse stats and random traits ;)

The script will inform you by some messages on your monitor.
At the end you’ll find your new character files under /char folder.

-----------
Notes: you can use this script for free. Not for commercial use. E.U. Rome is a Paradox trademark.
Feel free to contact me at samuel.potente@gmail.com
 
Last edited:
Ooooh, sounds promising. Being a Win7 user, I might wait until you release a PHP version rather than messing around with PERL (though I have been considering adding a Linux partition...), but this is sounding very interesting.
 
Hello, i have a trouble importing my character on the game. At game start they seems to have age=471, so they die after a pair of minutes of playing.

Could anyone help me checking one of my automatically generated chars and tell me if there is anything wrong?

Thanks.

example:

Filename: 100800 - Guinevra Licinia Decima.txt
1) without underscores between name/surname.. is it a trouble?)
2) double name as in male characters instead of family name + prima/secunda/etc

Code:
name = "Guinevra Licinia Decima"
female = yes
military = 8
charisma = 7
finesse = 9
birth_province = 93
add_trait = suspicious
add_trait = prominent
add_trait = wise
add_trait = tolerant
add_trait = lustful

wealth_change = 10000
loyalty_change = 50
popularity_change = 50
culture = roman
religion = roman_pantheon
employer_country = ROM
family_name = "Licinii"

1.1.474 = { birth = 1.1.449 }
As far as I know this file follows all common formalisms found in original vanilla characters.
Any idea?