Quote:
Originally Posted by pontiac1979
Download WinMerge if you haven't already. It lets you put two scripts side by side and highlights any differences. For the CoF bot, you want to compare the new GWA2 to the GWA2 in the CoF bot folder. From there, copy/paste any differences into the new GWA2. You don't want to change anything else. If there are any sections where the old GWA2 has code and the new one doesn't, copy it over. Once you do this, be sure to delete the old GWA2 in that folder and copy the new one to the folder. After you get finished with that, upon loading the bot it will show an error saying something like "duplicate function". Just open up the gwa2 file and delete the code it is talking about.
|
This is not the best way to fix the headers. I repeatedly suggested you to update the headers in your old gwa2 file. This will take ~10 minutes, even without tools like winmerge.
The workflow you suggested is way more complicated, it will take way longer and will introduce copy and paste errors very easily. This is because you will have to look at every function, evaluate what its doing, what you have to do and copy/replace many lines of codes.
Some modified gwa2 versions do a ton of stuff differently. This will make it very hard to catch every change. Sometimes a merge introduces errors, if parts of the code changed in both files differently and you do not understand the code.
Also just deleting one of the functions without even looking at them, will easily introcude errors as well.
In the approach I suggested you, you will only have to seach for occurances of SendPacket in both gwa2 files, and copy&paste the second parameter of that function from the new file into the same function in the second file.
In my long time of coding I've applied both workflows to different scenarios. The one I suggested worked out better in the end for me.