Results 1 to 6 of 6

Thread: does anyone know how to edit unit costs and upkeep?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default does anyone know how to edit unit costs and upkeep?

    I downloaded this mod that increases the roman army size but it increases my upkeep and unit cost 5 fold... so is there anyway in changing those values?
    where do I need to change and what tool must I use? also where would do these values be found?

    Thank you!

  2. #2

    Default Re: does anyone know how to edit unit costs and upkeep?

    Download Pack file manager, make sure the .dll files for the program are not blocked by the os ( right click on em and unlock if needed ) open data_rome2.pack ( make a backup ), go to db-> main units, go to "options" uncheck "ca packs are read only", acknowledge the prompt, modify the values to your liking, save file, all done .

  3. #3
    crzyrndm's Avatar Artifex
    Join Date
    Feb 2011
    Location
    New Zealand
    Posts
    2,576

    Default Re: does anyone know how to edit unit costs and upkeep?

    Quote Originally Posted by DiabolikTW View Post
    Download Pack file manager, make sure the .dll files for the program are not blocked by the os ( right click on em and unlock if needed ) open data_rome2.pack ( make a backup ), go to db-> main units, go to "options" uncheck "ca packs are read only", acknowledge the prompt, modify the values to your liking, save file, all done .
    A) Wrong pack, you need to edit the mod.pack that's causing the 5x upkeep
    B) Don't be ignoring that prompt. Make a mod pack, don't edit CA's values (see my sig if you don't know how)

    @Toho
    Open up the mod pack for this roman army size mod. Go to db -> main_units_tables -> <table_name> (table name will probably just be main_units, but it may be renamed)

    You can either do a mass edit to reduce all the recruitment and upkeep costs by a factor (right click on the column header, apply expression (eg. x/5 to reduce it all by a factor of 5). Alternatively, if the mod doesn't add any units, you can extract the table to a tsv file and open it with excel (or equivalent). Do the same with the vanilla main_units and just copy paste the columns in question to get vanilla values. Then reimport the file (file -> add -> Import TSV)
    It’s better to excite some and offend others than be bland and acceptable to all
    Creating a mod.pack with PFM - Database Table Fragments

  4. #4

    Default Re: does anyone know how to edit unit costs and upkeep?

    thanks mate, one more question, Dresden has a mod that has 4 roman factions with each faction having its own color scheme.
    first what exactly do I need to do to change the coloring of one of them from black to green.

    secondly how do I take these units and put them into the main game for that one Roman faction?
    (obviously I would need to give them different names)

    thanks.

  5. #5
    monoolho's Avatar Libertus
    Join Date
    Jan 2013
    Location
    Here and there, mostly somewhere.
    Posts
    71

    Default Re: does anyone know how to edit unit costs and upkeep?

    The faction colours can be changed using the db faction_uniforms_colors, it has 3 sets of numbers: Primary, secondary and tertiary (which are the 3 colours which the factions use, such as vanilla's Rome red, gold and slightly darker red) each one has an R, G and B column, this is RGB, so if you don't know the colour, just open MS Paint (or preffered image editing tool) and customize the colour you'll want, you will see 3 values the Red, Green and Blue colours. Lets say you want white as the secondary colour (which is Red 255, Blue 255 and Green 255, so you paste the deisred colour values (255) in the Secondary_R, secondary_G and secondary_B columns. this will make the secondary colour White. The same applies to primary and tertiary.

    Do you mean take them off the mod and place in the vanilla game data? That's not a good idea, also, the first update you download will ERASE EVERYTHING. Make a small modpack for yourself with it. You can simply copy and paste the mod's dbs into your own and change what you want. First, you have to look building_units_allowed to see what buildings are necessary to recruit the unit, if they please you, leave it, if you want to add to another culture, you need to add that culture's buildings (look the vanilla buildings_units_allowed to see which buildings are recommended for that kind of unit) and add the desired buildings to your mod. Don't forget to give each building a UNIQUE ID (the number on the far left) such as "666999888" so it doesn't conflict with vanilla or the mods you are using.
    If you want to add it to a specific faction, you can simply add the values of units_to_exclusive_faction_permissions, add the desired faction such as "rom_rome" and the unit ID.
    If you want to add the unit to a general culture, you have to use the units_to_groupings_military_permissions, then add the desired culture(s) and the unit ID.

    If you want the AI to recruit said unit, you need to add the cdir_military_generator_unit_qualities value: the unit ID and a number. This number defines the likeliness of it being recruited by the AI (as far as I know), or what the AI think the quality of the unit is, which in turn affects its recruitment probability. So if you use a number like 500, it'll rarely be recruited, and deemed "unworthy", if you use something like 3000, the AI will try to recruit it far more often.

    I hope I could help you, if you didn't understand a thing I said, sorry, just shout back and I'll explain better.

  6. #6

    Default Re: does anyone know how to edit unit costs and upkeep?

    yea that whooshed way over my head, basically in this mod: http://www.twcenter.net/forums/showt...v0-6-(Patch-8)

    there are 4 roman factions with different colored shields.
    my goal are 3 things:


    1) add the differently colored legions (triarii, principes and hastati don't count)

    2) customize the auxiliaries so they are not all bright red and yellow but instead their original colors from their various factions.

    3) add all of these units under the same building. preferably not all of these units would be made available to one single barracks (too many units for that).
    instead of there were some conditions that I could set so that the roman legions are different color depending on where I recruit them from.

    I realize that all of this must be done through the Pack system, editing vanilla files is something I do not want to deal with.
    I am not a good skinner but I know my way around and changing colors is certainly something I am capable of but what I don't understand is... is it possible to change these RGB values within the pack manager?

    realistically I would like to see auxiliaries not colored in their red/yellow color scheme.
    the Barracks that I build in Gaul gives me Red colored legionnaires while the ones that I recruit in Macedon or Illyria are Black while the barracks on the African coast are Blue and so on...

    thankfully Dresden has already made unit cards and the skins for all of these guys though I would have to make some stuff for Green, White/Gray and yellow/orange mix.

    edit: can you also post some tutorials concerning adding new units, changing unit colors and generally anything that can help me with assigning differently colored roman units to different geographical areas? (this means that I cant recruit blue romans from the same region as the red ones)

    thanks!
    btw I am looking through tutorials and resources myself but I might have missed some of them.
    Last edited by Toho; December 17, 2013 at 08:11 PM.

Posting Permissions

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