Game Development Community

Remote command parameters limitation

by Claude-Alain Fournier · in Torque Game Engine · 10/25/2004 (4:49 am) · 0 replies

Hi,

Just a question to GG team (or who ever can answer).

In the net.cc and compiledEvel.cc you set the limit for the numbers of parameters you can pass to remote commands or functions to 20. (see code)

net.cc
class RemoteCommandEvent : public NetEvent
{
public:
   enum {
      [b]MaxRemoteCommandArgs = 20,[/b]
      CommandArgsBits = 5
   };
......

compiledEval.cc
struct StringStack
{
   enum {
      MaxStackDepth = 1024,
      [b]MaxArgs = 20,[/b]
      ReturnBufferSpace = 512
   };

Now my question is why this limit ? is it just some number that you find big enough to suit you needs ? Is it a limit that is required technically ?

I changed it to 30 and everything seems working ok, but I don't want to get into troubles later or randomly. So is that alright to make these changes without breaking anything.

Thanks.

CAF