Page 1 of 1

Is external george scripts compiled into a TVPX?

Posted: 22 Oct 2009, 07:58
by KenC
Just wrapping up a couple scripts so I'm wondering if external scripts that's in a button action via "set script" are grabbed into the TVPX file?

What about #includes in my scripts, does TVPX format take care of all that for me and wrap them into the TVPX file?

Re: Is external george scripts compiled into a TVPX?

Posted: 22 Oct 2009, 08:27
by Hervé
KenC wrote:Just wrapping up a couple scripts so I'm wondering if external scripts that's in a button action via "set script" are grabbed into the TVPX file?

What about #includes in my scripts, does TVPX format take care of all that for me and wrap them into the TVPX file?
grg includes are saved in the .tvpx

Re: Is external george scripts compiled into a TVPX?

Posted: 22 Oct 2009, 08:40
by ematecki
KenC wrote:Just wrapping up a couple scripts so I'm wondering if external scripts that's in a button action via "set script" are grabbed into the TVPX file?
The 'modern' way is to use 'embed script' instead of 'set script'.
This will reduce the number of files lying around...

Re: Is external george scripts compiled into a TVPX?

Posted: 22 Oct 2009, 09:21
by KenC
Except when tvpaint crashes when I do something stupid and I lose all my work :D It only happened once but oh man did I fly into a rage hehe.

It's neat for small scripts, but when i'm debugging and testing it's much better for me at least to edit in my external editor, that way I can make changes, save and tab back to tvpaint to test.

I guess I could just embed them at the end but having them external also makes it easier for other people to have a look and maybe get thier own ideas based of them.

Another TVPX question?

Posted: 22 Oct 2009, 12:17
by Svengali
On a related note, what is the best way to handle a specially named subfolder which is used by the scripts being included in the TVPX? I am using a unique folder inside the George folder to save and load from, but I'm not sure how to guarantee that it gets created via a TVPX file.

OR does the person who installs the TVPX have to create the unique folder by hand?

Sven

Re: Another TVPX question?

Posted: 22 Oct 2009, 13:33
by ematecki
Svengali wrote:On a related note, what is the best way to handle a specially named subfolder which is used by the scripts being included in the TVPX? I am using a unique folder inside the George folder to save and load from, but I'm not sure how to guarantee that it gets created via a TVPX file.

OR does the person who installs the TVPX have to create the unique folder by hand?

Sven
Yes, if the include files aren't in the same folder as the script itself, the .tvpx handler doesn't really know what to do.
Maybe the user installed another tvpx beforehand with older versions of the includes, or, or, or....

The best way is to have the includes in the same folder as the script if you intend to distribute them as .tvpx.
Even if this means duplicating them...