Author Topic: Which servercmd's are used in the save file upload process? - solved  (Read 990 times)

see subject. thanks in advance.
« Last Edit: July 05, 2012, 09:34:07 PM by Lugnut »

« Last Edit: July 05, 2012, 12:59:52 AM by elm »

Trace is your friend.

http://forum.blockland.us/index.php?topic=191941.0
oh my god really.

how demeaning. do you really think I would be asking this if I didn't know how to use trace? I obviously can't use blockland for whatever reason! use your brains people! I've made at least 7 add-ons, not counting dozens of private ones, I know how to loving use trace!

blockland runs like stuff on this machine, it's unusable! I can't test with trace, and it would take you guys 60 seconds to give me the answer I need, AND you would be helping a guy out. what the forget happened to generosity????

edit - day just got stuffty for unrelated reasons, so don't mind me flipping out, but still.
« Last Edit: July 05, 2012, 02:42:34 AM by Lugnut »

Here is a trace of a client uploading a one brick save to a dedicated server.

https://raw.github.com/gist/3051980/31e69664561909d295321e757d6faa5474fca64a/gistfile1.txt



#1: serverCmdInitUploadHandshake
#2: clientCmdInitUploadHandshake (I think)
#3: In any order, repeated as many times as wanted:
    serverCmdUploadSaveFileLine
    serverCmdSetColorMethod
    serverCmdSetSaveUploadDirName

#4: serverCmdEndSaveFileUpload
« Last Edit: July 05, 2012, 03:15:45 AM by Port »

   serverCmdSetColorMethod
    serverCmdSetSaveUploadDirName
I feel like those 2 are only called at the beginning.

I feel like those 2 are only called at the beginning.

I believe they can be called as often as the client wants, though.

Okay, but you only need to call them once at the beginning like Greek2me said. Your example would have anyone who takes you seriously believe it's called for every save file line which is clearly not true.