The MU forums have moved to WordPress.org

how to recognize modded lines (3 posts)

  1. sallam
    Member
    Posted 17 years ago #

    Greetings!

    Someone once said that they're using a smart way to identify the lines they add or change when they modify files, so that it gets easier when the time come to upgrade to a new version, without losing the previously added mods. But I can't remember who or where was that said. Its something like adding a typical comment before those lines or something.

    I do hope he reads this and let us know the details please.

    Many thanks.

  2. drmike
    Member
    Posted 15 years ago #

    Found this looking for something else.

    Easy way to do it is as the following:


    /* Custom code as follows */
    The changed code
    /* Custom code as above */

    I also put a comment near the top of the file to note that the file has been changed.

  3. lunabyte
    Member
    Posted 15 years ago #

    I do the same, plus I keep my own changelog as well and note the filename and line(s) where I made the change.

    I also keep a fresh copy of the modded file as well.

About this Topic

  • Started 2024 years ago by sallam
  • Latest reply from lunabyte