Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » k wtf commands half way work now??
k wtf commands half way work now?? [message #468826] Sat, 09 June 2012 12:53 Go to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

So I put all my commands into the new source and put the updated scripts.dll in my server loaded it up to test, and it works half way.

When you do !bind it give's you the message like it should, but it doesn't show that you typed !bind???

Am I missing something here?

bool SSGMGameManager::ChatHook(int PlayerID,TextMessageEnum Type,const wchar_t *Message,int recieverID)
{
		if (VehicleOwnership)
		{
			GameObject *obj = Get_GameObj(PlayerID);
			if (wcsistr(Message,L"!bind") == Message)
			{
				Bind_Vehicle(obj);
				return false;
			}
			if (wcsistr(Message,L"!lock") == Message)
			{
				Lock_Vehicle(obj);
				return false;
			}
			if (wcsistr(Message,L"!bl") == Message)
			{
				Bind_Vehicle(obj);
				Lock_Vehicle(obj);
				return false;
			}
			if (wcsistr(Message,L"!unbind") == Message)
			{
				Unbind_Vehicle(obj);
				return false;
			}
			if (wcsistr(Message,L"!unlock") == Message)
			{
				Unlock_Vehicle(obj);
				return false;
			}
			if (wcsistr(Message,L"!vkick") == Message)
			{
				Kick_Vehicle_Driver(obj);
				return false;
			}
			if (wcsistr(Message,L"!c4") == Message)
			{
				GameObject *Player = Get_GameObj(PlayerID);
				Print_C4(Player);
				return false;
			}
			if (wcsistr(Message,L"!irc") == Message) 
			{
				Console_Input("msg The DSGaming IRC is located @ irc.dsgaming.us");
				return false;
			}
			if (wcsistr(Message,L"!ts") == Message) 
			{
				Console_Input("msg The DSGaming TeamSpeak is located @ dsts.us:3369");
				return false;
			}
			if (wcsistr(Message,L"!website") == Message)
			{
				Console_Input("msg The DSGaming IRC is located @ dsgaming.us");
				return false;
			}


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
Re: k wtf commands half way work now?? [message #468827 is a reply to message #468826] Sat, 09 June 2012 12:59 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
1. Learn to read and understand the code Sarcasm
2. The commands are not showned in public chat due to the way the ChatHook function works. If return false; then it will not show in chat. If return true; then it will show in public chat.


http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder
Re: k wtf commands half way work now?? [message #468830 is a reply to message #468827] Sat, 09 June 2012 13:07 Go to previous messageGo to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

Xpert wrote on Sat, 09 June 2012 14:59

1. Learn to read and understand the code Sarcasm
2. The commands are not showned in public chat due to the way the ChatHook function works. If return false; then it will not show in chat. If return true; then it will show in public chat.


Then they must of changed it...

It was working like that in beta 4.

and I have been learning to read the code ;p

You saying that is pretty much saying zunnie needs to learn to read it to and darknes2 as well, they both helped me to get all of it to work in beta expect the sounds and info.


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
Re: k wtf commands half way work now?? [message #468831 is a reply to message #468826] Sat, 09 June 2012 13:08 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4300
Registered: April 2011
Karma: 0
General (4 Stars)
The chat hoook has been blockable since the first public release of scripts 4.0, the ssgm 2.0.2 chat hook isn't blockable.

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: k wtf commands half way work now?? [message #468835 is a reply to message #468826] Sat, 09 June 2012 13:37 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
Like I said, learn the code instead of going OMGWTFBBQS. The contents that are in SSGM 2.0.2 are not the same as the SSGM in 4.0

A lot of code differences, especially in the way certain hooks work.


http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder
Re: k wtf commands half way work now?? [message #468839 is a reply to message #468835] Sat, 09 June 2012 13:49 Go to previous messageGo to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

Xpert wrote on Sat, 09 June 2012 15:37

Like I said, learn the code instead of going OMGWTFBBQS. The contents that are in SSGM 2.0.2 are not the same as the SSGM in 4.0

A lot of code differences, especially in the way certain hooks work.


I under stand that, what I was getting at was in beta 4 ssgm with it saying return false it still showed the text.

Then I put it in beta 5 ssgm and then it wouldn't work...

All you had to say was the return false was wrong to set them to return true and I wouldn't of said anything else, but thank you for your help.

Now no where in my first post was I talking about ssgm 2.0.2...

And btw xpert thank you it now works again.


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
Re: k wtf commands half way work now?? [message #468879 is a reply to message #468826] Sat, 09 June 2012 16:59 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

Idk, I think you hadn't implemented the code yet when you thought you had, because they definitely didn't just flip the chat hook setup around for beta 5. Returning false in beta 4 and earlier definitely did the same thing it does now.

-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: k wtf commands half way work now?? [message #468880 is a reply to message #468826] Sat, 09 June 2012 17:02 Go to previous messageGo to next message
Mauler
Messages: 448
Registered: May 2003
Location: Alberta, Canada
Karma: 0
Commander
I don't know about the rest of you guys but I really think all these code questions could be contained into one thread. Instead of creating multiple threads asking how you do this or that every time you run into a problem. Just saying.
Re: k wtf commands half way work now?? [message #468887 is a reply to message #468880] Sat, 09 June 2012 17:25 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
If each question is about something else/unrelated to the previous but by the same user, that is debateable.
TBH I prefer it if people split it up if it's unrelated. If I was a mod I might even do so if it is posted in a previous topic xD
Makes it not only easier for others to search for later but also makes sure the topic is about 1 thing instead of multiple Thumbs Up

PS. Might be a programmers pov though. As one, I want users to seperate every bug in a seperate report. Same for questions etc. Satisfied


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: k wtf commands half way work now?? [message #468898 is a reply to message #468826] Sun, 10 June 2012 00:00 Go to previous messageGo to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

@Ethenal

The code in beta 4 source is set to return false and it does show the chat when you type in !ram, when I put it in beta 5 and rebuilt the hole solution and tested it, it did not show !ram, when I did what xpret said it started to work again, and IDK WHY you are posting After I thanked xpret for helping me, because it is not needed...

My codes are working now that it is return true.

You can look at the code I released in the release forum and see that it was set to return false and I wasn't having a problem with it, or else I wouldn't have released them to help other people out.

@Mauler

No it is not better to place it into 1 thread unless it is about the same thing, If I where to make 1 topic and keep adding my problems people would get confused and just start, raging at me.

I've tried that before so I do know.

And besides the point, your message was off topic.

@Omar007

It is not a programers pov, it's one person that want's it his way...

And if you look in the TT forum they keep everything separate.


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
Re: k wtf commands half way work now?? [message #468901 is a reply to message #468826] Sun, 10 June 2012 01:09 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

I consulted the mute plugin from the first tt beta source and found that I am indeed correct, the mute plugins chat hook returns false if the sender of the message is muted.

Now kindly stop acting like you know what you're talking about.


-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: k wtf commands half way work now?? [message #468903 is a reply to message #468826] Sun, 10 June 2012 02:21 Go to previous messageGo to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

Well guess what this is the way my beta 4 script is set.
	if (wcsistr(Message,L"!irc") == Message) {
		Console_Input("msg The DSGaming IRC is located @ irc.dsgaming.us");
		return false;
	}
	if (wcsistr(Message,L"!ts") == Message) {
		Console_Input("msg The DSGaming TeamSpeak is located @ dsts.us:3369");
		return false;
	}
	if (wcsistr(Message,L"!website") == Message) {
		Console_Input("msg The DSGaming IRC is located @ dsgaming.us");
		return false;
	}


And this is the way it is set in beta 5.
			if (wcsistr(Message,L"!irc") == Message) 
			{
				Console_Input("msg The DSGaming IRC is located @ irc.dsgaming.us");
				return true;
			}
			if (wcsistr(Message,L"!ts") == Message) 
			{
				Console_Input("msg The DSGaming TeamSpeak is located @ dsts.us:3369");
				return true;
			}
			if (wcsistr(Message,L"!website") == Message)
			{
				Console_Input("msg The DSGaming IRC is located @ dsgaming.us");
				return true;
			}


Now in the beta 4 code it shows the chat.
In beta 5 it shows when it's true.


And further more, I'm not trying to say or act like I know what I'm talking about, and I'm guessing your just trying to be a fucking troll and a jackass.

All I said is that is weird that IT WORKED IN BETA 4 WITH RETURN FALSE...................

EDIT: Now kindly shove it up your ass!


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide

[Updated on: Sun, 10 June 2012 02:21]

Report message to a moderator

Re: k wtf commands half way work now?? [message #468904 is a reply to message #468826] Sun, 10 June 2012 02:29 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

Beta 1 Code:
	virtual bool OnChat(int PlayerID,TextMessageEnum Type,const wchar_t *Message,int recieverID)
	{
		if(MutedPlayers[PlayerID] == false)
		{
			return true;
		}
		else
		{
			return false;
		}
	}

Beta 5 Code:
	virtual bool OnChat(int PlayerID,TextMessageEnum Type,const wchar_t *Message,int recieverID)
	{
		if(MutedPlayers[PlayerID] == false)
		{
			return true;
		}
		else
		{
			return false;
		}
	}


Comparison of the mute chat hook from TT's beta 1 and beta 5. I even included the links to the source code zip for you.

Oh, strange... they seem to be identical.


-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: k wtf commands half way work now?? [message #468905 is a reply to message #468826] Sun, 10 June 2012 02:49 Go to previous messageGo to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

You know what I'm gonna end this here with this last post.

1 I don't care what the beta 1 says.
2 I don't care what you have to say anymore
3 I was just trying to say it was weird that it worked with return false in the BETA 4 SOURCE, and I had to change it in beta 5, witch was no big deal.

now you can go troll someone else.

and next time maybe READ THE FUCKING POSTS BEFORE YOU POST.


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
Re: k wtf commands half way work now?? [message #468911 is a reply to message #468904] Sun, 10 June 2012 04:45 Go to previous messageGo to next message
BillieJoe67 is currently offline  BillieJoe67
Messages: 35
Registered: March 2012
Karma: 0
Recruit
Ethenal wrote on Sun, 10 June 2012 02:29

Beta 4 Code:
	virtual bool OnChat(int PlayerID,TextMessageEnum Type,const wchar_t *Message,int recieverID)
	{
		if(MutedPlayers[PlayerID] == false)
		{
			return true;
		}
		else
		{
			return false;
		}
	}

Beta 5 Code:
	virtual bool OnChat(int PlayerID,TextMessageEnum Type,const wchar_t *Message,int recieverID)
	{
		if(MutedPlayers[PlayerID] == false)
		{
			return true;
		}
		else
		{
			return false;
		}
	}


Comparison of the mute chat hook from TT's beta 4 and beta 5. I even included the links to the source code zip for you.

Oh, strange... they seem to be identical.


The way it works hasn't changed between beta 4 and 5.... return true to show the chat, return false to block it

Also, if it's no big deal, why did you need to post it?

[Updated on: Sun, 10 June 2012 04:46]

Report message to a moderator

Re: k wtf commands half way work now?? [message #468970 is a reply to message #468826] Sun, 10 June 2012 14:21 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4300
Registered: April 2011
Karma: 0
General (4 Stars)
Could you stop being a douchebag to people trying to help you?

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: k wtf commands half way work now?? [message #468976 is a reply to message #468970] Sun, 10 June 2012 14:56 Go to previous messageGo to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

iRANian wrote on Sun, 10 June 2012 16:21

Could you stop being a douchebag to people trying to help you?


YOU KNOW WHAT SOMEONE ALREADY DID HELP ME......................

THERE IS NO NEED FOR OTHER POSTS ANYMORE..........


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
Re: k wtf commands half way work now?? [message #468977 is a reply to message #468976] Sun, 10 June 2012 15:05 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
DistrbdSt0rm21 wrote on Sun, 10 June 2012 14:56

iRANian wrote on Sun, 10 June 2012 16:21

Could you stop being a douchebag to people trying to help you?


YOU KNOW WHAT SOMEONE ALREADY DID HELP ME......................

THERE IS NO NEED FOR OTHER POSTS ANYMORE..........


Yes their is you where wrong face the Truth!


http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: k wtf commands half way work now?? [message #468981 is a reply to message #468976] Sun, 10 June 2012 15:14 Go to previous message
Sean is currently offline  Sean
Messages: 822
Registered: February 2009
Karma: 0
Colonel
DistrbdSt0rm21 wrote on Sun, 10 June 2012 14:56

iRANian wrote on Sun, 10 June 2012 16:21

Could you stop being a douchebag to people trying to help you?


YOU KNOW WHAT SOMEONE ALREADY DID HELP ME......................

THERE IS NO NEED FOR OTHER POSTS ANYMORE..........


I fail to see why anyone would help you, are all Americans this eccentric?

Your server is not even active..

Instead of writing in capitals like a retard, you should be saying thank you, they don't need to help you but they are. So show some fucking gratitude and stop expecting it, like its your god given right.


Head admin at TmX (The Matrix Sniper server)

irc.thematrixserver.com
The Matrix Sniper: 188.138.84.134:4576

[Updated on: Sun, 10 June 2012 15:26]

Report message to a moderator

Previous Topic: need some help with 3ds
Next Topic: memtracker message
Goto Forum:
  


Current Time: Sat Jul 13 17:36:05 MST 2024

Total time taken to generate the page: 0.01003 seconds