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.
[08:01 am]
Moose -- :megaya:
[12:28 am]
KrayZee -- The fishes make me think of Animal Crossing
[11:59 pm]
Vrael -- excellent
[07:04 pm]
Sie_Sayoka -- blown out of the water
[06:50 pm]
NudeRaider -- https://staredit.net/381160/ fucking mind blown :drool:
[2025-6-29. : 1:46 am]
Vrael -- I was there Aslan, 3000 years ago when the deep magic of the One Ring was forged on the Battleship Enterprise, and Voldemort stole it
[2025-6-29. : 1:39 am]
KrayZee -- Vrael
Vrael shouted: NUDERAIDER - What the fuck did you just fucking say about me, you little bitch? I'll have you know I graduated top of my class in the Navy Seals, and I've been involved in numerous secret raids on Al-Quaeda, and I have over 300 confirmed kills. I am trained in gorilla warfare and I'm the top sniper in the entire US armed forces. You are nothing to me but just another target. I will wipe you the fuck out with precision the likes of which has never been seen before on this Earth, mark my fucking words. You think you can get away with saying that shit to me over the Internet? Think again, fucker. As we speak I am contacting my secret network of spies across the USAGermanyland and your IP is being traced right now so you better prepare for the storm, maggot.
I wonder when this was written.
[2025-6-29. : 12:46 am]
Vrael -- NudeRaider has not been on Battle.net for 311 days and 8 hours - I propose we Ban this Inactive Person for ever
[2025-6-27. : 3:48 pm]
NudeRaider -- a M.2 drive would fit here https://snipboard.io/waGiXl.jpg
[2025-6-27. : 3:46 pm]
NudeRaider -- dumbducky
dumbducky shouted: I opened my box up this morning and the M2 drive doesn't fit anything in there. Ten years worth of dust is impressive though
this drive dumbducky
dumbducky shouted: If I'm reading this right M2 keys are either 5 or 6 pins wide but mine looks like maybe 8? Wtf? http://www.supertalent.com/datasheets/6_100485.pdf
fits here: https://snipboard.io/tC7oVv.jpg because it's PCIe, not M.2
Please log in to shout.


Members Online: Rawflesh0615