Betabrite

The forum for designers and developers.
Invincer
Posts: 13
Joined: 7. Sep 09, 00:27
[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

Betabrite

Postby Invincer » 7. Sep 09, 00:34


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: Betabrite

Postby SilverEagle » 7. Sep 09, 06:45


Invincer
Posts: 13
Joined: 7. Sep 09, 00:27
[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: Betabrite

Postby Invincer » 7. Sep 09, 15:07


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: Betabrite

Postby SilverEagle » 8. Sep 09, 10:14

Hi Invincer,

Invincer wrote:
> ...you would probably get all Betabrite users with arcade cabs to
> come to Silverjuke if it can work

Which is a nice though but to avoid any confusion: I'm just an ordinary user and not related to SJ in any way beyond that ;-).

This script might do the trick for you. It is very basic, it just calls the betacom.exe. If it works but more control is needed I could probably also have the script communicate directly to the sign.

Also it strips out single & double quotes to avoid commandline problems. No idea how betabright signs manages other special characters, but if the sign stumbles over some and you know what a regular expression is you can add some more characters to skip in the script ('skipchars' at the top).

Enjoy,
SilverEagle
Attachments
betabright_v01.sj
(536 Bytes) Downloaded 1461 times

Invincer
Posts: 13
Joined: 7. Sep 09, 00:27
[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: Betabrite

Postby Invincer » 8. Sep 09, 18:15

VERY nice! It works, and it works correctly without messing up the sign for outside Silverjuke. You mentioned the special characters, the only one I noticed which may really be missed is the apostrophe. It seems to be replaced with a space which can mess it up a little bit. Any way the apostrophe can be added back in? I know it displays them normally in the code because the game titles never had any problems showing them.

Now if I can just get the kiosk mode to work without the mute problem, I will be good to go! :)

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: Betabrite

Postby SilverEagle » 8. Sep 09, 18:27

Invincer wrote:
> Any way the apostrophe can be added back in?

Just open the script in any editor (notepad is ok) and remove the apostrophe from the regexp so it reads RegExp("["\]") instead of RegExp("['"\]").

I fully expected the commandline function to break on it and never tested with it, maybe you are lucky. Double quotes are not possible using this interface I think. If the single quotes work I'll adapt the script to substitute doubles with singles.

SilverEagle

Invincer
Posts: 13
Joined: 7. Sep 09, 00:27
[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: Betabrite

Postby Invincer » 9. Sep 09, 05:39

That seemed to work just fine. I may be having problems playing the music without it auto muting on me, but the title and singer display on the Betabrite sign now just fine!

cyrilius4
Posts: 96
Joined: 5. May 06, 13:29
Location: france
[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: Betabrite

Postby cyrilius4 » 9. Sep 09, 12:44

Hi, what is that for ? what's betabrite ? curiousity...
cheers

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: Betabrite

Postby SilverEagle » 9. Sep 09, 13:03


cyrilius4
Posts: 96
Joined: 5. May 06, 13:29
Location: france
[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: Betabrite

Postby cyrilius4 » 9. Sep 09, 22:20

yes, thank you, i had a look straight after i posted, sorry for posting...


[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”