switchScriptTool --pack

Post Reply
stargazerllc
Newbie
Posts: 12
Joined: Mon Jan 25, 2021 8:24 pm

switchScriptTool --pack

Post by stargazerllc »

Does anyone know the importance of packing up a node script using the switchScriptTool --pack vs just using the script folder?
patej
Member
Posts: 79
Joined: Sun Nov 25, 2012 12:15 pm

Re: switchScriptTool --pack

Post 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
stargazerllc
Newbie
Posts: 12
Joined: Mon Jan 25, 2021 8:24 pm

Re: switchScriptTool --pack

Post 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.
User avatar
foxpalace
Member
Posts: 33
Joined: Fri Jan 14, 2011 12:25 pm
Location: Germany

Re: switchScriptTool --pack

Post 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
borisCM
Member
Posts: 37
Joined: Mon May 06, 2019 12:23 pm
Location: Netherlands

Re: switchScriptTool --pack

Post 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
patej
Member
Posts: 79
Joined: Sun Nov 25, 2012 12:15 pm

Re: switchScriptTool --pack

Post 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.
borisCM
Member
Posts: 37
Joined: Mon May 06, 2019 12:23 pm
Location: Netherlands

Re: switchScriptTool --pack

Post by borisCM »

sorry,
that wasn't clear
i pack it to ../../PRD
so it is outside of the original folder
Post Reply