gumshoe2029's Recent Forum Activity

  • You can inject parameters in the index.html file into the C2 application using TextBox injection. You create TextBox objects and specify unique ID and call that ID in a JavaScript function grafted into the index.html file script section like:

    function doIt()
    {
    document.getElementById("getDisplayName").value = "";
    document.getElementById("getUserID").value = "-1";
    document.getElementById("getFT").value = "1";
    document.getElementById("serverIP").value = "www.stormforgedproductions.com";
    document.getElementById("saltBox").value = "eab5f675c24ebec8b745c8aa90096852f54ac10ce7f2f6638ccbf26248f480360fb8103977581838b28aa73b10f2ed731f7b544b736453e3bcf3a5446042d321";
    document.getElementById("errorBox").value = "";
    document.getElementById("playerServers").value = "{}";
    document.getElementById("direct").value = "";
    document.getElementById("tester").value = "false";
    document.getElementById("playerCapId").value = "-1";
    } [/code:1a411otx]
    
    I called out function doIt(), but you can call it whatever you want.  Then when your layout starts you call a custom JS script using the browser object and simply call the doIt() function and it will transfer the values from your HTML into the appropriate TextBoxes according to their IDs.
    
    If you look at the HTML source for our homepage, you can see this in action.
  • You need to have a speed parameter that you feed into your lerp function. Then you can change this speed parameter to modify the speed at which the ship rotates.

  • You change either Layer or Layout Scale based on some action (mouse wheel clicks, etc.):

    https://drive.google.com/open?id=0B-xiq ... kRuY0ZtVWs

  • Another possible solution:

    http://stackoverflow.com/questions/1922 ... lear-cache

    Adding version numbers to all of your CSS/JS files seems to be the best way to ensure that the clients have the latest version.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Oh good. I did not want to have to change our client-side JSON library so late in the development.

  • Go ahead and email me at stormforgedproductionsllc at gmail dot com.

  • Yann is still supporting this plugin? I know rexrainbow is hesitant about supporting his rex-hash. We might try to migrate to your plugin for all of our JSON stuff pending testing it.

  • Have an invisible sprite near the edge of the map, when mouse is over, scroll left (or whatever direction).

  • You have a centralized, secure server (with a database) to store all of the information.

  • You make a PHP script that receives the incoming HTTP AJAX requests from your C2 client and pass the username and password hash as parameters like:

    http://yourdomain.com/login.php?usernam ... j2398KJdss

    then you retrieve the parameters in PHP and pull the password hash associated username from the database and compare it to the hash received from the client. If they match, you create a session and manage it with PHP. You key the session cache using the public IP of the request and whatever other relevant info from the request you want to use.

    I use the date up to the day in the session cache key to create an automatic session expiry, but you can just use the public IP if you want.

    Every request that comes in to your PHP server will always check the session cache first for a session corresponding to that IP, if it exists and the session ID matches then it produces a page with all of the appropriate details.

    We use the TextBox injection method to pass parameters directly from the HTML into the C2 js scripts. We also use a highly modified version of the 'index.html' file that C2 outputs. If you look at the HTML for our homepage, you will see a doIt() function that we added to inject parameters directly into our C2 application.

    <script type="text/javascript">
    function doIt()
    {
    document.getElementById("getDisplayName").value = "";
    document.getElementById("getUserID").value = "-1";
    document.getElementById("getFT").value = "1";
    document.getElementById("serverIP").value = "www.stormforgedproductions.com";
    document.getElementById("saltBox").value = "eab5f675c24ebec8b745c8aa90096852f54ac10ce7f2f6638ccbf26248f480360fb8103977581838b28aa73b10f2ed731f7b544b736453e3bcf3a5446042d321";
    document.getElementById("errorBox").value = "";
    document.getElementById("playerServers").value = "{}";
    document.getElementById("direct").value = "";
    document.getElementById("tester").value = "false";
    document.getElementById("playerCapId").value = "-1";
    }
    </script>[/code:scf0i0s5]
  • Make sure that your offline.appcache is getting updated with your client.

    Also make sure that you have browser caching disabled (in the settings or you can temporarily disable it in most debuggers -- like Firebug). I use like four different browsers one of which has all caching completely disabled.

  • Make sure the layer background is transparent.

gumshoe2029's avatar

gumshoe2029

Member since 4 Mar, 2014

None one is following gumshoe2029 yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies