Talk:UserCmd strings: Difference between revisions
Jump to navigation
Jump to search
(questions about >255 char in con commands) |
No edit summary |
||
Line 10: | Line 10: | ||
::We are building lua scripts in our mod through a lua editor that we built using vgui windows. Client-to-server: Changes that occur on the client side (i.e. through the editor) need to be mirrored on the server side so that other players in the map can view the changes in their editors. Server-to-client: When users connect to a world, their client needs to get the most recent version of the code (which is contained on the server). The lua scripts (and sometimes the individual changes by users) are bigger than 255 chars. We tried parsing the lua script into 255 char chunks, then sending one chunk per frame, but that is way too slow. Any ideas for the most efficient way of handling this issue? --[[User:Daktor|Daktor]] 10:45, 8 Aug 2006 (PDT) | ::We are building lua scripts in our mod through a lua editor that we built using vgui windows. Client-to-server: Changes that occur on the client side (i.e. through the editor) need to be mirrored on the server side so that other players in the map can view the changes in their editors. Server-to-client: When users connect to a world, their client needs to get the most recent version of the code (which is contained on the server). The lua scripts (and sometimes the individual changes by users) are bigger than 255 chars. We tried parsing the lua script into 255 char chunks, then sending one chunk per frame, but that is way too slow. Any ideas for the most efficient way of handling this issue? --[[User:Daktor|Daktor]] 10:45, 8 Aug 2006 (PDT) | ||
You could increase the buffer size...—'''[[User:Ts2do|ts2do]]''' 12:42, 8 Aug 2006 (PDT) |
Revision as of 12:42, 8 August 2006
I'm going to change this so it doesn't depend on KeyValues later—ts2do 07:29, 17 Jun 2006 (PDT)
What about using events and encrypt the msg contents? It's more reliable and can be catched anywhere. --dutchmega 05:55, 31 Jul 2006 (PDT)
- Can you send events from the client to the server?—ts2do 20:04, 31 Jul 2006 (PDT)
So what about over 255 chars? Any ideas for the most efficient method? --Daktor 20:20, 6 Aug 2006 (PDT)
- It shouldn't be over 255 chars because that's the largest string the buffer can hold...which is more than plenty—ts2do 23:06, 6 Aug 2006 (PDT)
- We are building lua scripts in our mod through a lua editor that we built using vgui windows. Client-to-server: Changes that occur on the client side (i.e. through the editor) need to be mirrored on the server side so that other players in the map can view the changes in their editors. Server-to-client: When users connect to a world, their client needs to get the most recent version of the code (which is contained on the server). The lua scripts (and sometimes the individual changes by users) are bigger than 255 chars. We tried parsing the lua script into 255 char chunks, then sending one chunk per frame, but that is way too slow. Any ideas for the most efficient way of handling this issue? --Daktor 10:45, 8 Aug 2006 (PDT)
You could increase the buffer size...—ts2do 12:42, 8 Aug 2006 (PDT)