Author Topic: Best way to compare scripts, and to merge scripts?  (Read 327 times)

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Best way to compare scripts, and to merge scripts?
« on: December 19, 2013, 05:19:17 pm »


               Could use some advice here. For comparing, say, two versions of the same script, what I have been doing is to make a copy of the new one, re-name it to something else, and then open them up side by side, and going down line by line. Is there a more efficient way of doing this?

As far as merging, is there a tutorial on this somewhere?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Best way to compare scripts, and to merge scripts?
« Reply #1 on: December 19, 2013, 05:52:39 pm »


               Beyond Compare 2 (shareware) is bet compare program I know. Merging anything with this is a matter of minutes.

For merging, it requires at least basic NWScript knowledge and in best case instruction from author. If the scripts are properly commented it also easier. The more complicated scripts are harder to merge of course but I don't think it is even possible to write a howto tutorial really...
               
               

               


                     Modifié par ShaDoOoW, 19 décembre 2013 - 05:52 .
                     
                  


            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Best way to compare scripts, and to merge scripts?
« Reply #2 on: December 19, 2013, 06:03:15 pm »


               You can just search for 'diff program' on google and look at the variuos interfaces for one you like. As it happens WinMerge is the top hit, and it happens to be the one I use (it's open source). 'Diff' is short for 'differencing', and as you'll see, there are a ton of programs that do it, as it's often indispensable to coders.

[Edit]See also: wiki on 'diff'

Funky
               
               

               


                     Modifié par FunkySwerve, 19 décembre 2013 - 06:04 .
                     
                  


            

Legacy_Squatting Monk

  • Hero Member
  • *****
  • Posts: 776
  • Karma: +0/-0
Best way to compare scripts, and to merge scripts?
« Reply #3 on: December 20, 2013, 12:41:03 am »


               I cast my vote for WinMerge as well. One of the features I especially like is being able to compare folders full of scripts, meaning I can export snapshots of my module over time and quickly see the differences between all the scripts.

I also do a lot of scripting in Notepad++, which has a nice extension for comparing the differences between two files. It's not as powerful as WinMerge, though.
               
               

               
            

Legacy_Tarot Redhand

  • Hero Member
  • *****
  • Posts: 4165
  • Karma: +0/-0
Best way to compare scripts, and to merge scripts?
« Reply #4 on: December 20, 2013, 01:57:17 am »


               I also recomend winmerge even though I mostly use it for comparing 2da files myself. If I remember correctly, it can also be used in conjunction with tortoise svn free open source versioning software. Anyway, here is the link to the download page for winmerge.

TR
               
               

               
            

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Best way to compare scripts, and to merge scripts?
« Reply #5 on: December 20, 2013, 11:30:46 pm »


               Thank you very much folks.