Page 1 of 2 12 LastLast
Results 1 to 20 of 21

Thread: Unit Replenishment

Hybrid View

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

    Default Unit Replenishment

    Anyone know how to change unit replenishment across the board quickly and easily? I know I could go into export_descr_buildings and change each individual unit, but that would probably take about half my life. Any way to, for example, double the rate of unit replenishment?

  2. #2
    Polycarpe's Avatar Back into action!
    Join Date
    Feb 2010
    Location
    Quebec, Canada
    Posts
    3,338

    Default Re: Unit Replenishment

    Quote Originally Posted by Moosoulini View Post
    Anyone know how to change unit replenishment across the board quickly and easily? I know I could go into export_descr_buildings and change each individual unit, but that would probably take about half my life. Any way to, for example, double the rate of unit replenishment?
    Hi there, you can't really do this in-game but you have to work in the EDB to really change this. it doesn't take that long, just a good afternoon

  3. #3

    Default Re: Unit Replenishment

    Ok dude, cheers for the response. Tomorrow could be a monotonous day!

  4. #4

    Default Re: Unit Replenishment

    If you have Notepad++ you can replace common occurrences. Iirc when I edited it there were 12 different rates, and halving them all only took me about 10-15 minutes.

  5. #5
    Ferdiad's Avatar Patricius
    Join Date
    Feb 2010
    Location
    Ireland
    Posts
    28,041

    Default Re: Unit Replenishment

    Notepad++ is a lifesaver.

  6. #6

    Default Re: Unit Replenishment

    Glad a came on here to check if there was any other suggestions before I spent all afternoon on it. Thanks guys!

  7. #7

    Default Re: Unit Replenishment

    No idea what I did wrong, but after making the changes I wanted to, when I load the game it crashes before it gets to the main menu. Any idea what happened?

  8. #8

    Default Re: Unit Replenishment

    does it actually make sence to replenish units ? I had the feeling that simply buying a new unit and restock the old one made more sence and i could not buy a new unit and replenish at the same time. So Replenishment kinda felt useless and i even feared it would delay the ability to recruit new untis with additional turns i needed to wait before i could recruit them again.

  9. #9
    Fred Putz's Avatar Ordinarius
    Join Date
    Mar 2010
    Location
    Germany
    Posts
    722

    Default Re: Unit Replenishment

    I guess You messed something up. Just have a look at the system log.

    Anyway - just wanted to say that this a really annoying work. Iīm doing that too for my little project atm.
    German Translation for Stainless Steel
    6.2 RR/RC; 6.3, 6.4
    Projects / Submods
    Alternative AI-Economy (money script) StSt 6.2 RR/RC; StSt 6.3, 6.4; TATW; CoW; Resource for Your Mod
    Alternative Recruitment StSt 6.4
    Suggestions
    An apple a day keeps the doctor away!

    Donīt forget to check out these Mods sooner or later:
    Shizoku no Senso - 1648 - Conquer the World


    RockīnīRoll!

  10. #10

    Default Re: Unit Replenishment

    @ Pesticide. I think we are talking about different. I'm talking about the time it takes for units to be recruited again, rather than retraining units after a battle.
    Last edited by Moosoulini; February 13, 2011 at 11:27 AM.

  11. #11
    Fred Putz's Avatar Ordinarius
    Join Date
    Mar 2010
    Location
    Germany
    Posts
    722

    Default Re: Unit Replenishment

    I always change the default.cfg to from:

    to=mods/SS6.3/system.log.txt
    level=* error
    ;level=* trace

    to:

    to=mods/SS6.3/system.log.txt
    level=* error
    level=* trace

    and then i have a look at it. Itīs located in Your SS 6.3 folder. Should be an error message. No clou - e.g. EDB line 4 collum 3 or something like that. Itīs easy to find that mistake that way. If thereīs no error message - ask the professionals here.
    German Translation for Stainless Steel
    6.2 RR/RC; 6.3, 6.4
    Projects / Submods
    Alternative AI-Economy (money script) StSt 6.2 RR/RC; StSt 6.3, 6.4; TATW; CoW; Resource for Your Mod
    Alternative Recruitment StSt 6.4
    Suggestions
    An apple a day keeps the doctor away!

    Donīt forget to check out these Mods sooner or later:
    Shizoku no Senso - 1648 - Conquer the World


    RockīnīRoll!

  12. #12

    Default Re: Unit Replenishment

    @Fred Putz. Do you know what I could have messed up? And how do you look at the system log? But yeah, it is very tedious! Notebook++ was a major timesaver though.

  13. #13

    Default Re: Unit Replenishment

    A crash huh? Hmm.

    Could you post one unit line after your changes? Just to make sure you edited the right part, spacing is ok, nothing got knicked accidentally.

  14. #14

    Default Re: Unit Replenishment

    17:12:32.015 [system.rpt] [always] CPU: SSE2
    17:12:32.015 [system.rpt] [always] ==== system log start, build date: Feb 25 2008 version development ===
    17:12:32.031 [system.io] [always] mounted pack packs/data_0.pack
    17:12:32.031 [system.io] [always] mounted pack packs/data_1.pack
    17:12:32.031 [system.io] [always] mounted pack packs/data_2.pack
    17:12:32.031 [system.io] [always] mounted pack packs/data_3.pack
    17:12:32.031 [system.io] [always] mounted pack packs/data_4.pack
    17:12:32.031 [system.io] [always] mounted pack packs/localized.pack
    17:12:35.375 [script.err] [error] Script Error in mods/SS6.3/data/export_descr_buildings.txt, at line 2110, column 140
    Unexpected in condition parsing: 'recruit_pool'


    that is the system log. not sure what unexpected in condition parsing means?
    this is the line that seems to being questioned, 2110:

    recruit_pool "Lithuanian Skirmishers" 0 0.25 1 0 requires factions { slave, } and hidden_resource lithuania
    Last edited by Moosoulini; February 13, 2011 at 11:38 AM.

  15. #15
    Fred Putz's Avatar Ordinarius
    Join Date
    Mar 2010
    Location
    Germany
    Posts
    722

    Default Re: Unit Replenishment

    export_descr_buildings.txt, at line 2110, column 140
    Just have a look at that line and compare it with the ones above. Perhaps a missing space character (had that too), perhaps something else.

    Edit: i would compare it with the working edb-backup

    Is this a mod? In my 6.4 EDB there are no entries for slaves. (Or i havenīt seen them)

    Code:
            recruit_pool "Lithuanian Skirmishers"  1   0.25   2  0  requires factions { lithuania, } and hidden_resource lithuania
    That how a line looks like in my EDB - but line 2110 is an empty one.
    Last edited by Fred Putz; February 13, 2011 at 11:51 AM.
    German Translation for Stainless Steel
    6.2 RR/RC; 6.3, 6.4
    Projects / Submods
    Alternative AI-Economy (money script) StSt 6.2 RR/RC; StSt 6.3, 6.4; TATW; CoW; Resource for Your Mod
    Alternative Recruitment StSt 6.4
    Suggestions
    An apple a day keeps the doctor away!

    Donīt forget to check out these Mods sooner or later:
    Shizoku no Senso - 1648 - Conquer the World


    RockīnīRoll!

  16. #16

    Default Re: Unit Replenishment

    no... no mods. thats just what i have... no idea why haha

  17. #17
    Fred Putz's Avatar Ordinarius
    Join Date
    Mar 2010
    Location
    Germany
    Posts
    722

    Default Re: Unit Replenishment

    Ok there are entries for slaves - just in those longer lines. Still donīt know why my line 2110 is an empty one and Yours not.

    Code:
            recruit_pool "Lithuanian Skirmishers"  0   0.13   1  0  requires factions { venice, scotland,  england, france, portugal, spain, aragon, moors, milan, papal_states, sicily, hre, norway, denmark, poland, russia, cumans, kwarezm, turks, jerusalem, egypt, byzantium, hungary, kievan_rus, teutonic_order, mongols, slave, timurids, } and hidden_resource lithuania
    Congrats - i have done nothing.
    German Translation for Stainless Steel
    6.2 RR/RC; 6.3, 6.4
    Projects / Submods
    Alternative AI-Economy (money script) StSt 6.2 RR/RC; StSt 6.3, 6.4; TATW; CoW; Resource for Your Mod
    Alternative Recruitment StSt 6.4
    Suggestions
    An apple a day keeps the doctor away!

    Donīt forget to check out these Mods sooner or later:
    Shizoku no Senso - 1648 - Conquer the World


    RockīnīRoll!

  18. #18

    Default Re: Unit Replenishment

    I even changed that line back to the original and still get the same thing. What is even more bizarre is that there is no column 140. It only goes as far as 132...

  19. #19

    Default Re: Unit Replenishment

    *FIXED IT*
    After realised that there was no column 140, I just pressed delete at the end of the line. When I reran SS to check if that had worked, it said the error had occured on line 2111, again 8 characters after the line ended. I just kept pressing delete at the end of each line till i got to a blank line and now it works. Thanks for your help Fred!

  20. #20
    Gorrrrrn's Avatar Citizen
    Join Date
    Jan 2007
    Location
    here
    Posts
    5,546

    Default Re: Unit Replenishment

    If using Notepad++ make sure you save the .txt file as a Windows format file.
    (For some reason it will sometimes change the format to UNIX which destroys the formatting -only it won't show in Notepad++, only in Notepad.)
    To get the formatting back you need to change the EOL (end of line) code to windows.
    --
    another point find and replace can cause a lot of problems if you are changing numbers - check for the values used in the original and try to find multiples / fractions
    which are not already used, so you don't change some values twice.
    (eg you may want to change values such as 0.5 and 0.25. DOn't change the 0.5 to 0.25, use 0.26. or else if you change the 0.25 you'll get both lots.)
    also use the exact number esp if you are changing values with 0 in them, you might change the wrong values.

    If deleting a faction make sure you check every entry so you don't leave empty values {} if it's the last faction.

    And finally don't block replace - check every time you change a value in case it's not the value you want to change -
    eg don't change all 1's to 2's (it might be good for recruitment pools but cause havoc elsewhere - check every occurence before doing so.

    Always keep a back-up of the original file in case of total mess-ups.

Page 1 of 2 12 LastLast

Posting Permissions

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