Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » How to setup a Visual Studio 2010 SSGM plugin?
How to setup a Visual Studio 2010 SSGM plugin? [message #449420] Mon, 04 July 2011 15:26 Go to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
Hey guys, I recently built a new rig, and had to reinstall all of my programs.
I cant seem to get any plugin for ssgm working on VS 2010.
I have the windows sdk and all the necessary requirements installed and the linkage, and includes setup properly.

I think it may be due to splitting the program files from the main HD to a secondary one.

Does anyone have a work VS 2010 SSGM plugin solution I can see?

Thanks much Smile


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: How to setup a Visual Studio 2010 SSGM plugin? [message #449421 is a reply to message #449420] Mon, 04 July 2011 15:38 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Hmm, are you getting compilation errors or does the FDS crash when you run them? If it's the second it means you need to recompile SSGM and all your plugins under VS2010, it's because SSGM was compiled with an earlier version of VS and they include different standard library files that can conflict with each other.



Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: How to setup a Visual Studio 2010 SSGM plugin? [message #449439 is a reply to message #449421] Tue, 05 July 2011 13:23 Go to previous messageGo to next message
snazy2000 is currently offline  snazy2000
Messages: 67
Registered: December 2007
Karma: 0
Recruit
Every plugin i complile in VS2010 doesnt get reconsided in FDS, you get error loading plugin?? but i can run the Scripts ssgm in vs2010 fine with the one zunie made Very Happy


http://www.renegadeforums.com/index.php?t=msg&goto=438059&rid=23535& srch=visual+studio+2010#msg_438059
Re: How to setup a Visual Studio 2010 SSGM plugin? [message #449448 is a reply to message #449420] Tue, 05 July 2011 18:26 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
First time I couldn't get it to compile because of a double import somewhere, second time it compiled but SSGM said the plugin "failed to load".

The link didn't help, I needed the plugin solution not the scripts solution.. but thanks anyways.


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: How to setup a Visual Studio 2010 SSGM plugin? [message #449454 is a reply to message #449420] Tue, 05 July 2011 21:27 Go to previous messageGo to next message
Dave Anderson is currently offline  Dave Anderson
Messages: 1953
Registered: December 2004
Location: United States
Karma: 0
General (1 Star)
It's been really long, but this mentions SSGM, but I'm not sure if that's what you're looking for.

David Anderson
Founder, Software Consultant
DCOM Productions
Microsoft Partner (MSP)
Re: How to setup a Visual Studio 2010 SSGM plugin? [message #449483 is a reply to message #449420] Wed, 06 July 2011 18:31 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
That's the first place I went when I tried to fix this Wink

Did not help though Sad

Could anyone try compiling a blank plugin and post the 2010 solution? I would greatly appreciate it since I'm trying to release FDSComm 0.6 but I cant debug it since I haven't worked on it in 5 months and this is a new rig.


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: How to setup a Visual Studio 2010 SSGM plugin? [message #449487 is a reply to message #449420] Wed, 06 July 2011 21:55 Go to previous messageGo to next message
Dave Anderson is currently offline  Dave Anderson
Messages: 1953
Registered: December 2004
Location: United States
Karma: 0
General (1 Star)
Hit me up on Skype, email me, or whatever; a blank copy (I have no idea where to get the files and am working on many things right now), and I will try to help

David Anderson
Founder, Software Consultant
DCOM Productions
Microsoft Partner (MSP)

[Updated on: Wed, 06 July 2011 21:55]

Report message to a moderator

Re: How to setup a Visual Studio 2010 SSGM plugin? [message #449507 is a reply to message #449420] Thu, 07 July 2011 21:14 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
Hey Dave I know you have a lot on your plate so don't worry about it.. there has to be like 10 people here with VS 2010 Plugin solutions who might see this. I appreciate your help very much though Smile

http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: How to setup a Visual Studio 2010 SSGM plugin? [message #449509 is a reply to message #449420] Thu, 07 July 2011 22:06 Go to previous messageGo to next message
Dave Anderson is currently offline  Dave Anderson
Messages: 1953
Registered: December 2004
Location: United States
Karma: 0
General (1 Star)
By the way, I'm making BitFlex open source by the end of the month.

David Anderson
Founder, Software Consultant
DCOM Productions
Microsoft Partner (MSP)
Re: How to setup a Visual Studio 2010 SSGM plugin? [message #449515 is a reply to message #449509] Fri, 08 July 2011 09:49 Go to previous messageGo to next message
snazy2000 is currently offline  snazy2000
Messages: 67
Registered: December 2007
Karma: 0
Recruit
Dave Anderson wrote on Thu, 07 July 2011 22:06

By the way, I'm making BitFlex open source by the end of the month.


Yey Smile
Re: How to setup a Visual Studio 2010 SSGM plugin? [message #449519 is a reply to message #449515] Fri, 08 July 2011 15:13 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
snazy2000 wrote on Fri, 08 July 2011 12:49

Dave Anderson wrote on Thu, 07 July 2011 22:06

By the way, I'm making BitFlex open source by the end of the month.


Yey Smile


Double yay!


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: How to setup a Visual Studio 2010 SSGM plugin? [message #449530 is a reply to message #449420] Sat, 09 July 2011 13:19 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
I don't have a VS2010 plugin solution handy, but I do have some knowledge about the problem. The SSGM built off scripts 3.x uses std:: classes in the plugin interface. The problem with that is that said classes aren't guaranteed to stay the same between different compiler versions. When you write code that uses them and it's only for "internal" code (ie not a public plugin interface you expect other people to write plugins with) and you make sure to compile everything using the same compiler version, it's fine. This is known as the "fragile binary interface problem". If you compile everything (SSGM and every plugin you use) with VS2010, the problem is avoided.
Re: How to setup a Visual Studio 2010 SSGM plugin? [message #449533 is a reply to message #449420] Sat, 09 July 2011 15:28 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Yeah, like I said in the first reply. It apparently isn't that.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: How to setup a Visual Studio 2010 SSGM plugin? [message #449538 is a reply to message #449530] Sat, 09 July 2011 22:37 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
saberhawk wrote on Sat, 09 July 2011 16:19

I don't have a VS2010 plugin solution handy, but I do have some knowledge about the problem. The SSGM built off scripts 3.x uses std:: classes in the plugin interface. The problem with that is that said classes aren't guaranteed to stay the same between different compiler versions. When you write code that uses them and it's only for "internal" code (ie not a public plugin interface you expect other people to write plugins with) and you make sure to compile everything using the same compiler version, it's fine. This is known as the "fragile binary interface problem". If you compile everything (SSGM and every plugin you use) with VS2010, the problem is avoided.

So the SSGm built on 2005/8 will not work with a plugin built off 2010?

Will scripts 4 have an SSGm + plugins in vs 2010?


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: How to setup a Visual Studio 2010 SSGM plugin? [message #449549 is a reply to message #449538] Sun, 10 July 2011 12:01 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
halo2pac wrote on Sat, 09 July 2011 22:37

saberhawk wrote on Sat, 09 July 2011 16:19

I don't have a VS2010 plugin solution handy, but I do have some knowledge about the problem. The SSGM built off scripts 3.x uses std:: classes in the plugin interface. The problem with that is that said classes aren't guaranteed to stay the same between different compiler versions. When you write code that uses them and it's only for "internal" code (ie not a public plugin interface you expect other people to write plugins with) and you make sure to compile everything using the same compiler version, it's fine. This is known as the "fragile binary interface problem". If you compile everything (SSGM and every plugin you use) with VS2010, the problem is avoided.

So the SSGm built on 2005/8 will not work with a plugin built off 2010?

Will scripts 4 have an SSGm + plugins in vs 2010?


Nope, it won't. SSGM compiled with VS2005 needs plugins with compiled VS2005, SSGM compiled with VS2008 needs plugins compiled with VS2008, etc. The same issue can even apply with updates released for VS because the standard library can change.

4.0 has a new SSGM that doesn't suffer from this problem because it doesn't use std::* in the plugin interface, but plugins will need to be updated to support the new interface.
Re: How to setup a Visual Studio 2010 SSGM plugin? [message #449550 is a reply to message #449420] Sun, 10 July 2011 12:23 Go to previous message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Registering chat commands (which uses an std::vector interface) with a plugin compiled with VS2008 on the stock SSGM (that's compiled with VS2005) crashes the FDS, dunno about any other issues.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Previous Topic: Hey its me again with a questions to bear!!??Maybe i will get answers?
Next Topic: Renegade Mutants Site
Goto Forum:
  


Current Time: Wed Dec 18 04:07:57 MST 2024

Total time taken to generate the page: 0.00916 seconds