Announcement

Collapse
No announcement yet.

PROJECT: Mod updating tool

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PROJECT: Mod updating tool

    Here's a little tool I threw together to allow you to update mods to use them with the new playtest exe.

    It's pretty crude, but it provides an easy way to get mods working.

    Just drop it in the ...\ctp2_data\default\gamedata\ directory, and run it with a prefix as a command line argument, e.g. "ModUpdater APOL". It will edit [Prefix]_Const.txt and [Prefix]_tileimp.txt, if they exist.

    It adds the new MAX_MATCH_LIST_CYCLES line to [Prefix]_Const.txt (This is the really critical thing).

    It adds the Freight fields to tile imps (to match the MoveCost field) so your caravans follow roads, etc.

    It doesn't add the Sound field to the tileimps because there's no way to know which sound is wanted, and most mods have the SLIC adding a sound when you place a tileimp anyway, so if sounds were added here you'd get two.

    If the files have already been updated, then this program will not affect them (it won't add in an extra superfluous copy of the fields) - at least, that's true provided you didn't add more blank lines in between things and generally put things where it expects them to be.

    It doesn't backup the old versions of the files, so do that yourself if you're worried.

    It's written in C#, so you'll need the .NET framework v1.1 to use it (The best way to get this is through Windows Update).

    Hope someone finds it useful .
    Attached Files
    Last edited by J Bytheway; June 2, 2004, 02:39.

  • #2
    Ok maybe I'm being dense, but can you elaborate on the installation instructions? I'm not getting it to work right, but I'm just doing something wrong. Maybe I need a nap. LOL

    Comment


    • #3
      Installation? Unzip it into the ...\ctp2_data\default\gamedata\ directory. What more can I say?

      Comment


      • #4
        Re: PROJECT: Mod updating tool

        Originally posted by J Bytheway
        run it with a prefix as a command line argument, e.g. "ModUpdater APOL".
        So you are saying to select the "Run" command from the Start menu and type in something like

        "C:\Program Files\Activision\ctp2\ctp2_data\default\gamedata\ ModUpdater APOL"

        or whatever the correct directory structure is... right?
        Last edited by Flinx; June 2, 2004, 10:56.
        ·Circuit·Boi·wannabe·
        "Evil reptilian kitten-eater from another planet."
        Call to Power 2 Source Code Project 2005.06.28 Apolyton Edition

        Comment


        • #5
          Originally posted by Flinx
          So you are saying to select the "Run" command from the Start menu and type in something like

          "C:\Program Files\Activision\ctp2\ctp2_data\default\gamedata\ ModUpdater APOL"

          or whatever the correct directory structure is... right?
          Well, that won't work because of the space before "ModUpdater", and also you'd need to put quotes round everything except the command line argument because the path contains a space (in "Program Files"). With those two changes it should work, but possibly it's easier to open a command prompt and browse to the correct directory and run it from there (that way you'll be able to just type "ModUpdater APOL", and you'll be able to see the feedback).
          Last edited by J Bytheway; June 2, 2004, 16:39.

          Comment


          • #6
            Well that was what I was trying to get at. Thanks.

            Without the space this is what you get:
            Code:
            "C:\Program Files\Activision\ctp2\ctp2_data\default\gamedata\ModUpdater APOL"
            ·Circuit·Boi·wannabe·
            "Evil reptilian kitten-eater from another planet."
            Call to Power 2 Source Code Project 2005.06.28 Apolyton Edition

            Comment


            • #7
              Originally posted by Flinx
              Without the space this is what you get:
              Code:
              "C:\Program Files\Activision\ctp2\ctp2_data\default\gamedata\ModUpdater APOL"
              What you want is:
              Code:
              "C:\Program Files\Activision\ctp2\ctp2_data\default\gamedata\ModUpdater"  APOL
              But without the wierd wrapping - I don't know what's causing that...

              Comment

              Working...
              X