Hi list,

I'm back with an evolution.

As said previously, CUserCmd was what I was looking for and I succeed
sending additional information and reading them. BUT I'm encountering a
weird problem: when I'm starting recording a demo, it doesn't work fine.

I decided to check that I have same amount of Read and Write. I discovered
that when I don't record anything it is perfectly synchronous and I have the
same number of Write and Read (packets of 8 write and 8 read) but when I
start recorded I have twice more Write (packets of 16 write instead of 8)
and only one more Read (packets of 9 instead of 8).

Does anybody in here can explain why I have this result. Do I have to
proceed differently ? I simply altered WriteUsercmd and ReadUsercmd to add
my values.

J.

2008/12/8 Janek <[email protected]>

> Thank you for the link. In fact, it confirms what I finally understood.
> Good :)
>
> 2008/12/7 Ryan Sheffer <[email protected]>
>
> Here is an interesting article by ts2do on sending strings of data from the
>> client to the server using the usercmd. Its great for sending secure data
>> from VGUI elements or anything else.
>>
>> http://developer.valvesoftware.com/wiki/UserCmd_strings
>>
>> On Sat, Dec 6, 2008 at 12:20 AM, Janek <[email protected]> wrote:
>>
>> > CUserCmd sounds to be what I was looking for.
>> >
>> > Thank you very much for your help :-)
>> >
>> > 2008/12/6 Andrew Ritchie <[email protected]>
>> >
>> > > You could mod the CUserCMD class I believe so that it is capable of
>> > holding
>> > > extra data, like at the very end have a bit to indicate whether there
>> is
>> > > more data to be read or not.  The issue you could have with that is
>> the
>> > > chance of the information never arrive or being discarded for being
>> too
>> > > late
>> > > to be of use.  But that command packet is the most flexible way you
>> could
>> > > attach data, otherwise pulling it out of the ClientCmd string.  If you
>> > > spend
>> > > time rooting around in the SDK code yourself and understanding how
>> > sources
>> > > networking functions you'll know immediately what the best approach is
>> > for
>> > > your needs.
>> > >
>> > > On Fri, Dec 5, 2008 at 10:54 PM, Jorge Rodriguez <[email protected]>
>> > > wrote:
>> > >
>> > > > engine->ClientCmd() is equivalent to typing something into your
>> > console.
>> > > A
>> > > > faster way to type something into your console is to bind a key to
>> it.
>> > > > There's really nothing that ClientCmd() can send that can't be sent
>> by
>> > > > binding it to a key somehow.
>> > > >
>> > > > --
>> > > > Jorge "Vino" Rodriguez
>> > > > _______________________________________________
>> > > > 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
>> > >
>> > >
>> >
>> >
>> > --
>> > -------------------
>> > j...@nek
>> > _______________________________________________
>> > To unsubscribe, edit your list preferences, or view the list archives,
>> > please visit:
>> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
>> >
>> >
>>
>>
>> --
>> ~Ryan
>>  _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives,
>> please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>
>>
>
>
> --
> -------------------
> j...@nek
>



-- 
-------------------
j...@nek
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to