Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Writing a NetRadiant plugin with Visual C++

#1
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
[Image: 604.png] We Think We aRe Pros (Homepage)

Reply

#2
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.
BRLOGENSHFEGLE (core dumped)

The Bot Orchestra is back! | Xoylent Easter Egg | 5bots1piano
My music on Google Play and SoundCloud
Reply

#3
Also, I see you pass the wrong type argument to registerModule. You probably need to fix this.
BRLOGENSHFEGLE (core dumped)

The Bot Orchestra is back! | Xoylent Easter Egg | 5bots1piano
My music on Google Play and SoundCloud
Reply

#4
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)
[Image: 604.png] We Think We aRe Pros (Homepage)

Reply

#5
No idea. NetRadiant is not compiled with Visual Studio normally, but gcc (mingw32).
BRLOGENSHFEGLE (core dumped)

The Bot Orchestra is back! | Xoylent Easter Egg | 5bots1piano
My music on Google Play and SoundCloud
Reply

#6
Yeah I know, but I thought It'd be possible anyways.
And compiling NetRadiant with Visual Studio isn't possible either I guess?
[Image: 604.png] We Think We aRe Pros (Homepage)

Reply

#7
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.
BRLOGENSHFEGLE (core dumped)

The Bot Orchestra is back! | Xoylent Easter Egg | 5bots1piano
My music on Google Play and SoundCloud
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [TUTORIAL] Writing your first mutator Lyberta 0 2,452 04-29-2017, 01:42 PM
Last Post: Lyberta
  NetRadiant issues Garux 7 9,318 02-18-2015, 04:48 AM
Last Post: Garux
  Error Compiling NetRadiant on OS X 10.10 cityy 2 4,385 01-02-2015, 12:42 PM
Last Post: cityy
  [SOLVED] NetRadiant compile Windows 7 toneddu2000 21 21,373 09-29-2014, 12:23 PM
Last Post: Mr. Bougo
  Netradiant crash on startup speaker 6 8,190 06-05-2012, 08:27 AM
Last Post: CuBe0wL
  netradiant textures not loading tangerian 1 4,169 06-05-2012, 01:34 AM
Last Post: PinkRobot
  q3map2 alternatives for NetRadiant MirceaKitsune 31 41,860 05-17-2010, 06:41 PM
Last Post: VNilla

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-