How to Launch the game from modern browsers, Chrome/Firefox.

View previous topic View next topic Go down

How to Launch the game from modern browsers, Chrome/Firefox.

Post by MegaByte on Thu Apr 09, 2015 3:12 am

After you login on their website [You must be registered and logged in to see this link.]
rather than clicking game start
you will want to press F12 or Ctrl+Shift+J
This opens the javascript console.

Paste in the following code (It is more or less what happens behind the scenes when clicking game start without the pesky 'You must use Old IE' limitation')

Code:
$.post(APPLICATION_CONTEXT + "/Launcher/auth", { timestamp : new Date().getTime() / 1000 }, function(data){ window.location = data.launcherAuthUrl; });

This will only work if you have installed the game to configure your PC.
Alternatively if you copy pasted the game from a backup or moved it on your drive you could use a regkey file similar to this to configure your computer to recognize the protocol for launching the game launcher to run the game with your logged in session.

If you feel like it you can do this manually with regedit I don't recommend doing it unless you know what your doing.
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Alt1Games.TwelveSky1]
@="\"URL:TwelveSky1 Protocol.\""
"URL Protocol"=""

[HKEY_CLASSES_ROOT\Alt1Games.TwelveSky1\DefaultIcon]
@="\"E:\\Games\\ALT1Games\\TwelveSky1\\Launcher.exe 1\""

[HKEY_CLASSES_ROOT\Alt1Games.TwelveSky1\shell]

[HKEY_CLASSES_ROOT\Alt1Games.TwelveSky1\shell\open]

[HKEY_CLASSES_ROOT\Alt1Games.TwelveSky1\shell\open\command]
@="\"E:\\Games\\ALT1Games\\TwelveSky1\\Launcher.exe\" \"%1\""

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Alt1Games.TwelveSky1]
@="\"URL:TwelveSky1 Protocol.\""
"URL Protocol"=""

[HKEY_CLASSES_ROOT\Alt1Games.TwelveSky1\DefaultIcon]

[HKEY_CLASSES_ROOT\Alt1Games.TwelveSky1\shell]

[HKEY_CLASSES_ROOT\Alt1Games.TwelveSky1\shell\open]

[HKEY_CLASSES_ROOT\Alt1Games.TwelveSky1\shell\open\command]
@="C:\\Games\\TwelveSky\\Launcher.exe %1"

You could also run TwelveSky.exe directly by using the data returned as an argument for example the result of this could be pasted into a bat file or shortcut placed in the game directory.

Code:
$.post(APPLICATION_CONTEXT + "/Launcher/auth", { timestamp : new Date().getTime() / 1000 }, function(data){ var a = data.launcherAuthUrl.split('/'); console.log('Alt1Games.TwelveSky1:/'+a[1]+'/'+a[2]+'/0/18/0/2/1024/768'); });

TwelveSky.exe ArgumentsHere

Tested on Windows 7 with Google Chrome and Firefox.

Enjoy.

MegaByte

Anzahl der Beiträge : 2
Anmeldedatum : 2015-04-09

Back to top Go down

Re: How to Launch the game from modern browsers, Chrome/Firefox.

Post by Admin on Thu Apr 09, 2015 3:29 am

Thanks alot to added the hint Megabyte ^^
avatar
Admin
Admin

Anzahl der Beiträge : 40
Anmeldedatum : 2013-10-18
Ort : Gungsong

http://drunkntigers.forum-aktiv.com

Back to top Go down

Re: How to Launch the game from modern browsers, Chrome/Firefox.

Post by buruma on Wed Dec 09, 2015 12:21 am

it works on Windows,but how about Linux? on Ubuntu 14.04 Wine 12sky installing and updating perfectly,many other games runing perfect,but i have no idea how to start it throw firefox..
 any ideas,maybe teamviewer?

buruma

Anzahl der Beiträge : 3
Anmeldedatum : 2013-11-04

Back to top Go down

Re: How to Launch the game from modern browsers, Chrome/Firefox.

Post by MegaByte on Wed Dec 09, 2015 5:57 am

Well on linux, I am not sure if the games anti hack would work under wine.

Just install windows xp in virtualbox and have direct3D hardware acceleration enabled *you will need to boot vm into safe mode to install it*.

If it does work under wine then sweet. You would just pass the parameters to the game executable.

The url launcher is set in the windows registry and points to launcher mostly.
You can see I tweeked it.

So if you use 


You could also run TwelveSky.exe directly by using the data returned as an argument for example the result of this could be pasted into a bat file or shortcut placed in the game directory.

CODE:
Code:
$.post(APPLICATION_CONTEXT + "/Launcher/auth", { timestamp : new Date().getTime() / 1000 }, function(data){ var a = data.launcherAuthUrl.split('/'); console.log('Alt1Games.TwelveSky1:/'+a[1]+'/'+a[2]+'/0/18/0/2/1024/768'); });

MegaByte

Anzahl der Beiträge : 2
Anmeldedatum : 2015-04-09

Back to top Go down

Re: How to Launch the game from modern browsers, Chrome/Firefox.

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum