Changes between Initial Version and Version 2 of Ticket #1757


Ignore:
Timestamp:
Dec 12, 2012, 12:37:20 AM (11 years ago)
Author:
leper
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1757

    • Property Keywords patch added
    • Property Milestone BacklogAlpha 13
    • Property Summary Script to automatically change unit stats[PATCH] Script to automatically change unit stats
  • Ticket #1757 – Description

    initial v2  
    99Options:
    1010
    11 --key, -k: This is the XML element to modify. Can be arbitrarily deep, i.e. Cost/Resources/food works as expected.
     11--key, -k: This is the XML element to modify. Can be arbitrarily deep, i.e. !Cost/Resources/food works as expected.
    1212
    13 --change, -c: How much to modify the key by. For negative numbers, you'll need an equals sign: ./changestats.pl --Key Cost/BuildTime -c=-10 Domestic
     13--change, -c: How much to modify the key by. For negative numbers, you'll need an equals sign: ./changestats.pl --Key !Cost/BuildTime -c=-10 Domestic
    1414
    1515--mod, -m: The mod to use. Defaults to "public".
     
    1919Warnings:
    2020USE WITH CAUTION! THIS THING IS EXPERIMENTAL AND HASN'T BEEN THOROUGHLY TESTED!
    21 You probably ought to double-check that it made all the modifications correctly. That said, it has worked quite well for me so far.
     21You probably ought to double-check that it made all the modifications correctly. That said, it has worked quite well for me so far.[[BR]]
    2222It's also kind of slow. There's probably a much more efficient way to do what it does. Now, before you complain too much, it searches through hundreds of templates... anyway it is still much faster than adjusting stats by hand. I'm just warning you in case it seems like it's taking a while. That's normal.