[Guide] Play Card Hunter as a standalone desktop application

Discussion in 'Card Hunter General Chat' started by progammer, Jun 3, 2014.

  1. progammer

    progammer Ogre

    Not sure if this is useful for anyone, I just discovered this while trying to run Gemcraft 2: Chasing Shadows standalone to squeeze maximum performance with extreme gem bombing.

    Anyway, here it goes. Go here to download the standalone flash application.

    http://www.adobe.com/support/flashplayer/downloads.html

    Select the Flash Player Projector that is appropriate for your operating system. For example, this one is for windows

    flash standalone.png

    Run the flash standalone executable.
    File -> Open

    flash open.png

    Enter this URL. It will be saved next time you want to open it:
    http://live.cardhunter.com/client/CardHunterWebApp.swf

    Note:
    • The flash cache for the standalone client is separate from the browser's cache. You will have to save your account info/changing settings again
    • You can open this URL in a browser to launch CH without checking for server availability
    • The URL for launching gemcraft with Armor Games authentication is also shown in the screenshot in case you're interested
    • Finally I can have full screen without that annoying chrome pop-up
    • Have fun hunters !!!
     
    Last edited: Jun 3, 2014
    neoncat, longtomjr, Bandreus and 4 others like this.
  2. progammer

    progammer Ogre

    Ugh, So I accidentally revealed that my password is 6 char long. :p
     
  3. e-stab

    e-stab Goblin Champion

    Thanks, I didn't know this was possible. :)

    It is your fault that I was reminded of Gemcraft though, I played the last part until - I can't remind which level, but it was pretty high. I have an armorgames account, could you give me a hint about how to get the token and user_id to use in the URL?
     
  4. progammer

    progammer Ogre

    Open gemcraft in your broswer, log in with your armor games account, then refresh the page. Right click, inspect element, find the embed flash object.

    Code:
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="900" height="600" id="gamefile" align="middle">
            <param name="allowScriptAccess" value="always">
            <param name="movie" value="/files/games/gemcraft-chasing-sha-15760.swf?v=1401740518">
            <param name="quality" value="high">
            <param name="wmode" value="window">
            <param name="allowfullscreen" value="false">
            <param name="allowfullscreeninteractive" value="false">
            <param name="fullScreenAspectRatio" value="">
            <param name="quality" value="">
            <param name="play" value="true">
            <param name="loop" value="true">
            <param name="menu" value="true">
            <param name="flashvars" value="gameID=15760&amp;auth_token=zzzzzzzzzzzzzzzzzzzzz&amp;user_id=zzzzzzzzzzzzzzzzzzzzzzz">
            <param name="hasPriority" value="true">
            <embed src="/files/games/gemcraft-chasing-sha-15760.swf?v=1401740518" quality="high" width="900" height="600" id="gamefileEmbed" name="gamefile" align="middle" wmode="window" allowfullscreen="false" allowfullscreeninteractive="false" fullscreenaspectratio="" play="true" loop="true" menu="true" allowscriptaccess="always" flashvars="gameID=15760&amp;auth_token=4faa0c0a04d78ad842fef1b05ddfdcd2&amp;user_id=802008e1f82f7a428be8c325d8cf24d2" haspriority="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer">
        </object>
    
    Find the line with flash vars. That's your token/id

    <param name="flashvars" value="gameID=15760&amp;auth_token=zzzzzzzzzzzzzzzzzzzzz&amp;user_id=zzzzzzzzzzzzzzzzzzzzzzz">
     
    e-stab likes this.
  5. e-stab

    e-stab Goblin Champion

    Thanks, it worked!
     
  6. progammer

    progammer Ogre

    Minor update: Release update 2.21.0 has recently broke this method. The new URL is

    http://live.cardhunter.com/2.21.0/release/CardHunterWebApp.swf

    However it gives a failed to load config upon load (trying to load your saved password and option settings). I'll figure out how to get around this and post update if I can.
     
    Createx and zwergonfire like this.
  7. zwergonfire

    zwergonfire Kobold

    Any movement on this? My sad, slow computer is curious :p
     
  8. progammer

    progammer Ogre

    Unfortunately no atm. The only way I think it can work is to pass a parameter telling it to load no config by default. This would still be a inconvenient for users. Don't really want to bug Jon about this. I believe a desktop client is still in the work. Some of the progress can be seen in the test server patch notes.
     
    zwergonfire likes this.

Share This Page