-------------------------------EiC SCRIPTING----------------------------------
-------------------------Manpower Extension Script----------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------
**************************************************************************
------------------------------------------------------------------------------
------------------------------------------------------------------------------
--INTRODUCTION
------------------------------------------------------------------------------
------------------------------------------------------------------------------
This file is used to extend manpower limitations to units added to EiC via submods. Note that manpower only affects the factions listed below,
in EiC v2.0 we use db-based hard limits for all other factions. Alos note that the manpower system does not lend itself well to units being shared between factions.
If you are editing this in notepad++ (recommended) you will see some of the writing is in green. Anything in green is a comment, and will be ignored by
the game - it's simply there for useage instruction.
The general rules are:
- *Each unit key must be surrounded by quotation marks (""). Examples below.
- *If adding more than one unit to a faction, separate each entry with a comma (,). Examples below.
- *If adding entries causes a CTD when ending turn it's because an invalid unit key was supplied.
- *If adding entries causes no advice to play at the start of a new game + the camera to start at the center of the map, then you have made typing errors somewhere.
- This should not happen due to the error prevention methods used (see below). If it does, let the EiC devs know immediately!
- *Any units added here *must* use the same name as appears in the db entires for it. If must also appear in the same case as it does in the db (upper/lower).
- *To avoid possible CTD's, a new game must be started after this file has been updated.
- *DO NOT edit any other part of this file not involved in making unit entries. Doing so may cause severe game instability.
An error catching and prevention system has been written into the code that utilises this file. If you have any in game errors
look in /../data/Europe in Conflict/Logs/Manpower Extension Script Log.txt. Here you will see a timestamped log giving details of what is going on.
The error checking procedure works as follows:
- This file is checked for errors.
- If it has none, it is loaded into the game.
- If it has errors it is not loaded into the game, and details of the error are written to the log.
The error checking procedure will not account for mis-spelled unit keys.
------------------------------------------------------------------------------
------------------------------------------------------------------------------
--USEAGE
------------------------------------------------------------------------------
------------------------------------------------------------------------------
--The table "ManpowerExtensionTableHomeUnits" is used to define any additional units that are uniquely available to each listed faction. A unit should not be
--listed for two different factions here - to do so will cause strange in-game behaviour and possible save game corruption. Example table follows:
-- ManpowerExtensionTableHomeUnits = {
-- ["austria"] = {"Austrian New Unit 1", "Austrian New Unit Two", "Austrian New Unit 3" },
-- ["britain"] = {"British New Unit 1"},
-- ["france"] = {},
-- ["prussia"] = {"Prussian New Unit"},
-- ["russia"] = {},
-- ["bavaria"] = {},
-- ["denmark"] = {},
-- ["naples"] = {},
-- ["netherlands"] = {},
-- ["sweden"] = {},
-- ["portugal"] = {},
-- ["spain"] = {},
-- ["ottomans"] = {}
-- }
--As you can see, 3 units have been added to the Austrian manpower pool, one to the British, and one to the Prussian. The rest have had no additional units added.
...
...
...
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
--The table ManpowerExtensionTableAoRUnits is used to define any additional units that are uniquely available in the regions listed. A unit should not be
--listed for two different regions here - to do so will cause strange in-game behaviour and possible save game corruption. For an example table, see
--above - the same rules apply
--Note that "Wurttemberg", although listed, does not work - it had to be hardcoded into the manpower module due to issues cause by Lua not recognising
--the trema on the u (ü)
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------