The MU forums have moved to

how to recognize modded lines (3 posts)

  1. sallam
    Posted 18 years ago #


    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
    Posted 17 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
    Posted 17 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 2025 years ago by sallam
  • Latest reply from lunabyte