Re: [hlcoders] Generating events from an orangebox server plugin

2008-05-22 Thread Nephyrin Zey
setinfo isn't executable by the server :-/

I found out my player->SetPlayerName // gamerules->ChangePlayerName
hooks were bored, so one of these might actually trigger the
appropriate event as they fire - I'll mess with it more later today

- Neph

On Thu, May 22, 2008 at 6:18 AM, Tom Leighton
<[EMAIL PROTECTED]> wrote:
> For instance with the name change, could you not force the client to run
> the command again, thus, generating the event for you?
>
> I.e. when name is to change, run on the client setinfo name "Blah" ?
>
> Not sure whether setinfo is marked as SERVER_CANT_EXECUTE or not.
>
> Keeper wrote:
>> Ah, ok.  I understand now.
>>
>> I just ( thankfully ) downgraded back to XP, so I don't have my SDK loaded
>> yet.  My guess is that this event is a client generated event.  With the
>> plugin, firing it at the server level might just not do anything with the
>> clients.
>>
>> Keeper
>>
>> -Original Message-
>> From: Nephyrin Zey [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, May 22, 2008 8:39 AM
>> To: Discussion of Half-Life Programming
>> Subject: Re: [hlcoders] Generating events from an orangebox server plugin
>>
>> I'm aware that it will not cause the name to change. Rather, I am
>> trying to trigger a notification to other players that the name *has*
>> changed. It's not just this event, either - I can't seem to generate
>> any events that would notify the clients of *anything*
>>
>> - Neph
>>
>>
>> ___
>> To unsubscribe, edit your list preferences, or view the list archives, 
>> please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>
>>
>>
>
> ___
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Generating events from an orangebox server plugin

2008-05-22 Thread Tom Leighton
For instance with the name change, could you not force the client to run 
the command again, thus, generating the event for you?

I.e. when name is to change, run on the client setinfo name "Blah" ?

Not sure whether setinfo is marked as SERVER_CANT_EXECUTE or not.

Keeper wrote:
> Ah, ok.  I understand now.
>
> I just ( thankfully ) downgraded back to XP, so I don't have my SDK loaded
> yet.  My guess is that this event is a client generated event.  With the
> plugin, firing it at the server level might just not do anything with the
> clients.
>
> Keeper
>
> -Original Message-
> From: Nephyrin Zey [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 22, 2008 8:39 AM
> To: Discussion of Half-Life Programming
> Subject: Re: [hlcoders] Generating events from an orangebox server plugin
>
> I'm aware that it will not cause the name to change. Rather, I am
> trying to trigger a notification to other players that the name *has*
> changed. It's not just this event, either - I can't seem to generate
> any events that would notify the clients of *anything*
>
> - Neph
>
>
> ___
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
>   

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Generating events from an orangebox server plugin

2008-05-22 Thread Keeper
Ah, ok.  I understand now.

I just ( thankfully ) downgraded back to XP, so I don't have my SDK loaded
yet.  My guess is that this event is a client generated event.  With the
plugin, firing it at the server level might just not do anything with the
clients.

Keeper

-Original Message-
From: Nephyrin Zey [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 22, 2008 8:39 AM
To: Discussion of Half-Life Programming
Subject: Re: [hlcoders] Generating events from an orangebox server plugin

I'm aware that it will not cause the name to change. Rather, I am
trying to trigger a notification to other players that the name *has*
changed. It's not just this event, either - I can't seem to generate
any events that would notify the clients of *anything*

- Neph


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Generating events from an orangebox server plugin

2008-05-22 Thread Nephyrin Zey
I'm aware that it will not cause the name to change. Rather, I am
trying to trigger a notification to other players that the name *has*
changed. It's not just this event, either - I can't seem to generate
any events that would notify the clients of *anything*

- Neph

On Thu, May 22, 2008 at 5:27 AM, Keeper <[EMAIL PROTECTED]> wrote:
> I don't think this will work.  Events are notifications of something that
> happened.
>
> When the user does a "setinfo name" command, this event gets triggered.
> Firing this event yourself will not cause the name to change.
>
> Keeper
> -Original Message-
> From: Nephyrin Zey [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 22, 2008 5:53 AM
> To: Discussion of Half-Life Programming
> Subject: [hlcoders] Generating events from an orangebox server plugin
>
> Hey all, I'm trying to generate events from within a tf2 server
> plugin, but am having no luck.
>
> The code:
>
>IGameEvent *event =
> gameeventmanager->CreateEvent("player_changename");
>if (event)
>{
>event->SetInt("userid", pi->GetUserID());
>event->SetString( "oldname", pi->GetName());
>event->SetString( "newname", "test");
>gameeventmanager->FireEvent(event);
>}
>
> The result: nothing. Nobody sees a name change. It's not just the
> changename event, I can't seem to make any events go through. I've
> tried using IGameEventManager and IGameEventManager2 interfaces, no
> difference. My event listener hook sees the generated events go by
> server side, but no clients are receiving them.
>
> What am I missing here?
>
> - Neph
>
>
> ___
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Generating events from an orangebox server plugin

2008-05-22 Thread Keeper
I don't think this will work.  Events are notifications of something that
happened.

When the user does a "setinfo name" command, this event gets triggered.
Firing this event yourself will not cause the name to change.

Keeper 
-Original Message-
From: Nephyrin Zey [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 22, 2008 5:53 AM
To: Discussion of Half-Life Programming
Subject: [hlcoders] Generating events from an orangebox server plugin

Hey all, I'm trying to generate events from within a tf2 server
plugin, but am having no luck.

The code:

IGameEvent *event =
gameeventmanager->CreateEvent("player_changename");
if (event)
{
event->SetInt("userid", pi->GetUserID());
event->SetString( "oldname", pi->GetName());
event->SetString( "newname", "test");
gameeventmanager->FireEvent(event);
}

The result: nothing. Nobody sees a name change. It's not just the
changename event, I can't seem to make any events go through. I've
tried using IGameEventManager and IGameEventManager2 interfaces, no
difference. My event listener hook sees the generated events go by
server side, but no clients are receiving them.

What am I missing here?

- Neph


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



[hlcoders] Generating events from an orangebox server plugin

2008-05-22 Thread Nephyrin Zey
Hey all, I'm trying to generate events from within a tf2 server
plugin, but am having no luck.

The code:

IGameEvent *event = gameeventmanager->CreateEvent("player_changename");
if (event)
{
event->SetInt("userid", pi->GetUserID());
event->SetString( "oldname", pi->GetName());
event->SetString( "newname", "test");
gameeventmanager->FireEvent(event);
}

The result: nothing. Nobody sees a name change. It's not just the
changename event, I can't seem to make any events go through. I've
tried using IGameEventManager and IGameEventManager2 interfaces, no
difference. My event listener hook sees the generated events go by
server side, but no clients are receiving them.

What am I missing here?

- Neph

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders