Results 1 to 9 of 9

Thread: Quick & Dirty Mass Unit Size changer

  1. #1

    Default Quick & Dirty Mass Unit Size changer

    Here's a little tool I made to quickly edit every unit size at once -by a modifier of some amount -

    For example you could say add 10 to every unit size, or multiply each one by 1.5 etc.

    I have a few of these little tools I've made for things like this.

    Select the source export_descr_unit file.
    Select a modifier type (+ , -, *, / )
    Put in a modifier Amount
    Change the Results Max if you want (Defaults to 100)

    Press Begin -it will save the file as new_export_descr_unit.txt.


    There is no error checking, so dont divide by 0 or put a letter in the number fields or point it to a file that's not the edu.
    You will need .NET Installed.
    This works for Vanilla or Kingdoms.

    Thanks,
    BrandonM
    Under the patronage of General_Sun.

  2. #2

    Default Re: Quick & Dirty Mass Unit Size changer

    Ok, I tried it with the Teutonic campaign, I selected the mods/teutonic/data/export_descr_unit.txt file, multiplied by 1.5. When I start the game it crashes though... Any help?

    Edit: Oh wait, I was trying to use the export_descr_unit file from Realcombat for the Teutonic campaign... Isn't it compatible? Do I have to unpack the game?
    Last edited by The Librarian; September 23, 2007 at 01:49 PM.

  3. #3

    Default Re: Quick & Dirty Mass Unit Size changer

    Can you post what it said in your error log?

    Maybe it's not writing a specific line back correctly.

    Thanks,
    Brandon
    Under the patronage of General_Sun.

  4. #4

    Default Re: Quick & Dirty Mass Unit Size changer

    It didn't give an error report, the game just exited right after the intro screen. I think:
    A) I should use the original file, and not the one from RealCombat
    B) I should unpack the game for that.

    Is that correct?

  5. #5

    Default Re: Quick & Dirty Mass Unit Size changer

    Try it with the original file first - just to see if it works for you - you'd need to unpack the game for that. However, there's not any real reason I can think of that the one from RealCombat wouldn't work.

    Usually, if the problem is in the EDU, it will write an error line in the logs before it crashes out. Make sure you have error logging enabled.
    Under the patronage of General_Sun.

  6. #6
    Socal_infidel's Avatar PDER Piper
    Join Date
    Jan 2007
    Location
    Brooklyn USA
    Posts
    2,563

    Default Re: Quick & Dirty Mass Unit Size changer

    BrandomM -

    Nifty little tool. Ever thought of doing something similar for unit cost? Maybe you have and I missed it!

    Cheers!

  7. #7

    Default Re: Quick & Dirty Mass Unit Size changer

    Ok, 2 questions :p:
    - How do I unpack the game? And that only counts for Kingdoms, right?
    - How do I enable error logging?

  8. #8

    Default Re: Quick & Dirty Mass Unit Size changer

    Quote Originally Posted by Socal_infidel View Post
    BrandomM -

    Nifty little tool. Ever thought of doing something similar for unit cost? Maybe you have and I missed it!

    Cheers!
    Yes - in my Unit Editor I plan to add this type of functionality. (Size, Cost, Build Time)

    I've also created a tool that mass changes Building Times in the export descr building file.


    To unpack the game go to your tools directory and there are batch files for each mod. Pick one and run it.
    To enable logging edit the .cfg file for that mod (or the default main one) and add this:
    [log]
    to = logs/system.log.txt level = * error
    Last edited by BrandonM; September 25, 2007 at 12:46 PM.
    Under the patronage of General_Sun.

  9. #9

    Default Re: Quick & Dirty Mass Unit Size changer

    I've incorporated all this functionality into my main unit editor - I'm closing this thread.
    Under the patronage of General_Sun.

Posting Permissions

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