Construct2 ScreenSaver

Post your completed addons to share with the community

Post » Mon Jun 03, 2013 10:23 pm

Hello all,

Well I wanted make a screen saver capable of rendering my Construct2 creations so I thought I'd give C# a dabble!

I've kinda got the result I was looking for, it's a bit slow and the blasted mouse events aren't working but hey, if someone will make use of it maybe I'll take another look but atm it is provided very much 'AS IS' !

Link;
https://dl.dropboxusercontent.com/u/5480026/ScreenSaver.zip

Instructions;
*Configure the screensaver with the URL to your hosted project

*The Screensaver starts in Demo Mode (ie. key and mouse(not working) events exit the application - As a screensaver should.

*Toggle CapsLock on to 'Interact' with your project (ie. not exit on key/mouse etc etc blah blah)

Hope someone makes use of it.. I might post up the .NET solution if anyone wants to make it better.

Cheers,
Daniel


B
9
S
3
G
1
Posts: 112
Reputation: 1,827

Post » Tue Jun 04, 2013 12:08 pm

got bored so fixed all the issues and added a few features (interactive preview and dual monitor support(kinda i dont have dual monitors to test))

https://dl.dropboxusercontent.com/u/5480026/WEBSS.zip

Also apologies I meant to post this in the general forum :\

Word!
B
9
S
3
G
1
Posts: 112
Reputation: 1,827

Post » Tue Jun 04, 2013 12:44 pm

Hi @liaeb

Wonderful idea! Thanks for sharing.

Is there a way for the C2 game loaded into your tool to be aware it is running in a "screensaver mode"?

If there can be some easy way for a game to be aware of it, people might start making games that autostart in demo mode, when loaded via your screensaver thing.

Greg
B
18
S
3
G
3
Posts: 82
Reputation: 3,734

Post » Tue Jun 04, 2013 10:02 pm

Hi Greg,

Yes I think it should be possible...

I just quickly tried passing a custom User-Agent String with URL in my code which would have been ideal but it seems it's really inconsistent - even me visiting http://www.whatsmyuseragent.com/ in Chrome 5 times returns different values?! :S

Still let me have a think and I'll see what I can come up with.

Cheers,
Daniel
B
9
S
3
G
1
Posts: 112
Reputation: 1,827

Post » Wed Jun 05, 2013 2:31 pm

Hello to anyone watching this thread,

To identify if your Construct2 project is running in the 'ScreenSaver' Mode you can simply append the Project URL (inside the ScreenSaver configuration) with HTTP query string and then evaluate that in your project.

For example.. in the configuration form of the screensaver set the URL to something like;

http://example.com/index.html?ThisIsInScreenSaverMode
(the ?ThisIsInScreenSaverMode being the important bit)

And then within your Construct2 project evaluate the Browser expression > Query String = "?ThisIsInScreenSaverMode"

Greg I hope this helps you :)

Also I've been working on a number of other features such as enable GPU Rendering, the IE emulation mode (for compatibility) etc so hopefully will have an updated version soon for (at least Greg) to play with :)

Cheers,
Daniel
B
9
S
3
G
1
Posts: 112
Reputation: 1,827

Post » Wed Jul 24, 2013 1:13 am

Now this is an idea I like, and one of the features I thought was pretty handy in MMF2.

Thanks for your time, effort and work on this handy screensaver (loader). It is a great feature\option.

Now if we could only export a .scr without needing to link to a website(I would keep the option though). I don't particularly like my screensaver connecting to the web but others don't mind.
I guess one could use the Node-Webkit plug-in but it would still need wrapped some how?
As I am not well versed in programming this challenge is beyond me. Perhaps someone will take it up or the Construct team might just add it as an example exporter or something.

Thanks again Daniel and don't think your work is unappreciated just because only a few people post.

Later.
B
56
S
2
G
6
Posts: 2
Reputation: 5,575

Post » Tue Aug 06, 2013 3:14 pm

Hey Squid,

Glad you liked the idea... I thought it was a good idea too tbh :)

I've haven't actually done anything with this project since my last post but I'd still like to finish it off.

Next few weeks I'll be working away on the night shifts again so It'll be a good opportunity to pass the time and get this finished.

I'll update this thread with any developments.

Oh and re. the Web-Node kit I'm not sure you can do this via the Construct export function but if you can somehow specify command line arguments to the compiled .exe then I'm sure it can be done. This is as a screensaver file (.scr) is solely an executable that's passed a flag (ie. /S = screensaver mode /C = config button menu /p = preview mode)

Still I'll have a ganders at that too if I get time..

Cheers,
Daniel
B
9
S
3
G
1
Posts: 112
Reputation: 1,827

Post » Wed Aug 21, 2013 12:16 pm

Hellooo...

Construct2Saver Updated: https://dl.dropboxusercontent.com/u/5480026/Construct2Saver.zip

* Enables GPU Rendering by default
* Pages are displayed in IE10 Standards mode


Unless anything is 'broken' this will likely be the final version of the Construct2Saver.

I plan to work on another variant of this project but it'll be a bit more multi purpose driven and probably hosted on my site - when I make one :)

Thanks,
Danielliaeb2013-08-21 12:25:34
B
9
S
3
G
1
Posts: 112
Reputation: 1,827

Post » Tue Dec 17, 2013 4:51 pm

Hey Folks,

I went to update this today to use the IE11 standards control however it appears I've deleted the project.. :(

If anyone feels it worth while I'll rewrite it (possibly even make it better) else you can achieve the same thing by changing the registry if you want (see - http://msdn.microsoft.com/en-us/library/ee330730(v=vs.85).aspx)

Cheersliaeb2013-12-17 16:51:29
B
9
S
3
G
1
Posts: 112
Reputation: 1,827

Post » Thu Jan 30, 2014 2:07 pm

Updated here -
http://www.scirra.com/forum/thewebscreensaver_topic84879.html

@Squid
@CjKliaeb2014-01-30 14:08:13
B
9
S
3
G
1
Posts: 112
Reputation: 1,827

Next

Return to Completed Addons

Who is online

Users browsing this forum: digitalsoapbox, GhostDev and 1 guest