Author Topic: Figure out which client saves bricks on a server?  (Read 1084 times)

I'm trying to transfer variables placed on bricks between the client and the server anytime he saves bricks, but don't know if its possible to figure out which client saves bricks.

There is no good way you can do that.
I can only think of 2 ways:

1. Have a client-sided add-on that packages savebricks_save() and tells the server that you do now want the variable list
2. Turn on trace, wrap an external program to parse console output and search for servercmdrequestextendedbrick info, since that is the function for when a client saves bricks but you cannot package it for obvious reasons.

Code: [Select]
The client sends the SaveBricks_Save(); command to the server.

His client add-on parents the SaveBricks_Save(); command and sends notification to the server that he is saving.

Notification sent to the server tells the server to loop through his BrickGroup, if hes the host.

Any brickGearBoxData eval variable will be logged, and sent to the player.

The player will create a scriptObject, and parent all of the variables sent to him to the object.

When the server reaches the end of the BrickGroup, it sends notification to the player.

The player will save the scriptObject variables to a file in his config, with the save name.

Would this work?

The client sends requestextendedbrickinfo to the server, not savebricks_save.
However yes, that should work.

But you gotta be careful with sending a command to the server, other hosts can also create it but make it auto-ban people on saving.

The client sends requestextendedbrickinfo to the server, not savebricks_save.
However yes, that should work.

But you gotta be careful with sending a command to the server, other hosts can also create it but make it auto-ban people on saving.
There is nothing I can do about that.

My add-on aims to save more brick info upon saving rather than creating some manual saving option that less people will use.

If someone wants to be a jackass and modify the code, its out of my hands.

And you have informed me that I would require an external program in order to do something with that alternate command.
« Last Edit: February 15, 2013, 08:57:32 AM by Conservative »

And you have informed me that I would require an external program in order to do something with that alternate command.
No
If you wanted to not use another command you would have to