Results 1 to 6 of 6

Thread: Find and Replace upkeep

Hybrid View

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

    Default Find and Replace upkeep

    Im trying to change the upkeep of the units in export_descr_unit.txt to all be 100. I was wondering is there a faster way to do this, rather than go through hundreds of units and change the upkeep to 100?

    I used Microsoft word "find and replace" function which allows you to use "wild cards" to find any thing in the text line.

    So In the find box I put "stat_cost ?, ???, ???", this would mean it would find any number that had to do with the stat cost line. When I went to replace I put this in "stat_cost ?, ???, 100" but it didint work to what I itented to. It changed everything to look exactly like what I replaced. I was hopping those "?" would skip over any number and replace only the number I typed in. for example:

    stat_cost 1, 190, 350

    chnaged to

    stat_cost ?, ???, 100

    I was hopping it would look like this

    stat_cost 1, 190, 100

    So is there a diffrent command I can use in the replace field so that way it doesnt replace the first 2 number systems and just the third? I hope this isnt to coplicated to understand

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Find and Replace upkeep

    Sure the 'find and replace' function can use wildcards in a text document?










  3. #3

    Default Re: Find and Replace upkeep

    I know that but wild cards seem to only work with finding the text, but replacing it doesn't work. using a "?" wild card means that it will find anything that has to do with a letter or number so typing stat_cost ?, ???, ??? in the find box will find anything relevant to that for example stat_cost 1, 890, 275. But if I put stat_cost ?, ???, 80 in the replace box than everything changes to stat_cost ?, ???, 80, which all I want to change is the upkeep to 80. So it should really look like this stat_cost 1, 890, 80 and every stat_cost line should have 80 upkeep also.

  4. #4
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Find and Replace upkeep

    That's why I thought it didn't work.
    Find is fine, but with replace the ? is treated as a character. What if you wanted to replaced a ! with a ? - wouldn't work then.










  5. #5

    Default Re: Find and Replace upkeep

    where is this export_descr_unit.txt located?


  6. #6
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Find and Replace upkeep

    In the data folder (after you have unpacked).










Posting Permissions

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