Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » SSGM plugin crashes when trying to add a chat command
SSGM plugin crashes when trying to add a chat command [message #449019] Wed, 22 June 2011 14:14 Go to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
I'm working on a plugin for which I added a chat command. The chat command merely executes a Console_Input() statement. I copy-pasted the exact stuff from the SSGM Example Plugin Source, I can load up the server fine but as soon as I type something in-game with the first character being '!' the server crashes. I got 5 plugins loaded and this is the fifth one. If I configure it to only load this WIP plugin it'll will crash when the console outputs 'Load 0% Complete'. If I remove the ChatCommand blabla Reg stuff it works fine.

Are there any known issues with adding chat commands via the SSGM Plugin system? Here's the very WIP and messy code I got now:

plugin.cpp:

http://pastebin.com/8PpAS3cB

plugin.h:

http://pastebin.com/iSwn8WVY


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

[Updated on: Wed, 22 June 2011 14:15]

Report message to a moderator

Re: SSGM plugin crashes when trying to add a chat command [message #449029 is a reply to message #449019] Wed, 22 June 2011 23:17 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
did you recompile ssgm I have had several chat commands that would crash my server.
If I recompiled with the same compiler version as the plugin it would work.
Also are you running RR on your test server bhs chat hook doesn't like rr.


http://s18.postimage.org/jc6qbn4k9/bricks3.png

[Updated on: Wed, 22 June 2011 23:19]

Report message to a moderator

Re: SSGM plugin crashes when trying to add a chat command [message #449039 is a reply to message #449019] Thu, 23 June 2011 08:37 Go to previous message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Nope, it's stock SSGM from the BC site I guess. People have suggested compiling the example plugin and seeing if it works but I don't understand why it isn't working as the #includes are the same and I just pasted the example ChatCommand code crap. It's quite frustrating.

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: C&C Renegade Laser Security Model
Next Topic: AI Vehicles and Stealthing
Goto Forum:
  


Current Time: Thu Dec 19 10:43:07 MST 2024

Total time taken to generate the page: 0.01252 seconds