Page 1 of 1

switchScriptTool --pack

Posted: Tue Feb 23, 2021 11:23 pm
by stargazerllc
Does anyone know the importance of packing up a node script using the switchScriptTool --pack vs just using the script folder?

Re: switchScriptTool --pack

Posted: Tue Feb 23, 2021 11:38 pm
by patej
It depends on how your environment is setup and what kind of things you do with the scripts, but one key thing is that using script folders is currently a bit slower than using packed scripts. There are some other reasons, too, and Enfocus has listed those on this page: https://www.enfocus.com/manuals/Develop ... cript.html

Re: switchScriptTool --pack

Posted: Wed Feb 24, 2021 12:37 am
by stargazerllc
thanks, I thought I looked all through that and didn't find a good list. I guess I missed it. That list looks like a good explanation.

Re: switchScriptTool --pack

Posted: Wed Feb 24, 2021 12:09 pm
by foxpalace
remember - if you are using a Icon in that Script - the pack would only work, when the icon-name is the same as the script

Re: switchScriptTool --pack

Posted: Thu Mar 11, 2021 3:26 pm
by borisCM
switch is not accepting my packed script folders. anyone else had this problem?
am i doing something wrong?

SwitchScriptTool.exe --pack .
creates a .sscript file in the chosen folder, but switch does not accept it.

using switch 2020 fall

Re: switchScriptTool --pack

Posted: Thu Mar 11, 2021 3:33 pm
by patej
I think you should pack it outside the script folder so that it doesn't overwrite the "0 KB .sscript".
For example:

Code: Select all

SwitchScriptTool.exe --pack . ../build/
to have it created inside a "build" directory at the same level as your script folder.

Re: switchScriptTool --pack

Posted: Thu Mar 11, 2021 4:06 pm
by borisCM
sorry,
that wasn't clear
i pack it to ../../PRD
so it is outside of the original folder