Staredit Network > Forums > Modding Assistance > Topic: Elegant way to move from GPTP (VS2008) to GPTP (VS2019)
Elegant way to move from GPTP (VS2008) to GPTP (VS2019)
Aug 16 2021, 1:34 pm
By: Netbek  

Aug 16 2021, 1:34 pm Netbek Post #1



I use the "General-Plugin-Template-Project" (GPTP) for my mod. GPTP has 2 versions. One for Visual Studio 2008 (older), one for Visual Studio 2019 (newer).
I used to work with the old version and VS2008. Now I am moving to the new version and VS2019 because it allows more modifications.

Is there an elegant way to move all the changes that I made to the old version of GPTP into the new one, or will I have to copy over the code blocks "by hand"?




Aug 17 2021, 3:41 pm UndeadStar Post #2



It depends how you're programming.
If it were me trying to port code from the old version to the new, I think I would use WinMerge (or another diff files system) to see a comparison of base 2008 files and modded 2008 files, then copy the blocks that are marked as changed in the 2019 corresponding code, fine-tuning it as necessary.

Note that it is also possible to take most of the code of the 2019 version to bring it to the 2008 (there's no code incompatible with a specific version of visual studio), the only real issue are the project files (need to attach new files, detach files that got removed, deal with files that moved around).

The biggest complication may be with code/files that moved around.




Aug 17 2021, 5:02 pm Netbek Post #3



Well, I now carried over everything "by hand". It wasn't as much of a chore as I had feared, though it took me an evening. Luckily, the new code is very similar to the old one. Most of my "own" codeblocks I could copy over unchanged. Thank you!




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
Please log in to shout.


Members Online: Ultraviolet, Roy