Results 1 to 2 of 2

Thread: [Help] Training a new unit in the Imperial Reform

  1. #1

    Icon1 [Help] Training a new unit in the Imperial Reform

    Hey guys, I created some new custom units for Rome. No idea how to make them appear after the Imperial Reform, just after building the lvl4 main barracks. How can I get that? Also about the unit manpower cost how can I edit those values? Thanks for your answers

  2. #2
    Jake Armitage's Avatar Artifex
    Patrician

    Join Date
    Apr 2011
    Location
    apartment 6
    Posts
    4,694

    Default Re: [Help] Training a new unit in the Imperial Reform

    you'll need to alter scripts for that

    1) make sure your new units are fully working as any other DeI one

    2) RECRUIT/DISBAND MANPOWER
    "scripts > lib > manpower > units"

    ["Aet_Cav"] = { 2, 120, 120 },
    2 = class (from 1 to 4) / 120 = pop cost / 120 = pop returned when disbanded
    pop values are always set for Huge unit size, it won't change anything if you don't use Huge, btw

    add new lines for your units, pay attention to - " - and - , -
    put them inside the {}, order is not an issue

    3) ASSIGN THEM TO A REFORM
    "scripts > lib > lib_reforms_main"

    You'll have to insert your new units inside the correct {}
    Best way to do that is tracking down an existing dei unit that works exaclty as yours (same reform and if it disable the previous unit)

    4) TOOLTIP NAMES (not sure what that script is for)

    "scripts > lib > lib_reforms_units_names"

    I think the pack should work fine without putting your new units inside that scripts, better if you do though

    -----

    Better if you use RPFM, with PFM I always had some (solvable) problems while copying/pasting scripts
    First thing to do: copy those 3 scripts inside different notepad ++ sheets
    Use search functions to track down things, make your modifications and repaste it inside your pack

    PAY ATTENTION: a single mistake will bug the entire script

    -----

    5) and... add things inside a db table too
    " db > technology_unit_upgrades_tables

    Best way to do that is tracking down an existing dei unit that works exaclty as yours (same reform and if it disable the previous unit)

    -----

    should be everything

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •