Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » tmsg doesnt trigger ::onchat
tmsg doesnt trigger ::onchat [message #463966] Thu, 08 March 2012 06:44 Go to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
as the title says tmsg doesnt trigger the onchat command

if it is an error on my side pls tell me.


Owner of kambot TT server

kambot.freeforums.org
Re: tmsg doesnt trigger ::onchat [message #463968 is a reply to message #463966] Thu, 08 March 2012 07:07 Go to previous messageGo to next message
nuker7738 is currently offline  nuker7738
Messages: 26
Registered: February 2009
Karma: 0
Recruit
we can't know if it's an error on your part if you don't post your script code >_>
Re: tmsg doesnt trigger ::onchat [message #463969 is a reply to message #463966] Thu, 08 March 2012 07:15 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

It triggers the hook that can be used by calling AddHostHook. It indeed seems to make more sense to call the chat hook instead.

BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Re: tmsg doesnt trigger ::onchat [message #463973 is a reply to message #463969] Thu, 08 March 2012 08:55 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
nuker7738 wrote on Thu, 08 March 2012 15:07

we can't know if it's an error on your part if you don't post your script code >_>


if it is in my code im trying to fix it already, i just wonder if it is a bug.
I saw they made a new textmessageenum special for the tmsg maybe the hook doesnt respondon it.but what do i know Wink

StealthEye wrote on Thu, 08 March 2012 15:15

It triggers the hook that can be used by calling AddHostHook. It indeed seems to make more sense to call the chat hook instead.


i dont really understand what youre saying here :s


Owner of kambot TT server

kambot.freeforums.org
Re: tmsg doesnt trigger ::onchat [message #463988 is a reply to message #463968] Thu, 08 March 2012 12:06 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)

nuker7738 wrote on Thu, 08 March 2012 08:07

we can't know if it's an error on your part if you don't post your script code >_>

As he said, good luck getting any real help unless you post what you're talking about. I doubt your code is that confidential.


-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: tmsg doesnt trigger ::onchat [message #464017 is a reply to message #463966] Thu, 08 March 2012 16:38 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

It currently calls the "Host hook" when TMSG is executed, which is supposed to be triggered when the host sends a message (e.g. MSG command). I added it to the todo to change this to trigger the chat hook instead.

Currently, the host hook can be used by calling AddHostHook from a SSGM plugin or SSGM itself, but not via the same method other hooks are used.

There is no need for him to post the source code; it's a change TT will have to make to make it trigger the chat hook.


BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/

[Updated on: Thu, 08 March 2012 16:38]

Report message to a moderator

Re: tmsg doesnt trigger ::onchat [message #464349 is a reply to message #463966] Tue, 13 March 2012 06:55 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

ok, this is fixed, TMSG console command will now call the chat hook as well as the host hook.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: tmsg doesnt trigger ::onchat [message #473777 is a reply to message #463966] Fri, 31 August 2012 12:34 Go to previous message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
The host hook doesn't trigger on regular host messages

Host: The game has started.
msg mmmmm
>HOSTHOOK -1, mmmmm

>msg mmmmmmmmmmmmmmm
>HOSTHOOK -1, mmmmmmmmmmmmmmm

>tmsg 1 weeeeeeeeeeeeeeeeeeeeeeeeeee
>
>Player rawr joined the game
GameSpy mode active since 8/31/2012 - 13:27:48 PM
Gameplay in progress
     Map : C&C_Field.mix
    Time : 0.09.56
     Fps : 63
     GDI : 1/20 players      0 points
     NOD : 0/20 players      0 points

>tmsg 1 weeeeeeeeeeeeeeeeeeee
>HOSTHOOK 1, weeeeeeeeeeeeeeeeeeee

rawr: mmmmmmmmmmmmmmmm
gameover
>Terminating game on demand...

>Loading level C&C_Hourglass.mix
Host: Teams have been remixed.
Load 100% complete
Level loaded OK
Load took 69.9 seconds. Waiting for players...
Finished waiting after 0.0 seconds. Some players are still loading.
Host: The game has started.


http://s18.postimage.org/jc6qbn4k9/bricks3.png
Previous Topic: Tiberian Technologies releases TT-scripts 4.0 open beta 5!
Next Topic: Server Crashes
Goto Forum:
  


Current Time: Thu Nov 21 19:29:53 MST 2024

Total time taken to generate the page: 0.00742 seconds