Xonotic Forums
Writing a NetRadiant plugin with Visual C++ - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10)
+--- Forum: Xonotic - Development (https://forums.xonotic.org/forumdisplay.php?fid=12)
+--- Thread: Writing a NetRadiant plugin with Visual C++ (/showthread.php?tid=2276)



Writing a NetRadiant plugin with Visual C++ - Nitroxis - 10-27-2011

Hey

I'm currently trying to write a plugin for NetRadiant with Visual C++. Right now, it's just a simple plugin that should add an entry to the menu bar. My problem is that NetRadiant always crashes on startup when trying to load that plugin. It looks like strings and/or pointers do not get passed correctly.

GDB backtrace: http://pastebin.com/mfxDjEd1

Thanks in advance Wink


RE: Writing a NetRadiant plugin with Visual C++ - divVerent - 10-28-2011

Can you try comparing to the Bobtoolz plugin? That one is known to work, but no idea about the "example" plugin. I doubt id software ever tested this, the plugin may even use 1.4 API and not 1.5 stuff.


RE: Writing a NetRadiant plugin with Visual C++ - divVerent - 10-28-2011

Also, I see you pass the wrong type argument to registerModule. You probably need to fix this.


RE: Writing a NetRadiant plugin with Visual C++ - Nitroxis - 10-28-2011

Those plugins never have Visual Studio project files (.vcproj). Do I have to create a new project and add all the files to it? (I did this for the sample)

Also, I don't call registerModule directly, I just use selfRegister (which then calls registerModule)


RE: Writing a NetRadiant plugin with Visual C++ - divVerent - 10-28-2011

No idea. NetRadiant is not compiled with Visual Studio normally, but gcc (mingw32).


RE: Writing a NetRadiant plugin with Visual C++ - Nitroxis - 10-28-2011

Yeah I know, but I thought It'd be possible anyways.
And compiling NetRadiant with Visual Studio isn't possible either I guess?


RE: Writing a NetRadiant plugin with Visual C++ - divVerent - 10-28-2011

Nobody made Visual Studio projects for that, but probably the GtkRadiant 1.5.0 files won't need many changes to support NetRadiant.

However, I don't have Windows, so I won't maintain them. If you want to, you can take this task on though. No idea where to get original GtkRadiant 1.5.0 source now though, as zerowing.idsoftware.com is down.