Spherical forums

Sphere Development => Sphere General => Topic started by: DaVince on July 15, 2013, 04:22:24 pm

Title: Sphere game launcher: SpheRun (v0.1)
Post by: DaVince on July 15, 2013, 04:22:24 pm
(http://davince.tengudev.com/sphere/spherun/SpheRun.png)

A cross-platform Sphere game launcher

(http://davince.tengudev.com/sphere/spherun/SpheRun0.1-01.png) (http://davince.tengudev.com/sphere/spherun/SpheRun0.1-02.png) (http://davince.tengudev.com/sphere/spherun/SpheRun0.1-03.png)



After getting frustrated with how little you can do with startup games, I decided to write an external game launcher for Sphere instead.

It is written with node-webkit (https://github.com/rogerwang/node-webkit). This unfortunately makes the file rather big, but it makes the launcher very cross-platform and easy to modify. (Note: I'll compress the launcher file on later releases, making it at least twice smaller.)


Features



Instructions
Note: there's no configuration options yet, so you have to set up your game and engine paths manually. This thing won't work until you do.



Downloads
Current version (0.1):



Future plans
0.2
===
Proper config file support (INI or JSON?)
Add a configuration menu (with link in the header)
- Engines
- Games
- Whether or not to use Wine (Linux/OSX)?
Make this menu show on first run
Add an engine selector in the header

0.3
===
Keep track of whether or not the engine is running and disable the launch button
Keyboard support (arrows, enter, ?)
Open an engine's config.exe

0.4
===
Add editors to configuration menu
Open game with editor
Open editor

0.5
===
Functionally replace config.exe
Theming support

Ideas after 1.0
===============
Get data from an online database of game info?
Browse data resources (using sphere-web-tools)?


License
Creative Commons Attribution 3.0 Unported (https://creativecommons.org/licenses/by/3.0/)
Title: Re: Sphere game launcher: SpheRun (v0.1)
Post by: Radnen on July 15, 2013, 05:51:11 pm
I get a failed to extract archive message when running it in OSX.
Title: Re: Sphere game launcher: SpheRun (v0.1)
Post by: DaVince on July 15, 2013, 06:40:37 pm
Hmm, I might have put the source files in the wrong location, then. Could you go into the node-webkit.app directory and move everything but the Contents dir one directory up (so in the same location where nwsnapshot is)?
Title: Re: Sphere game launcher: SpheRun (v0.1)
Post by: Radnen on July 15, 2013, 06:43:07 pm
I don't get it, how do you do that? I only see two files: 'node-webkit' and 'nwsnapshot'. Is there a way of physically entering them?
Title: Re: Sphere game launcher: SpheRun (v0.1)
Post by: DaVince on July 15, 2013, 06:46:59 pm
node-webkit would be the .app I mentioned. It's actually a regular folder, I'm sure OSX "sees" it as a runnable app instead, though. Maybe you can cd into it or get into it with a right-click or something?

Edit: for now, try getting the package only version in the downloads and grab a copy of node-webkit (https://github.com/rogerwang/node-webkit#downloads). Then put the nw file in the same path as the node-webkit app. I'm going to try and fix the zip I uploaded but uploading will take a while, so...
Title: Re: Sphere game launcher: SpheRun (v0.1)
Post by: Radnen on July 15, 2013, 06:59:31 pm
It worked when I moved the contents up a level. :)
Title: Re: Sphere game launcher: SpheRun (v0.1)
Post by: DaVince on July 15, 2013, 07:01:49 pm
Awesome, I had a hunch it would. The download has been fixed.
Title: Re: Sphere game launcher: SpheRun (v0.1)
Post by: N E O on July 16, 2013, 05:00:28 pm
Created GitHub repo (https://github.com/sphere-group/sphere-launcher) for the launcher, DaVince. Push your code there!
Title: Re: Sphere game launcher: SpheRun (v0.1)
Post by: DaVince on July 16, 2013, 06:15:27 pm
Done, thanks for that!
Title: Re: Sphere game launcher: SpheRun (v0.1)
Post by: N E O on July 20, 2013, 06:40:38 pm
Question - for posterity and as a "just in case," do we want to provide a XULRunner version of the launcher that uses Gecko instead of WebKit? Mozilla's finally gotten their act together and realized sometimes people just want Gecko webapps without all the heft of the Firefox chrome and is once again maintaining up-to-date XULRunner downloads.

https://developer.mozilla.org/en-US/docs/XULRunner (https://developer.mozilla.org/en-US/docs/XULRunner) (latest at posting is XULRunner 22.0, presumably same features as Firefox 22.0)
What XULRunner provides (https://developer.mozilla.org/en-US/docs/XULRunner/What_XULRunner_Provides)
Title: Re: Sphere game launcher: SpheRun (v0.1)
Post by: DaVince on July 22, 2013, 07:07:28 pm
Not sure - how different is it from node-webkit? I'll need to look into the base file size, too, and its capabilities in loading local files and running local processes. Depending how they match up to each other I might just make a full switch.

But I'll need to take some time for this tomorrow.