[HOUNDS] CptTrips Posted September 25, 2023 Posted September 25, 2023 If I understand correctly, in a MP mission all script run on the server. So, is there any difference between statically linking the Moose or Mist script file vs dynamically loading it? If I statically link the file, does that 6mb script get distributed to the clients? Or does it just send the parts the client needs? Thanks in advance.
razo+r Posted September 25, 2023 Posted September 25, 2023 Normally, any image, script and other stuff you put into the mission via the editor will also be within the .miz file itself. The .miz file is basically a .zip file but with a different name. You can open it with winrar or similar and then check how much of what is contained in the file.
[HOUNDS] CptTrips Posted September 25, 2023 Author Posted September 25, 2023 38 minutes ago, razo+r said: Normally, any image, script and other stuff you put into the mission via the editor will also be within the .miz file itself. The .miz file is basically a .zip file but with a different name. You can open it with winrar or similar and then check how much of what is contained in the file. So when a client connects to a MP server mission, the mission and all it's scripts (if added by file include) is transferred to the client even though the client isn't going to run any of that script? I hoped the server would understand to strip all script because script can't be executed on the client and only send what is needed, but it is good to know for sure if it doesn't.
razo+r Posted September 25, 2023 Posted September 25, 2023 2 minutes ago, [16AGR] CptTrips said: So when a client connects to a MP server mission, the mission and all it's scripts (if added by file include) is transferred to the client even though the client isn't going to run any of that script? Yes, though I am not 100% sure. You can check it yourself. If you join a server, DCS should generate a track file which is basically the same as a miz file. Open it to see if all the scripts are also in there. 2 minutes ago, [16AGR] CptTrips said: I hoped the server would understand to strip all script because script can't be executed on the client and only send what is needed, but it is good to know for sure if it doesn't.
Recommended Posts