I learn scripting

The forum for designers and developers.
User avatar
djjb
Posts: 128
Joined: 15. Nov 05, 13:41
Location: Geldrop / Holland
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby djjb » 31. Dec 08, 12:09


SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby SilverEagle » 31. Dec 08, 12:49


User avatar
djjb
Posts: 128
Joined: 15. Nov 05, 13:41
Location: Geldrop / Holland
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby djjb » 2. Jan 09, 08:37

Hi,

First of all, A happy new year everybody.

I did make it to work. I didn't know how to call a script but I think to difficult. It's easy (after knowing it)
Again many thanks SilverEagle.

Best regards,
John.

User avatar
djjb
Posts: 128
Joined: 15. Nov 05, 13:41
Location: Geldrop / Holland
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby djjb » 19. Jan 09, 10:59

Attachments
21.jpg
21.jpg (91.87 KiB) Viewed 5015 times
22.jpg
22.jpg (103.78 KiB) Viewed 5015 times

SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby SilverEagle » 19. Jan 09, 12:11


User avatar
djjb
Posts: 128
Joined: 15. Nov 05, 13:41
Location: Geldrop / Holland
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby djjb » 15. Feb 09, 06:41


Guest
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby Guest » 15. Feb 09, 21:55


User avatar
djjb
Posts: 128
Joined: 15. Nov 05, 13:41
Location: Geldrop / Holland
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby djjb » 16. Feb 09, 06:02


SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby SilverEagle » 19. Feb 09, 08:15

Hi John,

First question: Is program.addSkinsButton() really the one you want?

This will add an option to the settings tab (rightclick->settings->skins->skins) for your skin, but although your kioskCallback() function says it inverts the kioskmode (toggles it on/off each call), you can never use it that way because when you are in kioskmode you are not allowed access to the settings menu, so kioskCallback() will never be called while program.kioskMode is true.

Second - maybe related - question: Are you sure you only call kioskCallback() from the button and/or are not trying to write program.kioskMode from any of the program.onKioskXXXX functions at the same time as well? I had Silverjuke crash on that sort of mistakes.

Another way to get it to crash is sometimes when you start dialogs or use alert() in functions called by program.onXXXX. If you have anything popping up from those functions comment it out and see if that solves the crash.

Good luck hunting!
SilverEagle

User avatar
djjb
Posts: 128
Joined: 15. Nov 05, 13:41
Location: Geldrop / Holland
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby djjb » 20. Feb 09, 10:02

Hi Silvereagle,

You wrote:
when you are in kioskmode you are not allowed access to the settings menu, so kioskCallback() will never be called while program.kioskMode is true.

I have a button in the skin for the settings-dialog, it works in kioskmode to.

Also the script above works well...But sometimes sj crashes.
When I tried it out for the first time, it crashes all the time.
Not on my home pc(vista) but only my music pc(xp home)
I fixed it with my screensetting in windows xp. (less dpi)

But still..sometimes it crashes..

best regards,
john


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Developer Network”